- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do we add a menu list in HTML?
Use the <menu> tag in HTML to add a menu list. The HTML <menu> tag is used for creating a menu list.
The HTML <menu> tag also supports the following additional attributes −
Attribute | Value | Description |
---|---|---|
label ![]() | text | Specifies a visible label. |
type ![]() | popup toolbar context | Specifies the type of menu to be displayed. |
Note − This tag deprecated in HTML and redefined in HTML5
Example
You can try to run the following code to add a menu list in HTML −
<!DOCTYPE html> <html> <head> <title>HTML menu Tag</title> </head> <body> <menu> <li>ol - ordered list</li> <li>ul - unordered list</li> <li>dir - directory list</li> <li>menu - menu list</li> </menu> </body> </html>
- Related Articles
- How do we add a definition term in HTML?
- How do we add a table row in HTML?
- How do we add a comment in HTML code?
- How do we add a noframe section in HTML?
- How do we add a noscript section in HTML?
- How do we add document title in HTML?
- How do we add glossary definitions in HTML?
- How do we add bold text in HTML?
- How do we add a sample computer code in HTML?
- How do we add a push button to HTML?
- How do we add a single-line input field in HTML?
- How do we add the width in characters for in HTML?
- How do we add extra information about an element in HTML?
- How to add a list item in HTML?
- How do we define the start of a term in a definition list in HTML?

Advertisements