Hello, world!

Elements HTML

The HTML elements is an essential part of the HTML structure. In this section of the HTML Tutorial you will get information about HTML Elements.


Definition:

Through starting tag, an HTML element is specified.
An HTML element is composed of three essential pieces: a start tag, the Element content, and the end tag.
 
Start tag: <h1>
Element content: Corresponds to the Heading Content
End tag: </h1>

Start tag: <p>
Element content: Corresponds to the Paragraph Content
End tag: </p>

Start tag: <div>
Element content: Corresponds to the Division Content
End tag: </div>

Start tag: <br />
Element content:
End tag:
 
Void Elements are not required to have end tag like <img.../>, <hr /> and <br /> elements.

Nested HTML Elements

HTML element within another HTML element is acceptable. However, anytime you have an HTML element that contains another element within it, always make certain in closing the inner element before closing its containing element.

HTML code nested HTML Elements:

<!DOCTYPE html>
<html>
<head>
<title>How to make Nested Elements</title>
</head>
<body>
<h1>How to make <b>bold</b> heading</h1>
<p>How to make <strike>strikethrough</strike> paragraph</p>
</body>
</html>

Output nested HTML Elements: