Creating lists in html
An unordered list is a list of items. The list items are marked with bullets (typically small black circles).
one way to organize the text in your web pages is with lists. in addition to the obvious benfit of being able to list items on a page,
they also provide a design by enabling yoy to break up long pages of ordinary paragraphs.HTML recognizes the following list types and has
tags that correspond to each.nside a list item you can put paragraphs, line breaks, images, links, other lists, etc
- Bullet(unordered list)
- Numbered(ordered lists)
- Definitions lists
Unordered lists
A bullet appears in front of each item in an unordered list. html creats the bullet when you use the unordered list tag <ul> together with the list item tags <li> |
|
| OUTPUT
- first item
- second item
- third item
- so on...
-
|
Numbered (ordered lists)
| output
- first item
- second item
- third item
- so on.....
|
Defination lists
This defination lists uses <dl>and uses <dt> for defination term and <dd> for definations.below is the example
| Output
- the defination term comes here
- this is the defination
|
List Tags
| Tag |
Description |
| <ol> |
Defines an ordered list |
| <ul> |
Defines an unordered list |
| <li> |
Defines a list item |
| <dl> |
Defines a definition list |
| <dt> |
Defines a definition term |
| <dd> |
Defines a definition description |
| <dir> |
Deprecated. Use <ul> instead |
| <menu> |
Deprecated. Use <ul>
instead |
|