Frontend Development

HELP! DIFFERENCE BETWEEN DIV CLASS AND DIV ID

Submitted by Avocat, , Thread ID: 61633

Thread Closed

RE: HELP! DIFFERENCE BETWEEN DIV CLASS AND DIV ID

LandRevenant
Coder
Prime
Level:
0
Reputation:
21
Posts:
146
Likes:
27
Credits:
2.93K
07-12-2017, 12:30 AM
#5
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. The class selector uses the HTML class attribute, and is defined with a "." id is used when we have to apply CSS property to one attribute only

Users browsing this thread: 1 Guest(s)