HTML Elements
An HTML element is consists a start and end tag, and the content inserted between starting and closing tag – :
<div> Div example. </div>
<p> Paragraph example </p>
<h1> Heading example </h1>
In HTML there are some elements which don’t need to close like : <br> ,<hr>
Nested HTML Elements
In HTML we can use nested elements (elements can contain other elements).
All HTML page consist of nested HTML elements.
Nested HTML Elements Example
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
<h1>Heading <i>italic</i> Example</h1>
<p>This is <u>underlined</u> paragraph</p>
</body>
</html>