0% found this document useful (0 votes)
2 views1 page

Difference Between HTML Lists

Uploaded by

pkumari19024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Difference Between HTML Lists

Uploaded by

pkumari19024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Difference Between HTML Lists

Feature Ordered List (<ol>) Unordered List Description List (<dl>)


(<ul>)

Purpose To display items in a To display items in no To show terms and their


specific order specific order descriptions

Tag Used <ol> <ul> <dl>

List Item Tag <li> <li> <dt> (term), <dd>


(description)

Default Style Numbers (1, 2, 3...) Bullets (•) No bullets or numbers

Ordering Order matters Order does not Describes the meaning of


Importance (steps, ranks, etc.) matter terms

Use Case Instructions, steps, Shopping list, Glossary, FAQ section


Example rankings navigation menu

Style type, start type (disc, square, No style attributes for


Attributes circle) ordering

Semantic Use Indicates ordered Indicates grouped Indicates term-definition


content unordered content relationships

Example Tags <ol><li>One</li <ul><li>One</li> <dl><dt>HTML</dt><dd


></ol> </ul> >Markup
language</dd></dl>

Common Use Tutorials, recipes Menus, feature lists Glossaries, subject


In explanations

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy