HTML <div> is nothing effect without CSS . The <div> is known as block elements that contains the block of contents .
As you know that <div> is nothing done without CSS stylesheet .
The <div> contains the id and classes of the stylesheet.
Syntax-
<!DOCTYPE html>
<html>
<head>
<title>HTML <div> element </title>
</head>
<body>
This is a heading
Paragraph goes here
</body>
</html>
Run
Note- <div> is a block element that contains the block of content. You must close the block by closing tag </div>
A web page can contain multiple <div> block .