Pages

Thursday, 5 July 2012

HTML-ELEMENTS

                        An ELEMENT in HTML consists of an opening tag,closing tag and the element name.

An example for a complete element:

                              <P>This is a paragraph</P>


EMPTY ELEMENT:
                         The element content within a single tag and without a tag pair is called as an Empty Element.

Examples:
  • <br>
  • <hr>
  • <area>
  • <base>
  • <isindex>
  • <link>
  • <frame>
  • <img>
  • <input>
  • <col>
  • <meta>
  • <param>
  • <basefont> 

NESTED ELEMENT:
                       The HTML element contains another HTML element in the loop is called as Nested element.

Example:
 <html>
       <body>
                <p>This is a paragraph</p>
       </body>
 </html>
 
here i have used 3 elements.....