brown2005 Posted March 8, 2007 Share Posted March 8, 2007 can some please explain when to use an id='' and when to use a class='' thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/41867-id-or-class/ Share on other sites More sharing options...
ToonMariner Posted March 12, 2007 Share Posted March 12, 2007 a class is used when several elements take on the same attributes. an ID should be used for a unique element. There should never be two elements that share the same id on any one page. Quote Link to comment https://forums.phpfreaks.com/topic/41867-id-or-class/#findComment-205136 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.