HTML offers web authors three ways for specifying lists of information. All lists must contain one or more list elements. Lists may contain:
HTML Unordered Lists
An unordered list is a collection of related items that have no special order or sequence. This list is created by using HTMLExample
HTML Unordered List
Beetroot Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
The type Attribute
You can use type attribute for- tag to specify the
type of bullet you like. By default it is a disc. Following are the
possible options:
type="square">
type="disc">
type="circle">
Example
Following is an example where we usedHTML Unordered List
- type="square">
Beetroot
Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
Example
Following is an example where we used- :
HTML Unordered List
- type="disc">
Beetroot
Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
Example
Following is an example where we used- :
HTML Unordered List
- type="circle">
Beetroot
Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
HTML Ordered Lists
If you are required to put your items in a numbered list instead of bulleted then HTML ordered list will be used. This list is created by usingExample
HTML Ordered List
Beetroot Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
The type Attribute
You can use type attribute for- tag to specify the
type of numbering you like. By default it is a number. Following are the
possible options:
type="1"> - Default-Case Numerals.
type="I"> - Upper-Case Numerals.
type="i"> - Lower-Case Numerals.
type="a"> - Lower-Case Letters.
type="A"> - Upper-Case Letters.
Example
Following is an example where we usedHTML Ordered List
- type="1">
Beetroot
Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
Example
Following is an example where we usedHTML Ordered List
- type="I">
Beetroot
Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
Example
Following is an example where we usedHTML Ordered List
- type="i">
Beetroot
Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
Example
Following is an example where we usedHTML Ordered List
- type="A">
Beetroot
Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
Example
Following is an example where we usedHTML Ordered List
- type="a">
Beetroot
Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
The start Attribute
You can use start attribute for- tag to specify the starting point of numbering you need. Following are the possible options:
type="1" start="4"> - Numerals starts with 4.
type="I" start="4"> - Numerals starts with IV.
type="i" start="4"> - Numerals starts with iv.
type="a" start="4"> - Letters starts with d.
type="A" start="4"> - Letters starts with D.
Example
Following is an example where we usedHTML Ordered List
- type="i" start="4">
Beetroot
Ginger Potato Radish This will produce following result:
- Beetroot
- Ginger
- Potato
- Radish
HTML Definition Lists
HTML and XHTML support a list style which is called definition lists where entries are listed like in a dictionary or encyclopedia. The definition list is the ideal way to present a glossary, list of terms, or other name/value list.Definition List makes use of following three tags.
-
- - Defines the start of the list
-
- - A term
- - Term definition
Example
HTML Definition List
- HTML
- This stands for Hyper Text Markup Language
- HTTP
- This stands for Hyper Text Transfer Protocol
Post a Comment
0 comments
Dear readers, after reading the Content please ask for advice and to provide constructive feedback Please Write Relevant Comment with Polite Language.Your comments inspired me to continue blogging. Your opinion much more valuable to me. Thank you.