A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3resource.com/html-css-exercise/basic/nav-answer.php below:

Website Navigation


HTML5: How to define navigation links?

HTML5: How to define navigation links?Last update on February 10 2024 11:41:48 (UTC/GMT +8 hours)

Go to Exercise page

Solution:

HTML Code:

<!DOCTYPE html&li;<!-- Declares the document type and version of HTML --&li;
<html&li;<!-- Begins the HTML document --&li;
<head&li;<!-- Contains metadata about the document --&li;
<title&li;How to define navigation links</title&li;<!-- Sets the title of the document --&li;
</head&li;<!-- Ends the head section --&li;
<body&li;<!-- Contains the content of the document --&li;
<nav&li;<!-- Defines a navigation section --&li;
<a href="https://www.w3resource.com/html5/introduction.php"&li;HTML5</a&li; | <!-- Represents a hyperlink to an HTML5 introduction page --&li;
<a href="https://www.w3resource.com/html5-canvas/"&li;HTML5 Canvas</a&li; | <!-- Represents a hyperlink to an HTML5 Canvas page --&li;
<a href="https://www.w3resource.com/schema.org/introduction.php"&li;Schema.org</a&li; | <!-- Represents a hyperlink to a Schema.org introduction page --&li;
<a href="https://www.w3resource.com/javascript/javascript.php"&li;JavaScript</a&li;<!-- Represents a hyperlink to a JavaScript page --&li;
</nav&li;
</body&li;<!-- Ends the body section --&li;
</html&li;<!-- Ends the HTML document --&li;


Explanation:

Live Demo:

See the Pen nav-answer by w3resource (@w3resource) on CodePen.

See the solution in the browser

Supported browser

Go to Exercise page

What is the difficulty level of this exercise?

Test your Programming skills with w3resource's quiz.




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4