The "About My Favorite City" webpage will be built by the students. The page will have an organized design with the following elements:
Code:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>About My Favorite City</title> <meta name="description" content="A simple HTML page about my favorite city, showcasing various HTML elements and structure."> <link rel="stylesheet" href="styles.css"> </head> <body> <header> <h1>New York City</h1> <nav> <ul> <li><a href="#introduction">Introduction</a></li> <li><a href="#places">Famous Places</a></li> <li><a href="#facts">Fun Facts</a></li> </ul> </nav> </header> <main> <section id="introduction"> <h2>Introduction</h2> <p>New York City (NYC) is the most populous city in the United States. It is known for its significant impact on commerce, finance, media, art, and fashion.</p> </section> <section id="places"> <h2>Famous Places</h2> <ul> <li>Statue of Liberty</li> <li>Central Park</li> <li>Empire State Building</li> </ul> </section> <section id="facts"> <h2>Fun Facts</h2> <p>Did you know that the New York Public Library has over 50 million books and other items and is the second largest library system in the nation after the Library of Congress?</p> </section> <img src="new-york-city.jpg" alt="A view of New York City" width="500"> </main> <footer> <p>Contact us: <a href="mailto:info@example.com">info@example.com</a></p> </footer> </body> </html> |
Explanation of Code:
<!DOCTYPE html>: Indicates the HTML version and document type (in this case, HTML5).
<head> Section:
<header>:
<main>:
<img>: Shows a picture of New York City, which is relevant to the content in this case.
<footer>:
This project improves learning and retention of HTML abilities by encouraging the actual use of semantic webpage organization in addition to introducing the fundamentals of HTML structure.
The "About My Favorite City" webpage will be built by the students. The page will have an organized design with the following elements:
Code:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>About My Favorite City</title> <meta name="description" content="A simple HTML page about my favorite city, showcasing various HTML elements and structure."> <link rel="stylesheet" href="styles.css"> </head> <body> <header> <h1>New York City</h1> <nav> <ul> <li><a href="#introduction">Introduction</a></li> <li><a href="#places">Famous Places</a></li> <li><a href="#facts">Fun Facts</a></li> </ul> </nav> </header> <main> <section id="introduction"> <h2>Introduction</h2> <p>New York City (NYC) is the most populous city in the United States. It is known for its significant impact on commerce, finance, media, art, and fashion.</p> </section> <section id="places"> <h2>Famous Places</h2> <ul> <li>Statue of Liberty</li> <li>Central Park</li> <li>Empire State Building</li> </ul> </section> <section id="facts"> <h2>Fun Facts</h2> <p>Did you know that the New York Public Library has over 50 million books and other items and is the second largest library system in the nation after the Library of Congress?</p> </section> <img src="new-york-city.jpg" alt="A view of New York City" width="500"> </main> <footer> <p>Contact us: <a href="mailto:info@example.com">info@example.com</a></p> </footer> </body> </html> |
Explanation of Code:
<!DOCTYPE html>: Indicates the HTML version and document type (in this case, HTML5).
<head> Section:
<header>:
<main>:
<img>: Shows a picture of New York City, which is relevant to the content in this case.
<footer>:
This project improves learning and retention of HTML abilities by encouraging the actual use of semantic webpage organization in addition to introducing the fundamentals of HTML structure.
Copyrights © 2024 letsupdateskills All rights reserved