How do you declare two class in a div element? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

How do you declare two class in a div element?

10th Dec 2017, 8:07 AM
Mushaheed Kotwal
Mushaheed Kotwal - avatar
2 Answers
+ 8
To declare two classes to a div use it like this <div class="one two"></div> Give a space between them.
10th Dec 2017, 8:16 AM
Akash Pal
Akash Pal - avatar
+ 5
Thanks A lot
27th Dec 2017, 2:27 PM
Mushaheed Kotwal
Mushaheed Kotwal - avatar