Pages

Sunday, 15 July 2012

HTML-PARAGRAPHS

                In HTML all text elements are mainly displayed with the paragraph element.

 

Syntax:

 

<p>----------------------------------</p>

 

Example:

<html>

<body>

<p> HTML is very interesting & easiest one to learn.</p>

</body>

</html> 

 

 

                                  HTML-Line Breaks

                 We have already seen line break element in empty elements concept.

By using the line break we can move the cursor into next line.

 

Syntax:

    <br>


Example:

<html>

<body>

<p> First line</p><br>

<p>Second line</p>

</body>

</html>