Home arrow HTML arrow Building a Drop-Down Menu with Nested HTML Lists

Building a Drop-Down Menu with Nested HTML Lists

Welcome to the third part of a three-part series that shows you how to design with nested HTML lists. Today we'll take what we've learned in the previous two parts to a logical conclusion: building a full-fledged drop-down menu. We will even make sure that this menu is compatible with older browsers, such as Internet Explorer 6.

Author Info:
By: Alejandro Gervasio
Rating: 4 stars4 stars4 stars4 stars4 stars / 21
May 29, 2009
  1. · Building a Drop-Down Menu with Nested HTML Lists
  2. · Start building a drop-down menu: the structural markup
  3. · Using CSS styles to turn the menu into a functional user interface
  4. · Making the menu compatible with Internet Explorer 6 and below

print this article

Building a Drop-Down Menu with Nested HTML Lists
(Page 1 of 4 )


Undoubtedly, HTML lists are an important piece within the structure of many web sites. They allow you to display bulleted information in an elegant, well-categorized manner. However, the traditional usage of lists can be extended by nesting their elements as many times as needed, in this way making it possible to build useful web page elements, such as hierarchical navigation menus, to cite an illustrative example.

If you're interested in learning how to use nested HTML lists for building different kinds of hierarchical web-based user interfaces, then you should take a close look at this series of articles, since it'll teach you the key concepts that surround the creation of nested lists, and also show you how to employ them in production environments.

Naturally, if you've already read all of the previous articles of this series, then you're probably familiar with nesting HTML lists and using them to create well-structured sets of bulleted items. Speaking more specifically, in the preceding tutorial I explained how to utilize a basic nested list for building a hierarchical links bar, commonly seen nowadays on many web sites.

Since it's relatively easy to develop a navigation mechanism like the one mentioned above, in this final installment of the series, I'm going to discuss how to use nested lists for constructing a standard drop-down menu. Hopefully, this process will be pretty straightforward for you; it'll only require a basic background in CSS and JavaScript, since a bit of client-side scripting will be used for addressing some specific incompatibilities inherent to Internet Explorer 6 and below.

Having outlined the topic that will be treated in this last part of the series, it's time to leave all the preliminaries behind and start learning how to use nested HTML lists to develop a neat drop-down menu. Let's begin now!

blog comments powered by Disqus

- Does HTML5 Need a Main Element?
- Revisiting the HTML5 vs. Native Debate
- HTML5: Not for Phone Apps?
- HTML5 or Native?
- Job Hunting? Freelancer.com Lists This Quart...
- HTML5 in the News
- Report: HTML5 Mobile Performance Lags
- The Top HTML5 Audio Players
- Top HTML5 Video Tutorials
- HTML5: Reasons to Learn and Use It
- More of the Top Tutorials for HTML5 Forms
- MobileAppWizard Releases HTML5 App Builder
- HTML5 Boilerplate: Working with jQuery and M...
- HTML5 Boilerplate Introduction
- New API Platform for HTML5

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials