HTML 5 Common interaction elements ———— menu Interaction elements (1)

Source: Internet
Author: User

<menu> is an old HTML 5 re-enabled tag that is used in combination with <li> list elements to define a list of menus, attributes, and descriptions:

Property Value Description

Autosubmit true/flase True when an element in a form is automatically committed when a change occurs

lable any character to define a visible callout for a menu

Type Context Toolbar list defines the types of menu displays, default to list, which is the option in the list display menu

Example 1:

<!doctype html>
<meta charset= "Utf-8" >
<title> Interactive Elements "menu" use </title>
<style type= "Text/css" >
body{
font-size:12px;
padding:5px
}
menu{
padding:0;
margin:0;
Display:block;
Border:solid 1px #365167;
width:222px
}
Menu li{
List-style-type:none;
padding:5px;
margin:5px;
height:28px;
width:200px
}
Menu li:hover{
Border:solid 1px #7DA2CE;
Background-color: #CFE3FD
}
Menu Li img{
Clear:both;
Float:left;
padding-right:8px;
margin-top:-2px
}
Menu Li span{
Float:left;
padding-top:5px;
font-size:13px
}
... Omit partial instance repeating style code
</style>

<body>
<menu>
<li>
</img>
<span>mozilla firefox</span>
</li>
<li>

<span>Safari</span>
</li>
</menu>
</body>

HTML 5 Common interaction elements ———— menu Interaction elements (1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.