+ 1

What are class and div used for ?

24th Dec 2017, 7:33 PM
Cedrick
Cedrick - avatar
3 Answers
+ 2
HTML -Ā DivĀ Element(s) The <div> tag is nothing more than a container unit that encapsulates other page elements and divides the HTML document into sections. Web developers use <div> elements to group together HTML elements and apply CSS styles to many elements at once.
24th Dec 2017, 7:58 PM
Android Boi
Android Boi - avatar
+ 2
class: TheĀ class selectorĀ is used to specify a style for a group of elements. Unlike theĀ id selector, theĀ class selectorĀ is most often used on several elements. This allows you toĀ setĀ a particular style for many HTML elements with the same class.
24th Dec 2017, 7:59 PM
Android Boi
Android Boi - avatar
+ 1
Thanks
24th Dec 2017, 8:04 PM
Cedrick
Cedrick - avatar