Vezel Member Nov 20, 2012 92 4 Feb 28, 2013 #1 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
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
G GarettM Posting Freak Aug 5, 2010 833 136 Mar 5, 2013 #2 When it comes to web design there are two main style sheet selectors ID's and Classes Click to expand... 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"> You must be registered for see links Upvote 0 Downvote
When it comes to web design there are two main style sheet selectors ID's and Classes Click to expand... 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"> You must be registered for see links
concerto49 New Member Jan 24, 2013 19 2 Mar 11, 2013 #3 ID is unique. Classes are shared. Upvote 0 Downvote
G GarettM Posting Freak Aug 5, 2010 833 136 Mar 12, 2013 #4 concerto49 said: ID is unique. Classes are shared. Click to expand... Remember though The "#" Selector is used for ID's and ' . ' are used for classes! ;3 .. That was way simpler lolz Upvote 0 Downvote
concerto49 said: ID is unique. Classes are shared. Click to expand... Remember though The "#" Selector is used for ID's and ' . ' are used for classes! ;3 .. That was way simpler lolz
Baevus the names ethan Nov 4, 2012 565 47 Mar 15, 2013 #5 Classes are more unique and use. So what Garett said. Upvote 0 Downvote