Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Monday, September 9, 2013

H6 - To draw horizontal lines in a web page

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.


Back to HTML  

PREVIOUS CHAPTER                 NEXT CHAPTER

No comments: