HTML Lists are used to list the contents in order.
HTML lists are of 3 types Ordered,Unordered,Definition list.
Ordered lists are created using "ol" tag which displays list items in ordered way of numbers.It also has closing tag.each list item is embeded inside opening and closing of "li" tag
The ordered lis may look like the following
- Name
- Age
- Address
which is the output of following code
Unordered lists are created using "ul" tag which displays list items in unordered way of bullets.It also has closing tag.each list item is embeded inside opening and closing of "li" tag
The ordered lis may look like the following
- Name
- Age
- Address
which is the output of following code
The ul tag has following types
disc
square
circle
Definition lists are created using "dl" tag which displays list items as its description.It also has closing tag.each item is embeded inside opening and closing of "dd" tag which is a data description followed by "dt" which defines the item list.
The ordered lis may look like the following
- Fruits
- - apple
- - orange
- Laptops
- - DELL
- - HCL
which is the output of following code
No comments:
Post a Comment