HTML Unordered Lists
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
The list items are marked with bullets (typically small black circles).
<ul>
<li> samsung </li>
<li> nokia </li>
</ul>
How the HTML code above looks in a browser:
- samsung
- nokia
HTML Ordered Lists
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
The list items are marked with numbers.
<ol>
<li> samsung </li>
<li> nokia </li>
</ol>
How the HTML code above looks in a browser:
- samsung
- nokia
HTML Definition Lists
A definition list is a list of items, with a description of each item.
The <dl> tag defines a definition list.
The <dl> tag is used in conjunction with <dt> (defines the item in the list) and <dd> (describes the item in the list):
<dl>
<dt>samsung</dt>
<dd> -all samsung are androids</dd>
<dt>nokia</dt>
<dd> -all nokia are windows</dd>
</dl>
HTML Unordered Lists
An unordered list starts with the <ul> tag. Each list item starts with the <li> tag.
The list items are marked with bullets (typically small black circles).
<ul>
<li> samsung </li>
<li> nokia </li>
</ul>
How the HTML code above looks in a browser:
- samsung
- nokia
HTML Ordered Lists
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
The list items are marked with numbers.
<ol>
<li> samsung </li>
<li> nokia </li>
</ol>
How the HTML code above looks in a browser:
- samsung
- nokia
HTML Definition Lists
A definition list is a list of items, with a description of each item.
The <dl> tag defines a definition list.
The <dl> tag is used in conjunction with <dt> (defines the item in the list) and <dd> (describes the item in the list):
<dl>
<dt>samsung</dt>
<dd> -all samsung are androids</dd>
<dt>nokia</dt>
<dd> -all nokia are windows</dd>
</dl>
HTML Unordered Lists
The list items are marked with bullets (typically small black circles).
<ul>
<li> samsung </li>
<li> nokia </li>
</ul>
How the HTML code above looks in a browser:
- samsung
- nokia
HTML Ordered Lists
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
The list items are marked with numbers.
<ol>
<li> samsung </li>
<li> nokia </li>
</ol>
How the HTML code above looks in a browser:
- samsung
- nokia
HTML Definition Lists
A definition list is a list of items, with a description of each item.
The <dl> tag defines a definition list.
The <dl> tag is used in conjunction with <dt> (defines the item in the list) and <dd> (describes the item in the list):
<dt>samsung</dt>
<dd> -all samsung are androids</dd>
<dt>nokia</dt>
</dl>