how does the div tag work? I tried it while coding at school but it just wouldn't work. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how does the div tag work? I tried it while coding at school but it just wouldn't work.

24th Jul 2016, 5:35 PM
Koketso Dithipe
Koketso Dithipe - avatar
6 Answers
+ 12
let me see how I can help. padding is the space in between the border and the text/ image/ content
20th Jul 2017, 4:11 PM
CC Calvello
CC Calvello - avatar
+ 8
Oh!😁 Thank you very much.
20th Jul 2017, 4:13 PM
Koketso Dithipe
Koketso Dithipe - avatar
+ 7
I... might've deleted it🙈🙈 would you explain what padding is? I keep seeing it and I don't know what it does
20th Jul 2017, 4:08 PM
Koketso Dithipe
Koketso Dithipe - avatar
+ 7
the link is quite clear. Thank you very much😊
20th Jul 2017, 4:16 PM
Koketso Dithipe
Koketso Dithipe - avatar
+ 1
<div> Tag should be inside <body> Tag, and should be closed also with </div>. It more useful lately when you use JavaScript or JQuery.
24th Jul 2016, 9:14 PM
Rezza Prayogi
Rezza Prayogi - avatar