Monday, 22 April 2013

HTML Paragraph



HTML  Paragraph


  •  HTML documents are divided into paragraphs.
  •   Paragraphs are defined with the <p> tag.\
  • Most browsers will display HTML correctly even if you forget the end tag.
  •   Publishing any kind of written work requires the use of a paragraph.
  • The paragraph tag is very basic and a great introductory tag for beginner's because of its simplicity.
  •  The <p> tag defines a paragraph. Using this tag places a blank line above and below the text of the paragraph.
  • These automated blank lines are examples of how a tag "marks" a paragraph and the web browser automatically understands how to display the paragraph text because of the paragraph tag.
  •   Paragraphs can be formatted in HTML much the same as you would expect to find in a word processing program. Here the align attribute is used to "justify" our paragraph.


Description


  • The <p> tag is supported in all major browsers.
  •   The <p> tag defines a paragraph.
  •   Browsers automatically add some space (margin) before and after each <p>element. The margins can be modified with CS  (with the margin properties).


The attribute  of  <p>  tag  is  “align”  which  has  four  values like left, right, centre  and  justify..

Also see the <br>  tag for creating a line break within a paragraph.

In certain situations, the <p> tag is not the best tag to use. It's a good idea to become familiar with other HTML tags that have a more specific purpose. Examples include <footer>, <address> and <blockquote> to name a few.



Use  of  Paragraph

The HTML <p> element (or HTML Paragraph Element) represents a paragraph of text.


Example

<html>
<body>
<p>This paragraph is defined using the HTML p tag.</p>
<p>This is a new paragraph which is also defined using the HTML p tag.</p>
</body>
</html>



Display

This paragraph is defined using the HTML p tag.
This is a new paragraph which is also defined using the HTML p tag.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More