The HTML Elements reference.

"p" - html element

  • This element defines a paragraph of text.
  • Starttag <p> is Required and endtag </p> is Optional
  • You should include the endtag </p> although the HTML specification do not require it.
  • Browsers that support the p - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "p" example:
<html>
 <head>
   <title>Defining and Aligning Paragraphs</title>
 </head>
 <body>
  <p>HTML only recognizes single spaces between characters.
     Other than a single tap on the space bar, HTML has little
     regard for how you type things. What it does have regard
     for is tags.</p>
 </body>
</html>


Attributes:
align (deprecated), class , dir , id , lang , style , title

Attribute "align" value(s): depend on which element left, center, right or justify
  • Specifies the horizontal alignment of its element with respect to the surrounding context.
  • You should use styles (CSS) instead.
Possible attribute, align, values for this element:
Attribute value description
top The legend is at the top of the fieldset. This is the default value.
bottom The legend is at the bottom of the fieldset.
left The legend is at the left side of the fieldset.
right The legend is at the right side of the fieldset.

Attribute "align" example:
<html>
 <head>
   <title>Defining and Aligning Paragraphs</title>
 </head>
 <body>
  <p align='center'>To align a paragraph, add the align
  attribute to the start paragraph tag</p>
 </body>
</html>



© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.