English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <nav> Tag

Der <nav>-Tag in HTML ist ein HTML5Elemente, um Teile der HTML-Dokumente mit Navigationsverknüpfungen zu definieren. Dieses Tag wird auch als <nav>-Element bezeichnet.

Online-Beispiel

Ein Beispiel für eine Navigationsverknüpfung:

!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 Verwendung von <nav>-Tag (Grundlagen-Tutorial-Netz oldtoolbag.com)</title>
</head>
<body>
<nav>
  <ul>
    <li><a href="/section1/index.html">Abschnitt1</a></li>
    <li><a href="/section2/index.html">Abschnitt2</a></li>
    <li><a href="/section3/index.html">Abschnitt3</a></li>
  </ul>
</nav>
</body>
</html>
Testen Sie, ob ‹/›

Browser Kompatibilität

IEFirefoxOperaChromeSafari

Most browsers currently support the <nav> Tag.

Tag Definition and Usage Description

<nav> Tag defines the part of navigation links.

<nav> Tag is used to create navigation in HTML documents.

Not all HTML documents need to use the <nav> element. The <nav> element is just used to mark the area of a navigation link.

can specify whether navigation links are displayed on different devices (mobile or PC) to meet the needs of different screens.

for IE versions earlier than 9IE browsers, please use HTML5shiv, a JavaScript solution that can provide support for new HTML5elements are supported, for example: <header>, <main>, <article>, <section>, <aside>, <nav>, <footer>.

HTML 4.01 from HTML5difference

<nav> is an HTML5 new tags.

global attributes

<nav> Tag supports global attributes, see the complete attribute table HTML Global Attributes.

event attributes

<nav> Tag supports all HTML Event Attributes.