A brief introduction to HTML
|
Organising content [1] Lists
- Often you want to organise content in ways that aren't
just simple text
- Lists are one way
-
HTML has tags for four kinds of lists
- <dl>
- A definition list (this is one) - contains
'definition titles' (<dt>) and 'definitions'
(<dt>)
- <menu>
- A list of links, for example for navigating a
site
- <ol>
- An ordered list, with automatically numbered
items
- <ul>
- An unordered list, with bulleted items
- Menus, ordered lists and unordered lists all contain only
'list items' (<li>)
- List items can contain anything (more or less)