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

What is <div> tag?

9th Oct 2016, 1:50 AM
JOHN PAUL Pavillon
JOHN PAUL Pavillon - avatar
2 Answers
+ 2
They are used as containers for different parts of your page. Give them classes, and style those classes with CSS and you can have different styles for particular classes e.g. class "red" could have red text, or class "center" could be aligned to the center of the page.
9th Oct 2016, 2:10 AM
Cohen Creber
Cohen Creber - avatar
0
tnx
9th Oct 2016, 3:49 AM
JOHN PAUL Pavillon
JOHN PAUL Pavillon - avatar