We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What Are the Different Types of HTML Menus?

By Eugene P.
Updated: May 16, 2024
Views: 12,588
Share

There are several types of HyperText Markup Language (HTML) menus, although implementing most of them requires the use of cascading style sheets (CSS), a scripting language or some external modules. The most basic type is a list of static links. A horizontal or vertical strip of options can be made to look much like a menu bar from a desktop application. Multilevel menus allow each menu option to contain another menu and can be used for complex navigation through a large website. Special effects such as floating HTML menus or menus that animate when opened also are possible on a website.

The most basic type of HTML menus is a list of static links. This also is one of the only ways to implement a menu in pure, basic HTML. The menu in this case basically is just a list of links, with each being a hypertext link to a destination. Although very simple, this type of menu will render on all devices and does not rely on any special browser features to operate.

Drop-down HTML menus resemble a menu bar in a standard desktop application. When a word or icon in this type of menu is clicked, a box containing selectable options opens under the word or icon that was clicked. A drop-down menu is familiar to most computer users but can complicate navigation on a website if too many options or headers are used.

Multilevel HTML menus are a way to implement a nested menu tree. This can appear as a drop-down menu or more like a properties tree, with each option having a way to expand any sub-options in the tree. With the use of dynamic HTML (DHTML) or a scripting language, a multilevel menu can be dynamically generated from a series of web pages and updated during navigation. A possible complication is that, if the depth of the option tree is very deep, the formatting on a web page might be affected.

Floating HTML menus use less standardized techniques than other types of HTML menus but can create a convenient navigational element for a page. By using CSS and scripting, a single frame can be positioned at a static location on the page so that, despite scrolling, the menu always appears in the same place. Some browsers do not necessarily support the positioning code required for a floating menu, however. Without careful page design, the menu actually might cover important information on the page.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
Share
https://www.easytechjunkie.com/what-are-the-different-types-of-html-menus.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.