HTML Elements

By | April 6, 2020

In this tutorial, we will learn about HTML Elements. All the HTML elements start with start Tag and end with end tag and we write content between these tags (start and end tag). For example

<p>This is P tag </p>

These HTML elements can be in a nested format. There can be elements in other elements. Check the following example.

<html>
<body>

<h1>This is H1 Tag</h1>
<p>This P Tag</p>

</body>
</html>
  • Here you can see we have first “HTML” element. This element simply defining HTML document and it starts with Html tag and ending with /Html tag.
  • After that, we have a body element. which is start with body tag and ending with /body tag. In this element, we write things which we want to show on the web page like headings and paragraphs.
  • Next, we have an h1 element to show heading in the web page.
  • At last, we have p element to show a paragraph on our web page.