Sunday, July 26, 2015

HTML Elements

HTML Documents are determined by the HTML Elements . The elements between the start tags and end tags are called HTML Elements. Start tag and end tags are also called opening tags and closing tags.


Start Tag/Opening Tag
Element Content
End Tag/Closing Tag
<p>
This is a paragraph
</p>
<a href=”default.html”>
This is a link
</a>
<br/>



HTML Element Syntax

  • Any HTML element begins with start tag/opening tag and ends with end tag/closing tag.
  • All things between start and end tag are element content.
  • Some HTML elements have no content. Those are called empty content.
  • Empty elements are ended between the start tags.
  • Most of the HTML elements have attributes.

Nested HTML Elements

Many HTML elements may be nested. i.e. those may contains other HTML elements. HTML documents are consist of several nested HTML elements. See the following example which is consist of three HTML elements.

No comments:

Post a Comment