Please note, this is a STATIC archive of website technosmarter.com from 20 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
 

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 .

Please Share

Recommended Posts:-