Die Evolution des Navigationsmenü-Markups

14 February 2008
Ist schon interessant, wie sich die Bräuche bezüglich des Markups für Navigationsmenüs verändert haben (und verändern werden). Die Jahreszahlen sind Pi-Mal-Daumen-Werte aus'm Kopf:

1995:

<a href="page1.html">Seite 1</a> <a href="page2.html">Seite 2</a> <a href="page3.html">Seite 3</a> <a href="page4.html">Seite 4</a>

1997:

<a href="page1.html"><img src="/img/irgensonegrafik1.jpg" width="200" height="80" alt=""></a><br>
<a href="page2.html"><img src="/img/irgensonegrafik2.jpg" width="200" height="80" alt=""></a><br>
<a href="page3.html"><img src="/img/irgensonegrafik3.jpg" width="200" height="80" alt=""></a><br>
<a href="page4.html"><img src="/img/irgensonegrafik4.jpg" width="200" height="80" alt=""></a>

2003:

<ul>
  <li><a href="page1.html">Seite 1</a></li>
  <li><a href="page2.html">Seite 2</a></li>
  <li><a href="page3.html">Seite 3</a></li>
  <li><a href="page4.html">Seite 4</a></li>
</ul>

2010:

Aus XHTML 2 vs. HTML 5 - I'm Mike (via Schockwellenreiter)

XHTML 2.0

<nl>
  <label>Kategorie</label>
  <li href="/Seite1.html">Seite 1</li>
  <li href="/Seite2.html">Seite 2</li>
  <li href="/Seite3.html">Seite 3</li>
  <li href="/Seite4.html">Seite 4</li>
</nl>

HTML 5

<nav>
  <h1>Kategorie</h1>
  <ul>
    <li><a href="/Seite1.html">Seite 1</a></li>
    <li><a href="/Seite2.html">Seite 2</a></li>
    <li><a href="/Seite3.html">Seite 3</a></li>
    <li><a href="/Seite4.html">Seite 4</a></li>
  </ul>
</nav>

Comments

Display comments as (Linear | Threaded)

  1. Boris: Da fehlt noch die Sache mit dem Tabellenverschlag, so zwischen 1996 und 2002, bei manchen "Profi-Webdesignern" sogar bis heute brandaktuell.

    Mein Vorschlag für XMLH 1.0, so etwa ab 2012:

    [navigation label="Kategorie"]
    [nav src="seite1.html" label="Seite 1"][image src="irgendnegrafik1.png"][/nav]
    [nav src="seite2.html" label="Seite 2"][image src="irgendnegrafik2.png"][/nav]
    ...
    [/navigation]

    ist prinzipiell eine Liste, Labels werden als Text angezeigt, und ein Bild kann man zusätzlich einbinden, wobei dann das zugehörige Label wieder von der angezeigten Oberfläche "verschwindet".

  2. alp: Das label als Attribut finde ich eine gute Idee.

  3. Boris: Oooch ... mein HTML-Beispiel ist weg ... :-(

  4. alp: Hab die spitzen Klammern durch eckige ersetzt.


Add Comment

Comment

BBCode format allowed
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA












RSS-Feed