Great - thanks ever so much!
Main Topics
Browse All TopicsI have seen id used quite often, and I know that usually this is to declare a style for a specific element.
However, right now I am using something like
<table id="func_dir266" style="background-color:#c
to help me easily locate the offending element - Firefox will outline the element and show me the breakdown:
html > body > div#wrapper > div#content > table#func_dir266 > tr > td > h3
This way, I know that func_dir.asp is being used and the table on line 266.
I tried name, but that only generated:
html > body > div#wrapper > div#content > table > tr > td > h3
So can I use
<table id="func_dir266" style="background-color:#c
without harm since there is no ID func_dir266 in my style sheet?
Each ID is unique to the <table> and sometimes in a <td>. I do use "real" IDs, like the wrapper and content though.
Or if you are familiar with this add-on in Firefox, is there another attribute that can be used? I really don't remember which add-on it is, I just rely on it pretty heavily from time to time.
Thanks!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: NetExpert-WarszawaPosted on 2009-09-05 at 14:09:46ID: 25267725
You can safely use ids. It increases size of a file without giving anything to viewers and some people will tell it is not OK. However, since you insert it for a reason, I see no problem.
Ids are used not only for CSS, but for scripts too.