In HTML, we are having 3 types of list.
- Ordered List
- Unordered List
- 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.
<ol>
<li>HTML</li>
<li>CSS</li>
<li>JAVASCRIPT</li>
<li>PHP</li>
</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.
<li>HTML</li>
<li>CSS</li>
<li>JAVASCRIPT</li>
<li>PHP</li>
</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>
<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>
0 comments:
Post a Comment