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 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. Link to comment https://forums.phpfreaks.com/topic/41867-id-or-class/#findComment-205136 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.