Showing posts with label sorted lists. Show all posts
Showing posts with label sorted lists. Show all posts

Saturday, July 22, 2017

HTML 5 tutorials Part 3 - Bacis of HTML - Lists and Links

In this part we are going to discuss different kind of lists and links.

Lists


Unordered List

unordered list is the bulleted list which is defined using the tags ul and li.

<ul>
<li>1<sup>st</sup></li>
<li>2<sup>nd</sup></li>
</ul>

We can create nested lists with another ul tag within the li tag.
                <ul>
<li>1<sup>st</sup>
<<ul>
<li>1.1</li>
</ul>
</li>
<li>2<sup>nd</sup></li>
</ul>

Ordered List

We can create ordered lists using the <ol> and <li> tags. Define in the same way as unordered list.

Definition List

Definition list are used to have term and put its definition next to it.

<dl>
<dt>HTML</dt>
<dd>Hyper text markup language</dd>
</dl>