This shows you the differences between two versions of the page.
notices:html-css:structurer-les-menus-de-navigation-avec-des-listes [11 June 2013 at 14:36] Sébastien Delorme (Atalan) [Related recommendations] |
notices:html-css:structurer-les-menus-de-navigation-avec-des-listes [30 December 2013 at 17:32] (current) Sébastien Delorme (Atalan) |
||
---|---|---|---|
Line 3: | Line 3: | ||
Use unordered lists ''<ul>'' and ''<li>'' to tag the navigation menus. | Use unordered lists ''<ul>'' and ''<li>'' to tag the navigation menus. | ||
- | With menus containing more than one level, make sure you nest the lists into each other properly: | + | If a menu has several levels, make sure the lists are nested properly: |
<code html> | <code html> | ||
Line 22: | Line 22: | ||
<note html5>**HTML5** | <note html5>**HTML5** | ||
- | In HTML5, you should also wrap the //main// navigation menus with a ''<nav>'' tag, so that you have: | + | In HTML5, you should also wrap the //main// navigation menus in a ''<nav>'' tag, so that you have: |
<code html> | <code html> |