What div tag refers to? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What div tag refers to?

28th Aug 2016, 5:50 AM
sindhuja
2 Answers
0
Basically div tag forms a block of code in your while program. you can do things exclusively to this block without affecting the entire code like changing the background colour.
31st Aug 2016, 10:17 AM
Arvind Ramesh
Arvind Ramesh - avatar
0
the div is a container. it allows you to apply css codes to the code inside the div tag. if you apply a border or background to the div it will look like a block on your webpage. any text you add before or after the div tag would display on another line and not "inline" with the text in your div tag.
7th Sep 2016, 5:04 PM
Amy Christian
Amy Christian - avatar