Pages

Sunday, December 26, 2010

Line Break Element

The Line Break <br> element is used to create a line break and to tell the web browser that a new line should begin.

Listed below are the most common attributes you can use for the line break element:
  • 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.
  • style - provides a cascading style sheet (CSS) properties to the heading.
  • title - provides a text title for the heading. Most web browser displays the value of the title as "tooltip".




Here's an example on how to use the line break 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 LINE BREAK element</title>
     </head>

     <body>
       <h1>
         the LINE BREAK element
       </h1>
       <p>
           Seek comfort with me, in my welcoming arms<br />
           Should grief intersect in our course<br />
           Find strength with me, together as one<br />
           If despair challenges a bid for remorse.<br />
       </p>
   </body>
</html>

0 comments:

Post a Comment