0

Explain "div" tag in html

html

2nd Jan 2017, 1:25 PM
SALIM RAJA M
SALIM RAJA M - avatar
4 Respuestas
+ 8
division/section
2nd Jan 2017, 1:33 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 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.
2nd Jan 2017, 1:46 PM
Abdel
Abdel - avatar
+ 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>
2nd Jan 2017, 2:04 PM
Abdel
Abdel - avatar
+ 2
gud
2nd Jan 2017, 2:44 PM
SALIM RAJA M
SALIM RAJA M - avatar