Classes vs ID's?

I’m a beginner when it comes to HTML and CSS - been doing it for about a week now and recently came to classes and ID’s and it’s slightly confused me. When it refers to giving several elements styling using classes and only one element for an ID, why is this? Why do we use ID and classes, and not just classes?


You can find your answer on this LINK .

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.