+ 1
What are class and div used for ?
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.
+ 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.
+ 1
Thanks