HTML Div Tag


The <div> tag is a block-level element that defines a division or a section in an HTML document. 

Example

<!DOCTYPE>
<html>
<body>
  <div style="border:2px solid red;padding:30px;font-size:25px">
    <p>Welcome to Earth.</p>
    <p>This is second paragraph</p>
  </div>
</body>
</html>