Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.


HTML Class vs Id

Tags: None
antony Offline referral

Posts: 478
Joined: Jul 2013
Reputation: 5

Senior Member
Could you explain how to use CLASS and ID tag in HTML?
invisibe_dude Offline referral

Posts: 820
Joined: May 2013
Reputation: 24

Posting Freak
ID tag is used to specify a style for a single, unique element.
CLASS tag is used to specify a style for a group of elements.
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

Posting Freak
ID is unique, Class is not unique.
ID will have extra browser abilities, Class will not
Elements can have both
Make sure you understand why to use one over the other.

There is a TON more about the differences here and you're best bet is to actually research more on you own and ask more indepth questions then.
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.
maya Offline referral

Posts: 1,058
Joined: May 2013
Reputation: 34

Posting Freak
Here is the CSS difference between div id VS. div class

This is the HTML code

<div class="CSS-CLASS"> and <div id="CSS-ID">

This is the CSS code

.CSS-CLASS { color: blue }
#CSS-ID { color: red }

User(s) browsing this thread: 1 Guest(s)