HTML List


In HTML, we are having 3 types of list.
  1. Ordered List
  2. Unordered List
  3. Definition List
1) Ordered List :-

It is also called as "Number list", it is used into provide number into the list item .An Ordered list begins with the <ol> tag.
Every list item begins with the <li> tag.
ol
Example:
<ol>
<li>HTML</li>
<li>CSS</li>
<li>JAVASCRIPT</li>
<li>PHP</li>
</ol>
ol

2) Unordered List :-

It is also called as "bulleted list", It is used to give bullets to the list item .An unordered list begins with the <ul> tag.
Every list item begins with the <li> tag.
Example:
<ul>
<li>HTML</li>
<li>CSS</li>
<li>JAVASCRIPT</li>
<li>PHP</li>
</ul>


3) Definition List : -

It is also called as "description list" It is used to give Definitions to Definition terms. Definition List begins with the <dl> tag.
<dt> tag defines a definition term.
<dd> tag defines a definiton data.

Example:
<dl>
  <dt>HTML</dt>
  <dd>It is Hypertext Resources, It is from w3c Organization. Latest version is HTML5.</dd>
  <dt>CSS</dt>
  <dd>Css stands for cascadin style sheet, used to describe the way how to provide Style to the html element. It is client-side language.</dd>
<dt>PHP</dt>
<dd>PHP is a server side scripting language implemented by Rasmus Lerdorp in 1995 Using 'c' and 'Perl' Technologies. By using PHP we can develop Dynamic web Application.</dd>
</dl>



SHARE

Naveed Baig

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment

0 comments: