How to create a multilevel list in HTML

Discussion in 'Programming/Scripts' started by semajames, Mar 3, 2016.

  1. semajames

    semajames New Member

    multilevel list in HTML
     
  2. ztk.me

    ztk.me Active Member

  3. justinvirk

    justinvirk New Member

    The only valid child of either a ul or ol is an li element; an li can, however, contain a ul (or ol).To achieve your aim:

    <ul>
    <li>myItem 1</li>
    <li>myItem 2</li><listyle="list-style-type:none">
    <ul>
    <li>myItem 2a</li>
    </ul></li>
    <li>myItem 3</li>
    <li>myItem 4</li></ul>
     
    Last edited: Apr 18, 2016
    albertrobber likes this.

Share This Page