HTML Elements

Elements are made by tags. They are usually made up of a pair of tags. Tags are pre-defined signs that HTML introduces to us.



What is HTML Element ?

As previously mentioned, the HTML document contains a hypertext that consists of a number of HTML elements.
Elements are made by tags. They are usually made up of a pair of tags. Tags are pre-defined signs that HTML introduces to us. These tag pairs are Opening tag and a Closing tag (also called start and end tags)

<tag>element content</tag>

For example, the paragraph element is made of tag <p> which causes the content inside this tag to be displayed as a paragraph.

<p>Paragraph contents...</p>

View in Code Editor

  • Elements are components of a web page. Like links, paragraphs, pictures and ...
  • The element starts with "start tag", then the contents of the element are placed, and ends with the "end tag".
  • The content of the element may consist of other elements.

<< : HTML exercise tool Empty Elements : >>