Menus
Most web pages have some kind of a menu.
In HTML, a menu is often defined in an unordered list
<ul>
(and styled afterwards), like this:<ul> <li><a href="#">Home</a></li> <li><a href="#">Menu 1</a></li> <li><a href="#">Menu 2</a></li> <li><a href="#">Menu 3</a></li></ul>
Tabs
Tabs are created with
<ul class="nav nav-tabs">
:
Tip: Also mark the current page with
The following example creates navigation tabs:<li class="active">
.<ul class="nav nav-tabs"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Menu 1</a></li> <li><a href="#">Menu 2</a></li> <li><a href="#">Menu 3</a></li></ul>
Pills
<ul class="nav nav-pills">
. Also mark the current page with <li class="active">
:<ul class="nav nav-pills"> <li class="active"><a href="#">Home</a></li> <li><a href="#">Menu 1</a></li> <li><a href="#">Menu 2</a></li> <li><a href="#">Menu 3</a></li></ul>
No comments:
Post a Comment