Home > Web Front-end > HTML Tutorial > The use and definition of tag in HTML5

The use and definition of tag in HTML5

黄舟
Release: 2017-06-29 11:39:56
Original
4425 people have browsed it

The tag in

html5 functions as an item called by the pop-up menu. Here is a detailed introduction to the usage of the tag, the tagattributes and tag application example.

The tag function in html: the item called by the pop-up menu

Tag usage:

The tag defines what the user can do from the pop-up menu The command/menu item invoked.

tag application example:

Context menu containing different elements:

<menu type="context" id="mymenu">
  <menuitem label="Refresh" onclick="window.location.reload();" icon="ico_reload.png">
  </menuitem>
  <menu label="Share on...">
    <menuitem label="Twitter" icon="ico_twitter.png"
    onclick="window.open(&#39;//twitter.com/intent/tweet?text=&#39;+window.location.href);">
    </menuitem>
    <menuitem label="Facebook" icon="ico_facebook.png"
    onclick="window.open(&#39;//facebook.com/sharer/sharer.php?u=&#39;+window.location.href);">
    </menuitem>
  </menu>
  <menuitem label="Email This Page"
  onclick="window.location=&#39;mailto:?body=&#39;+window.location.href;"></menuitem>
</menu>
Copy after login

What are the properties of the tag?

H5: Represents new attributes in HTML5.

The use and definition of <menuitem> tag in HTML5

Which browsers support the tag?

Firefox8.0 and higher versions support the tag.

The above is the detailed content of The use and definition of tag in HTML5. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template