Pages

Monday, December 13, 2010

The Paragraph element

The Paragraph <p> element creates a paragraph. The Paragraph <p> element is very helpful when you would like to separate group of sentences. Normally, web browsers adds a blank line before a new paragraph starts.

Listed below are the most common attributes you can use for paragraph element:
  • align - sets the horizontal alignment of the heading inside the web browser, such as left, right, center and justify.
  • class - provides the class or classes of the heading. This attribute is used to identify the name of the style class or classes to be used for rendering.
  • id - provides a unique name for the heading.
  • lang - provides the language in which the enclosed content is coded.
  • style - provides a cascading style sheet (CSS) properties to the heading.
  • title - provides a text title for the element. Most web browser displays the value of the title as a "tooltip".

Here's an example on how to use the paragraph element:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
         <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
         <mate name="keywords" content="blog, web development" />
         <title>the PARAGRAPH element</title>
     </head>

     <body>
       <h1>
         the PARAGRAPH element
       </h1>
       An article from the Wall Street says:
       <p>
         COMPANIES outsource their information technology operations for a lot of reasons, but the most important is always to save money. So how is it that so many outsourcing deals fail to deliver on the promised savings?
       </p>
       <p>
         Joe Hogan, vice president of strategic sourcing programs for Unisys Corp., of Blue Bell, Pennsylvania, said companies fail r from "misaligned expectations" among the outsourcer, the chief information officer and the departments thto anticipate changes in business circumstances or in technology, resulting in surprise charges; they suffeat use the technology; and they don't take into account hidden costs.
       </p>
     </body>
   </html>
          

0 comments:

Post a Comment