So in the last blog, we worked on with a list called unordered list......Now we are gonna study more types of list..
Ordered list - This type of list starts with <ol> and ends with </ol>....this type of list creates auto numbers like 1,2,3,4....etc.. Now go to your notepad and update the code...the things in bold must be updated..
<html>
<head>
<title>My First Webpage (About dinosaurs)</title>
</head>
<h1>First Webpage</h1>
<h2>Welcome to my Website......
<p>This is my first webpage....Hope you like it</p>
<br>
<br>
<h2>Dinosaurs --- All about them</h2>
<br>
<p>We all know about dinasaurs.. There are many types of dinosaurs and some of the names are :-
<ol>
<li>Abelisaurus</li>
<li>Acanthopholis</li>
<li>Acristavus</li>
</ol>
</html>
After updating the code your result will be like this :-
Did you notice the difference? In unordered list we saw circles instead of numbers...this is the difference between ordered and unordered lists...
There are not just these two types but there are more lists...
Definition List : This is a complicated type of list then the others...
Lets look at an example....create a new notepad document and type in the following code :-
<html>
<head>
<title>HTML Definition List</title>
</head>
<body>
<dl>
<dt><b>HTML</b></dt>
<dd>This stands for Hyper Text Markup Language</dd>
<dt><b>HTTP</b></dt>
<dd>This stands for Hyper Text Transfer Protocol</dd>
</dl>
</body>
</html>
and your result will look somewhat like this:-
now lets study the code.
<dl></dl> Stands for the definition list...it works like the <ol> and </ol> tag
2 >>> <dt></dt>Part is called the topic... HTML and HTTP are the topics here..
1>>><dd></dd>Part is called the subtopic part.....the full forms of http and html are subtopics...
Now you understood definitions list...so in the next blog w will be studying nested lists...
Ordered list - This type of list starts with <ol> and ends with </ol>....this type of list creates auto numbers like 1,2,3,4....etc.. Now go to your notepad and update the code...the things in bold must be updated..
<html>
<head>
<title>My First Webpage (About dinosaurs)</title>
</head>
<h1>First Webpage</h1>
<h2>Welcome to my Website......
<p>This is my first webpage....Hope you like it</p>
<br>
<br>
<h2>Dinosaurs --- All about them</h2>
<br>
<p>We all know about dinasaurs.. There are many types of dinosaurs and some of the names are :-
<ol>
<li>Abelisaurus</li>
<li>Acanthopholis</li>
<li>Acristavus</li>
</ol>
</html>
After updating the code your result will be like this :-
Did you notice the difference? In unordered list we saw circles instead of numbers...this is the difference between ordered and unordered lists...
There are not just these two types but there are more lists...
Definition List : This is a complicated type of list then the others...
Lets look at an example....create a new notepad document and type in the following code :-
<html>
<head>
<title>HTML Definition List</title>
</head>
<body>
<dl>
<dt><b>HTML</b></dt>
<dd>This stands for Hyper Text Markup Language</dd>
<dt><b>HTTP</b></dt>
<dd>This stands for Hyper Text Transfer Protocol</dd>
</dl>
</body>
</html>
and your result will look somewhat like this:-
now lets study the code.
<dl></dl> Stands for the definition list...it works like the <ol> and </ol> tag
2 >>> <dt></dt>Part is called the topic... HTML and HTTP are the topics here..
1>>><dd></dd>Part is called the subtopic part.....the full forms of http and html are subtopics...
Now you understood definitions list...so in the next blog w will be studying nested lists...


Comments
Post a Comment