HTML5 S08 Navigation, Layout
HTML5 S08 Navigation, Layout
Session: 8
Earlier version of HTML had the universal tag div which was used
to accomplish various tasks in the HTML structure.
Articl Nav
e
Structur Aside
al
Semantic
Sectio Tags
n
Foote
Header r
Text-
level Meter
Mark Semantic
Tags
Time
<!DOCTYPE html>
<html lang=”en”>
<head>
<meta charset=”utf-8”>
<title>My First Page</title>
</head>
<body>
<header>
<h1>Sample Blog </h1>
</header>
</body
</html>
<body>
<header>
<h1>Sample Blog</h1>
</header>
<nav>
<ul>
<li> home </li>
<li> help </li>
<li> contact </li>
</ul>
</nav>
</body>
<body>
<header>
<h1>Sample Blog </h1> <section>
</header> <h1>Links</h1>
<nav> <ul>
<ul>
<li> home </li> <li><a href=”#”>Link 1</a></li>
</section>
© Aptech Ltd. Creating Navigational Aids and Division-Based Layout / Session 8 8
HTML5 Semantic Layout 4-6
<aside> element is a column or a section that generally
contains data linked to the main information.
This element is used for typographical effects, such as
for sidebars, for groups of nav elements, for
advertising purposes, and so on.
<body> <aside>
<header> <blockquote>Archive Number One</blockquote>
<h1>Sample Blog</h1> <br>
</header> <blockquote>Archive Number Two</blockquote>
<nav> </aside>
<ul> <footer>
<li> home </li> Copyright © 2012-2013
<li> help </li> </footer>
<li> contact </li> </body>
</ul> </html>
</nav>
<section>
<h1>Links</h1>
<ul>
<li><a href=”#”>Link 1</a></li>
<li><a href=”#”>Link 2</a></li>
<li><a href=”#”>Link 3</a></li>
</ul>
</section>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<nav>
<a href=”/home/”><font size=”6”>Home</font></a> |
<a href=”/news/”><font size=”6”>News</font></a> |
<a href=”/contact/”><font size=”6”>Contact</font></a>
|
<a href=”/about/”><font size=”6”>About</font></a>
</nav>
<h1>This is a Text-based Navigation Bar</h1>
</body>
</html>
structural.
Navigation is the most significant element in Web design. Since Web-layouts does not have
Text-based navigation bars are created as stand-alone navigation bars that are not
associated with icons. Text-based navigation bar is easy to create and can be displayed in
Graphical navigation bar is better than text-based navigation as it gives a visual appeal to