Think of a class as a class in school. The class contains many students. Think of id as a unique student in the class.
Use a class when you have many elements that need the same style applied.
Use an id when the element will only be used once on the page. Things like a banner, navigation bar, or footer are commonly only used once per page.
buddylee17
Practically a Master Poster
697 posts since Nov 2007
Reputation Points: 232
Solved Threads: 137
yeah i guess its solved thx to buddy lee
wickedsunny
Junior Poster in Training
97 posts since Oct 2008
Reputation Points: 10
Solved Threads: 5