Now I’m going to create a number list , so please type the below code in your note pad and save the file with “.html” and open a web browser and open this file.
<html>
<head>
<title> This is my web page </title>
</head>
<body>
Now, I'm going to create a list of number bullets:
<br> <br>
<ol>
<li>One </li>
<li>Two </li>
<li> Three </li>
</ol>
</body>
</html>
Output:
Now, I'm going to create a list of number bullets:
|
Let me explain the above tags used to create a list of items:
<ul> … </ul>
“Ul” stands for unordered list and used to create bulleted list
<ol> …</ol>
“Ol” stands for ordered list and used to create a numbered list
<li> … </li>
“Li” stands for listed items and is nested within ordered or unordered tags
<br> is used to add a single line of space on a web page
This is an empty tag and stands alone. You can use the <br> tag to insert one or more blank lines,so let say if you wants to add three spaces on your web page write the below code anywhere inside your body tab:<br><br><br>
Also ,if you want to add a Horizontal line on your web page, type this tag anywhere inside the body tags where you want to insert a line:
<hr>
Remember: HTML is not a case sensitive language
No comments:
Post a Comment