What's the difference between ID's and classes?

Vezel

Member
Nov 20, 2012
92
4
Wow, im starting to get active on devbest :3, well if you saw my last thread im trying to learn how to code, and now im trying to learn the difference between ID's and classes.. It seems to be the same thing, and when should i use what? Thanks :)
 

GarettM

Posting Freak
Aug 5, 2010
833
136
When it comes to web design there are two main style sheet selectors

ID's and Classes

What i have learned is that IDS ( # ) are used one in every tag, but classes ( . ) can be used many times in one tag... example?
Code:
<div id="container" class="Friday Sunshine Green">

 

Users who are viewing this thread

Top