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

H5 - SPACE between text

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>My web page</title>
</head>
<body>
   <pre>
      Priyada Mohanan
      Ernakulam,Cochin
      Kerala
      India
   </pre>
</body>
</html>

OUTPUT : 



Note : 
<br> is used to start a new line.
Here instead of <br> , we add <pre>.
While using <pre> , no need to use <br> in each line.(Check previous example also.)

Back to HTML  


H4 - Address 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>My web page</title>
</head>
<body>
<br>Priyada Mohanan</br>
<br>Ernakulam,Cochin</br>
<br>Kerala</br>
<br>India</br>
</body>
</html>

OUTPUT : 


Note : <br> is used to start a new line.It is an EMPTY(STAND ALONE) tag.
That is <br> has no closing tag(check introduction)
Check the difference in output, of this and next example.

Back to HTML