Open note pad (wordpad or MS word) , then type the commands as given below :
Save the file as . htm (dot htm) or . html (dot html) .
Open any web page , and browse the created page to view the web page .
Refer HTML - An Introduction before creating any web page.
===============================================
<html>
<head>
<Title>Drawing lines</title>
</head>
<body>
Hello world
<hr noshade size="5" align="centre" width="50%">
Welcome to HTML
<hr size="15" align="left" width="75%">
Learn how to draw horizontal lines
<hr size="20" align="right" width="75%">
</body>
</html>
OUTPUT :
Note :
<hr> is used to draw horizontal lines.
It has 4 attributes (Check what is an attributes, from Introduction)
1 : Align (left,right,centre)
2 : Width (length in pixels)
3 : Size (Thickness in pixels)
4 : Noshade (To draw in single color)
Note that , We are giving all these attributes with in the tags.