Pages

Tuesday, December 7, 2010

The Address Element

The <address> element is used to supply contact information about a person, company or organization responsible of creating the document the user is viewing. By default, the text is displayed in italicized font style. The address element can only contain text or inline elements.

Listed below are the most common attributes you can use for this element:
  • class - provides the class or classes of the address element. 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 address element.
  • lang - provides the language in which the enclosed content is coded.
  • style - provides a cascading style sheet (CSS) properties to the address element.
  • title - provides a text title for the address element. Most web browser displays the value of the title as a "tooltip".

Here's an example how to use the <address> 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" />
            <meta name="keywords" content="blog, info matters" />
            <title>the ADDRESS element</title>
       </head>


       <body>
             <h1>
                  the ADDRESS element
             </h1>
             <address>
                  Sharky
                  Programmer
                  Philippines
             </address>
         </body>
     </html>

1 comments:

Anonymous said...

i read your post and try it, it works thanks for this.

Post a Comment