Pages

Thursday, 5 July 2012

HTML-ATTRIBUTES

                 Attributes provides additional information about an element.Attributes are defined in the opening tag of the element.Attribute name and values are case sensitive.

Syntax:

attribute name="Value"

Standard HTML Elements:

  • id

         Provides unique id for an element.

  • class

         Provides class name for an element.

  • style

         Provides inline style for an element.

  • title

        Provides additional information about an element title. 

     

     Example: 

    <p style: font-size="--"; font-family="--";color="--";>     Paragraph with font attributes     </p>

                      This example shows the attributes of style (font family,color) for a paragraph.