whAT IS THE THE USE OF <DIV> TAG | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

whAT IS THE THE USE OF <DIV> TAG

U

10th May 2022, 5:48 AM
AKASH ๐ŸŒž
AKASH ๐ŸŒž - avatar
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
10th May 2022, 5:54 AM
Raul Ramirez
Raul Ramirez - avatar
0
THANKS
10th May 2022, 6:15 AM
AKASH ๐ŸŒž
AKASH ๐ŸŒž - avatar