May 03, 2021 HTML5
Html5 is used to represent navigation in HTML pages, between pages, or between segments and segments within a page.
An example of a navigation link:
<nav>
<a href="/html/">HTML</a> |
<a href="/css/">CSS</a> |
<a href="/js/">JavaScript</a> |
<a href="/jquery/">jQuery</a>
</nav>
Try it out . . .
Most browsers currently support the hashtag.
The label defines the part of the navigation link.
Not all HTML documents are required to use the .lt;nav> element. The element is simply an area that labels a navigation link.
On different devices (phones or PCs) you can determine whether navigation links are displayed to suit the needs of different screens.
The new label for HTML5.
The label supports global properties and views the full property sheet HTML global properties.
The label supports all HTML event properties.
Tip: Since the label is the new label in HTML5, if you use a low version of Internet Explorer, the relevant layout will be invalid and the CSS style will not work!