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.



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

HTML Paragraph

<!DOCTYPE html>
<title>HTML <div> element </title>


This is a heading

Paragraph goes here

</body> </html>

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:-