HTML Elements

In this article we are going understand about some of HTML Elements.

HTML Elements

HTML Element

An HTML Element is all about a start tag to end tag.

example: Below you can see example, where <h1> is start tag, Heading is here was the content of that element h1 , and </h1> is the end tag.

<h1>Heading is here</h1>

Nested HTML Elements

All HTML documents consist of nested HTML elements.

All HTML elements can be nested (it means one element can contain other elements.

example: below you can see the h1 and p elements nested in the body element, in which body element itself is nested in html element.

<!DOCTYPE html>
<html>
<body>

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

</body>
</html>

About Case sensitive

HTML tags are not case-sensitive.

Example: when we write a paragraph we can use <p> as well as <P>. It reads as both are the same.

Elements

TagsDescription
<html>It is the root of an HTML element
<body>It is the document's body
<h1> to <h6>It is the HTML headings
<p>It is the tag for the paragraph
<br>It is the break element was a self-closing tag
<table>It is used for creating a table

There are other elements are exist too... explore them below:

w3schools

MDN web docs