HTML5大作業成品源代碼
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>My Website</title> </head> <body> <header> <nav> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Services</a></li> <li><a href="#">Contact</a></li> </ul> </nav> <h1>Welcome to My Website</h1> </header> <section> <article> <h2>About Us</h2> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis id ante felis. Proin sollicitudin facilisis varius. Sed hendrerit luctus feugiat. Nullam vel turpis nulla. Nulla facilisi. </p> </article> <article> <h2>Our Services</h2> <ul> <li>Web Design</li> <li>Graphic Design</li> <li>SEO</li> </ul> </article> </section> <footer> <p>Copyright © 2022</p> </footer> </body> </html>
以上HTML代碼展示了一個簡單的網站架構,包括導航、頁頭、內容和頁腳。HTML5提供了更簡潔的語法和更多的元素,使得網頁開發變得更加容易和直觀。