| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Proper IDs

Page history last edited by Jeffrey Zeldman 15 years, 4 months ago

Multiple use of ID on a page

If You've got more than one application of an ID on the page, be aware: IDs are only intended to be used just the once per page. For multiple custom selectors on a page, use a class if a descendent selector won't do the trick. Keeping your IDs to one per page is considered a best practice and in line with how CSS is supposed to work. Most, if not all, current browsers will still render your pages correctly, but you never know what going to happen in the future and why take the chance?

 

 

Comments (0)

You don't have permission to comment on this page.