Div Tag
- The HTML <div>…..</div> tag is used define a section of document.
- Using div tag, you can group large sections of HTML elements together and format them with CSS.
- The <div> element is very often used together with CSS, to layout a web page.
Example:
<html>
<head> </head>
<body>
<p>I am outside div paragraph</p>
<div style="color: red">
<h3>This is Heading is inside div tag</h3>
<p>This is paragraph is inside div tag</p>
</div style="color: red">
</body>
</html>