Home Tutorial Html Html5 HTML5 p tag, Example of <p> tag in html5

 
 

Share on Google+Share on Google+
HTML5 p tag, Example of <p> tag in html5
Posted on: September 14, 2010 at 12:00 AM
Advertisement
In this tutorial, We will inform you about the use and implementation of <p> tag in html5.

HTML5 p tag, Example of <p> tag in html5

In this tutorial, We will inform you about the use and implementation of <p> tag in html5. This tag is used for specifying a paragraph in the html document. This tag automatically create the space in the browser at the position where paragraph is start and end. We can also specify the spacing by using css.

Declaration Syntax:   

The syntax of the <p> tag is as:

<p>Paragraph Text here</p>

This tag don't have any specific attribute.

Example: P_tag.html.

<!DOCTYPE html>
<html>
  <head>
      <title>Example of p Tag</title>
  </head>
<body>
   <p>
      This tag is used to make a paragraph in a document.
   </p>
   <p>
       We can use mnltiple p tag in the document.
   </p>
</body> 
</html>

 Output:

Download This Example:

Difference between html4.01 and html5.

The align attribute is not supported by in html5.

Advertisement

Related Tags for HTML5 p tag, Example of <p> tag in html5:


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: September 14, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com