1. Ordered list start with <ol> tag and ends with </ol>. 2. All the items in this list are enclosed in <li> and </li> tags. 3. By default items in this list will get numbers as a markers. 4. We can change markers using attributes.
Unordered List
Unordered list start with <ul> tag and ends with </ul>. All the items in this list are enclosed in <li> and </li> tags. By default items in this list will get filled circle as a bullets. We can change bullets using attributes.
Description List
HTML also supports description list. It is a list of some phrase(term) and description of the phrase. It has 3 tags <dl> — For Creating list <dt> — For Term <dd> — For Description
ITVoyagers
Ordered List with its attributes
By default ordered list will mark each item with number. We can change this mark by using “type” attribute.
type tag has following values.
type = “a”
type = “A”
type = “i”
type = “I”
type = “1” (default)
type = “a”
If we want our list to mark with Lower case alphabets e.g. “a”.
we have to set “a” as value for “type” attribute in <ol> tag.
There are 3 tags use in creating Description list.
<dd> — Use to create Description list.
<dt> — Description term is enclosed in this tag.
<dd> — Description for the term is enclosed in this tag.
<!– Code :
<dl> <dt> ITVoyagers </dt>
<dd> ITVoyagers is an educational blog for information technology and computer science program.We have started this blog with a goal of meeting the requirements of learners to cope with the changing technology. </dd> </dl>
–>
ITVoyagers
ITVoyagers is an educational blog for information technology and computer science program.We have started this blog with a goal of meeting the requirements of learners to cope with the changing technology.