Pages

Thursday, December 23, 2010

The Emphasized Element

The emphasized <em> element is used to emphasize a word or phrase. The text within the emphasized element are being displayed in an italicized font style.

 Listed below are the most common attributes you can use for the emphasized 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.
  • lang - provides the language in which the enclosed content is coded.
  • style - provides a cascading style sheet (CSS) properties to the heading.
  • title - privides 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 emphasized 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, Info Matters" />
         <title>the EMPHASIZED element</title>
     </head>

     <body>
       <h1>
         the EMPHASIZED element
       </h1>
         An article from the Wall Street says:
       <p>
            Google Inc. is pulling farther away from the pack.<br />
            The mountain View, California, company said fourth-quarter profit nearly tripled, largely as a result of improvements advertising revenue from its core <em>Web-search business</em>, which is far outpacing that of the rivals such as Yahoo inc. and Microsoft Corp.
       </p>
   </body>
</html>

0 comments:

Post a Comment