0
Explain "div" tag in html
html
4 Antworten
+ 8
division/section
+ 3
The <div> tag defines a division or a section in an HTML document.
The <div> tag is used to group block-elements to format them with CSS.
+ 2
I hope this may help !!!!
USE this HTML code in your code playground to see what can a div tag to .
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Index</title>
</head>
<body>
<section style="background-color: red; ">
<div style="background-color: gray; " >
<h1> Heading 1</h1>
</div>
some text .......
<div style="background-color:#ffff00 ; " >
<h1> Heading 2</h1>
</div>
some more text
</section>
</body>
</html>
+ 2
gud