Kosmo零
Kosmo零

Reputation: 4151

Is there any native tags or ways to build structurized lists in HTML?

I know, I can add &npsp; before items and use UL tag, but the dot still remain in one row. How to make something I drawn on picture?

enter image description here

Upvotes: 0

Views: 23

Answers (1)

Madara's Ghost
Madara's Ghost

Reputation: 174997

Use nested lists:

<ul>
    <li>Level 1
        <ul>
            <li>Level 2</li>
            <li>Level 2</li>
            <li>Level 2
                <ul>
                    <li>Level 3</li>
                    <li>Level 3</li>
                    <li>Level 3</li>
                </ul>
            </li>
        </ul>
    </li>
    <li>Level 1</li>
</ul>

This generates:

  • Level 1
    • Level 2
    • Level 2
    • Level 2
      • Level 3
      • Level 3
      • Level 3
  • Level 1

And so on.

Upvotes: 3

Related Questions