HTML Elements

    1100440 VIEW 1 0

An HTML file is made of elements. These elements are responsible for creating web pages. HTML element is the collection of start and end tag with the content inserted in between them.

Examples of some HTML elements:

<h1>My First Heading</h1>
<p>My first paragraph.</p>


Important Notes
  • Some HTML elements have no content (like the <br> element). These elements are called empty elements. Empty elements do not have an end tag
  • HTML elements can be nested (this means that elements can contain other elements in otherone). All HTML documents consist of nested HTML elements. The following example contains four HTML elements (<html>, <head>, <title>)
  • HTML tags are not case sensitive: <P> means the same as <p>.
  • The HTML standard does not require lowercase tags, but W3C recommends lowercase in HTML, and demands lowercase for stricter document types like XHTML.