webdev/html/navigation.html

82 lines
2.5 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Die HTML Struktur in Webseiten">
<title>HTML Struktur</title>
<link rel="stylesheet" href="../css/reset.css">
<link rel="stylesheet" href="../css/code.css">
<link rel="stylesheet" href="../css/style.css">
</head>
<body>
<header>
<div class="wrapper">
<a href="../index.html"><img src="../img/logo.svg" alt="Mein logo" title="Der Titel meines Bildes"></a>
<nav role="navigation">
<ul>
<li><a href="semantik.html">Semantik</a></li>
<li><a href="header.html">Head</a></li>
<li><a href="struktur.html">Struktur</a></li>
<li><a href="navigation.html">Navigation</a></li>
<li><a href="formulare.html">Formular</a></li>
</ul>
</nav>
</div>
</header>
<main role="main" class="wrapper">
<h1>HTML5 Navigation einer Webseite</h1>
<article>
<h2>Die Navigation als ungeordnete Liste</h2>
<p>Die Navigation ist mit Vorteil als ungeordnete Liste zu konzipieren. Also ul > li a, somit ist eine vernünftige Struktur auch ohne CSS gewährleitet.
</p>
</article>
<article>
<h2>Das Grundgerüst</h2>
<pre class="line-numbers language-html">
<code class="language-html">&lt;nav role=&quot;navigation&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;../index.html&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;semantik.html&quot;&gt;Semantik&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;formulare.html&quot;&gt;Formulare&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/nav&gt;
</code>
</pre>
</article>
<h2>Einfaches CSS der Navigation</h2>
<p>Das Beispiel hier in der Navigation dieses Beispiels.</p>
<p>Navigationen mit Unternavigations-Punkte finden Sie als weiteres Beispiel auf meinem <a href="https://git.perin.work/andy/CSS_NAV"> Git Server</a></p>
<article>
<pre class="line-numbers language-css">
<code class="language-css">nav li{
display: inline;
line-height: 160px;
margin-left: 20px;
}
nav a:link, nav a:visited{
color: #fff;
text-decoration: underline;
}
nav a:hover{
color: #e01a4b;
text-decoration: none;
}
</code>
</pre>
</article>
</main>
<footer>
<div class="wrapper">
<p><a title="Link zu Download" href="https://git.perin.work/andy/webdev">Download</a></p>
</div>
</footer>
<script src="../js/code.js"></script>
</body>
</html>