HTMLforall

  HTML | PHP | Forum

HTML <menu> tag

Syntax

<menu> - </menu>

Definition and Usage

The MENU element defines a menu list. The element contains one or more LI elements that define the actual items of the list. The LI elements must not contain block-level elements, which prevents MENUs from being nested.

In HTML 4.01, the <menu> element is deprecated in favor of the elements <UL> <OL>.

Optional Attributes

Attribute Value Description
compact compact_rendering Deprecated. Use style sheet

Standard Attributes

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

For a full description, go to Standard Attributes.

Event Attributes

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

For a full description, go to Event Attributes.

Example

Source Output
<menu>
<li>Tehe elder scrolls</li>
<li>Titan Quest</li>
<li>Rise of Nations</li>
</menu>
  • Tehe elder scrolls
  • Titan Quest
  • Rise of Nations
  • Home

    Learn HTML
    HTML Tutorial

    HTML Reference
    HTML by function
    HTML by Alphabet

    HTML events
    HTML attributes
    HTML color names

    <!--...-->
    <!DOCTYPE> 
    <a>
    <abbr>
    <acronym>
    <address>
    <applet>
    <area>
    <b>
    <base>
    <basefont>
    <bdo>
    <big>
    <blockquote>
    <body>
    <br>
    <button>
    <caption>
    <center>
    <cite>
    <code>
    <col>
    <colgroup>
    <dd>
    <del>
    <dfn>
    <dir>
    <div>
    <dl>
    <dt>
    <em>
    <fieldset>
    <font>
    <form>
    <frame>
    <frameset>
    <h1> to <h6>
    <head>
    <hr>
    <html>
    <i>
    <iframe>
    <img>
    <input>
    <ins>
    <isindex>
    <kbd>
    <label>
    <legend>
    <li>
    <link>
    <map>
    <menu>
    <meta>
    <noframes>
    <noscript>
    <object>
    <ol>
    <optgroup>
    <option>
    <p>
    <param>
    <pre>
    <q>
    <s>
    <samp>
    <script>
    <select>
    <small>
    <span>
    <strike>
    <strong>
    <style>
    <sub>
    <sup>
    <table>
    <tbody>
    <td>
    <textarea>
    <tfoot>
    <th>
    <thead>
    <title>
    <tr>
    <tt>
    <u>
    <ul>
    <var>

     

    Copyright 2005-8 Sunilcare.  All Rights Reserved.
    Comments or suggestions? Contact us.About us