Smashing Html5 : Navigation Strategies - Creating Consistency (part 2) - Understanding the HTML5 mechanics of vertical navigation

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
2/16/2015 3:38:43 AM

Understanding the HTML5 mechanics of vertical navigation

The most important part of creating a vertical section to use for navigation in your site is sectioning a portion of the page where you can place the links. This example uses the <aside> tag to set off the vertical navigation. However, because it’s navigation, the <nav> tag is used as well so that any JavaScript references to the Document Object Model (DOM) can recognize the section as one used for navigation. 




<style type=”text/css”>

/*141919,2D2B21,A69055,C9B086,FFB88C --Japanese Art*/

body {

font-family:”Trebuchet MS”, Arial, Helvetica, sans-serif;





.content {





aside {






h1 {





h2 {



a {

font-family:Verdana, Geneva, sans-serif;





a:hover {



.centerNav {



.indentNav {




<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8”>

<title>Web Services Galore</title>



<img src=”designLogo.png” width=”64” height=”66” align=”left”>

<nav class=”centerNav”> <a href=”#”>Graphic Design</a>&nbsp;|&nbsp; <a href=”#”>Development</a>&nbsp;|&nbsp; <a href=”#”>Interface Design</a>&nbsp;|&nbsp; <a href=”#”>Site Architecture</a></nav>


<h1> Honorable Web Services</h1>



<nav class=”indentNav”> <a href=”#”>Overview</a><br>


<a href=”#”>Navigation</a><br>


<a href=”#”>RSS Subscription</a><br>


<a href=”#”>Iframes</a><br>


<a href=”#”>CSS3 Navigation Styles</a><br>


<a href=”#”>Audience Identification</a><br>


<a href=”#”>Focus Group Testing</a><br>


<a href=”#”>Adding Mobile Options</a><br>




<section class=”content”>


<h2>Interface Design</h2>


Honorable Web Services has full interface design services. You may choose from the following list, selecting just the services you want.


<li>Simple text link interfaces</li>

<li>Drop-down menus </li>

<li>Button links</li>

<li>Datalist links</li>

<li>Iframe navigation</li>

<li>Navigation styling</li>


Select one of the links on the left to see more information. Also be sure to check out our services in graphic design, development, and architecture in the menu along the top of the page.</section>



When you run this program, you can see that although it provides a wide variety of user choices, it’s clear. The global navigation along the top provides all the main choices. Then on each page within a global collection, users are able to select choices specific to the selected topic. Figure 3 shows what you can expect to see when you test the program in an HTML5 browser on a computer screen.


Figure 3: Providing horizontal and vertical navigation choices.

When you look at the same page on a mobile device, the space taken up on the left where the vertical menu has been placed pushes the content downward. Users have to scroll more. Also notice that the horizontal menu along the top is pushed in so that it now takes up two roles. Figure 8-8 shows the results on a mobile browser.

For mobile devices, two-tier horizontal navigation bars — that do not push content below the viewing area — may better serve you. As you can see in comparing Figures 3 and 4, the horizontal navigation bar breaks into two tiers in the mobile device without taking up much room. However, the vertical navigation bar pushes into the content area and forces more content (including the navigation bar itself) below the viewing area.


Figure 4: Vertical and horizontal menus on a mobile device.

Using graphic icons in navigation

In addition to using text to link to other pages, you also can use graphic files — JPEG, PNG, or GIF. Using graphic images for linking can help users quickly find what they’re looking for. For example, a right or left arrow quickly can be identified as linking to the next or last page. Such images transcend language differences and help a wider audience base. Likewise, younger children are more likely to understand certain symbols than they are certain words.

The format for using images for identifying links is the same as it is for text. However, instead of placing text in an <a> container, you use an image reference. The following code snippet shows the basic format:

<a href=”page2.html”><img src=”arrowRight.jpg”></a>

Users see an arrow icon and click it instead of a text message. Often, designers will use both text and an image to send users to another page, as shown in the next snippet:

<a href=”page2.html”><img src=”arrowRight.jpg”>Next Page</a>

Also, some designers create icons with text embedded in the symbol, as shown in Figure 5.


Figure 5: Link image with text.

One advantage designers find in using graphic text is that they can use any font they want without fear that the user won’t have that particular font in his system. It also helps to keep users from getting lost because graphic symbols with text are easy for the user to spot and understand.

  •  Smashing Html5 : Navigation Strategies - Using JavaScript to Call a Linked Page
  •  Smashing Html5 : Web Navigation Concepts (part 2) - Using lists in global navigation
  •  Smashing Html5 : Web Navigation Concepts (part 1) - Designer navigation and user navigation, Global navigation
  •  Sharepoint 2013 : The Managed Metadata Service (part 4) - Term Sets
  •  Sharepoint 2013 : The Managed Metadata Service (part 3) - Term Store, Groups
  •  Sharepoint 2013 : The Managed Metadata Service (part 2) - Associating with a Web Application
  •  Sharepoint 2013 : The Managed Metadata Service (part 1) - Taxonomy and Folksonomy, Initial Setup
  •  Sharepoint 2013 : Publishing and Web Content Management - Content Deployment - Configuring the Destination Farm, Configuring the Source Farm
  •  Smashing Html5 : Organizing a Page - Organizing Files - Relative reference
  •  Smashing Html5 : Organizing a Page - Getting Your Stuff Organized (part 2) - Grouping without fracturing, Figures and captions
    Top 10
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
    - Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
    - Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    programming4us programming4us