Language

HTML Div Element


<div> is an important tag. Helps to style many tags by breaking them into pieces. It's easy to style with <div> so the <div> tag is placed on most pages. The <div> tag is used to group other tags.

HTML Div Element

Example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
    	<h1> Heading </h1>
        <p> Paragraph </p>
        <span> Hello World ! </span>
    </div>
</body>
</html>