Задача 1: Refactor the refactoring-homework.html web page and make its HTML semantic.
<!DOCTYPE html> <html> <head> <title>Design_1</title> </head> <body> <header> <h1> <img src="logo.jpg" alt="Logo" /><span>Welcome to our Web Site</span> </h1> <nav> <ul> <li><a href="#">Nav Item 1</a></li> <li><a href="#">Nav Item 1</a></li> <li><a href="#">Nav Item 1</a></li> <li><a href="#">Nav Item 1</a></li> </ul> </nav> </header> <table border="1" cellspacing="0"> <thead> <tr> <th>First name</th> <th>Last name</th> <th>Score</th> </tr> </thead> <tbody> <tr> <td>Doncho</td> <td>Minkov</td> <td>4.54</td> </tr> <tr> <td>Svetlin</td> <td>Nakov</td> <td>4.31</td> </tr> <tr> <td>Georgi</td> <td>Georgiev</td> <td>4.54</td> </tr> </tbody> </table> </body> </html>
Задача 2: Create a web page using semantic HTML by the design in homework-design-1.pptx.
<!DOCTYPE html> <html> <head> <title>LinkedIn</title> </head> <body> <header> <h1><a href="http://www.linkedin.com/">LinkedIn</a></h1> <nav> <ul> <li><a href="#">LinkedIn</a> <li><a href="#">What is LinkedIn</a></li> <li><a href="#">Join Today</a></li> <li><fieldset><legend>Sign In</legend> <ul> <li><form><label>Email:</label> <input type="email" name="email" pattern="[a-zA-Z0-9_]{3,}@[a-zA-Z0-9_]{3,}.[a-zA-Z0-9_]{2,4}" /></form></li> <li><form><label>Password:</label> <Input type="password" name="password" /></form></li> <li><input type="button" value="Sign In" /></li> </ul> </fieldset> </li> </ul> </nav> <hr/> </header> <h1>Over 175 million proffesionals use LinkedIn to exchange information, ideas and opportunities</h1> <ul> <li>Stay informed about your contacts and industry</li> <li>Find the people & knowledge you need to achieve your goals</li> <li>Control your professional identity online</li> </ul> <h2>Join LinkedIn Today</h2> <fieldset> <legend>Sign Up</legend> <ul> <li><form><label>First Name:</label> <div><input type="text" name="firstname" /></div></form></li> <li><form><label>Last Name:</label> <div><input type="text" name="lastname" /></div></form></li> <li><form><label>Email:</label> <div><input type="email" name="email" pattern="[a-zA-Z0-9_]{3,}@[a-zA-Z0-9_]{3,}.[a-zA-Z0-9_]{2,4}" /></div></form></li> <li><form><label>Password</label> <div><input type="password" name="password" /></div></form> <div>6 or more characters</div></li> </ul> <form><input type="button" value="Join Now" /></form> <span><a href="#">*</a></span> <p>Already on LinkedIn? <a href="#">Sign In</a></p> </fieldset> <h3>Search for someone by name</h3> <ul> <li><form><label>First Name</label> <input type="text" name="firstname" /></form></li> <li><form><label>Last Name</label> <input type="text" name="lastname" ></form></li> </ul> <form><input type="button" value="Go" /></form> </body> </html>
Задача 3: Create a web page using semantic HTML by the design in homework-design-2.pptx.
<!DOCTYPE html> <html> <head> <title>Refactoring</title> </head> <body> <header> <h1>The Header</h1> <nav> <ol type="1"> <li><a href="#">nav item 1</a></li> <li><a href="#">nav item 2</a></li> <li><a href="#">nav item 3</a></li> <li><a href="#">nav item 4</a></li> </ol> </nav> </header> <h2>Post header</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing <strong>elit</strong>. Mauris urna orci, euismod vitae sollicitudin et, varius et velit. Cras et tellus erat. Vestibulum auctor varius purus faucibus posuere. Maecenas et libero et orci bibendum eleifend sit amet ut purus. Sed at lorem in metus tempus pretium. Praesent cursus rhoncus nulla. Nulla condimentum lacus et ligula consectetur eu tristique sem scelerisque. Duis id velit enim, sed sodales nulla. Donec leo erat, posuere vel scelerisque in, rutrum ac magna. <em>Donec elementum nunc molestie nulla semper</em> vitae placerat turpis bibendum. Phasellus egestas lobortis dictum.</p> <h2>Post header</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing <strong>elit</strong>. Mauris urna orci, euismod vitae sollicitudin et, varius et velit. Cras et tellus erat. Vestibulum auctor varius purus faucibus posuere. Maecenas et libero et orci bibendum eleifend sit amet ut purus. Sed at lorem in metus tempus pretium. Praesent cursus rhoncus nulla. Nulla condimentum lacus et ligula consectetur eu tristique sem scelerisque. Duis id velit enim, sed sodales nulla. Donec leo erat, posuere vel scelerisque in, rutrum ac magna. <em>Donec elementum nunc molestie nulla semper</em> vitae placerat turpis bibendum. Phasellus egestas lobortis dictum.</p> <h2>Post header</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing <strong>elit</strong>. Mauris urna orci, euismod vitae sollicitudin et, varius et velit. Cras et tellus erat. Vestibulum auctor varius purus faucibus posuere. Maecenas et libero et orci bibendum eleifend sit amet ut purus. Sed at lorem in metus tempus pretium. Praesent cursus rhoncus nulla. Nulla condimentum lacus et ligula consectetur eu tristique sem scelerisque. Duis id velit enim, sed sodales nulla. Donec leo erat, posuere vel scelerisque in, rutrum ac magna. <em>Donec elementum nunc molestie nulla semper</em> vitae placerat turpis bibendum. Phasellus egestas lobortis dictum.</p> <h2>Post header</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing <strong>elit</strong>. Mauris urna orci, euismod vitae sollicitudin et, varius et velit. Cras et tellus erat. Vestibulum auctor varius purus faucibus posuere. Maecenas et libero et orci bibendum eleifend sit amet ut purus. Sed at lorem in metus tempus pretium. Praesent cursus rhoncus nulla. Nulla condimentum lacus et ligula consectetur eu tristique sem scelerisque. Duis id velit enim, sed sodales nulla. Donec leo erat, posuere vel scelerisque in, rutrum ac magna. <em>Donec elementum nunc molestie nulla semper</em> vitae placerat turpis bibendum. Phasellus egestas lobortis dictum.</p> <footer> <p>and the footer</p> </footer> </body> </html>
Няма коментари:
Публикуване на коментар