HTML div element | Div tag Example in HTML

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-


    

Syntax-

Container is a class of stylesheet. You can specify the container as id .


HTML Paragraph


<!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 .

Recommended Posts:-