Div Tag
- In HTML, the <div> element is used to define a division or a container that groups other HTML elements.
- It is a block-level element, meaning it typically starts on a new line and takes up the full width of its container.
- Div is used to group the HTML elements and apply CSS style to many elements at once.
Example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Div Example</title>
</head>
<body>
<div style="border:1px solid red;padding:20px;font-size:20px">
<p>Welcome to Quipoin</p>
<p>This is paragraph</p>
</div>
</body>
</html>
Output