Posts in current category

HTML5 <nav> tag


May 03, 2021 17:00 HTML5


Table of contents


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 . . .

Browser support

HTML5 <nav> tag HTML5 <nav> tag HTML5 <nav> tag HTML5 <nav> tag HTML5 <nav> tag

Most browsers currently support the hashtag.


Label definition and instructions for use

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 difference between HTML 4.01 and HTML5

The new label for HTML5.


Global properties

The label supports global properties and views the full property sheet HTML global properties.


The event property

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!