New course! Every coder should learn Generative AI!
Try a free lesson0
whAT IS THE THE USE OF <DIV> TAG
U
2 Answers
+ 1
Mainly used to define an structure/โobjectโ. For example
<div class=โcardโ>
<img src=โurlโ >
<p>
</p>
</div>
Now with css i could easily move the card object around and style the contents inside.
In JS you could could also have so that you read from some file / api and create a bunch of these on the fly
0
THANKS