网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: HTML :: HTML <menu>标签

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

HTML <menu>标签


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-28 浏览:1593 :: ::

定义与用法

The <menu> tag defines a menu list.
<menu>标签可定义菜单列表


在HTML和XHTML中的区别

The menu element was deprecated in HTML 4.01.
在HTML4.01中menu元素已经不被推荐使用了

The menu element is not supported in XHTML 1.0 Strict DTD.
XHTML1.0严密型DTD将不再支持menu元素。


提示与注意点

Tip: Use CSS styles to define the type of list!
提示:用CSS样式来定义列表类型!


实例

源代码 输出结果
<menu>
<li>html</li>
<li>xhtml</li>
</menu>
  • html
  • xhtml


  • 可选属性

    DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.
    下表中的DTD列指明了被支持的DTD属性。S=Strict(精确的),T=Transitional(传统的),F=Frameset(框架)

    属性 描述 DTD
    compact compact_rendering Deprecated. Use styles instead
    不推荐。请使用样式来替代
    TF

    标准属性

    id, class, title, style, dir, lang, xml:lang

    For a full description, go to Standard Attributes.
    查看完整的属性

    事件属性

    onclick, ondblclick, onfocus, onblur, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup

    For a full description, go to Event Attributes.
    查看完整的属性

    评论 (0) All