HTML5使用nav元素范例
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="description" content="This is an HTML5 example"> <meta name="keywords" content="HTML5, CSS3, JavaScript"> <title>This text is the title of the document</title> <link rel="stylesheet" href="mystyles.css"> </head> <body> <header> <h1>This is the main title of the website</h1> </header> <nav> <ul> <li>home</li> <li>photos</li> <li>videos</li> <li>contact</li> </ul> </nav> </body> </html>