Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9170519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:02:03+00:00 2026-06-17T16:02:03+00:00

How can I identify css classes or ids that are referenced in code but

  • 0

How can I identify css classes or ids that are referenced in code but missing in the css file? Is there any feature in firebug that i can use?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:02:05+00:00Added an answer on June 17, 2026 at 4:02 pm

    Firebug does not do this, nor any tool I can think of, because it is not a common or high-payback task.

    However, it is a common task to find unused CSS rules, so that they can be trimmed. You can get a performance gain by trimming common CSS files. But removing ID’s and classes from HTML pages does not help as much, and is more likely to break something (see below).

    A good/common Firefox add-on for finding unused CSS rules, is Dust-Me Selectors. If you really want a tool to find ID’s and classes that don’t have CSS rules, you could probably take that add-on’s source code as a good starting point for making your own Firefox extension.


    Removing ID’s and classes, just because they don’t have a CSS rule is not a good idea and could break things.
    ID’s and classes can be in a page for a variety of reasons, not just as convenient handles for CSS.

    Here are some reasons why an ID or class might be in a page:

    1. To identify content to javascript, or mark targets for changing content. This is a must for all but the simplest dynamic pages.
    2. Likewise, Id’s and classes are used by plugins, extensions, spiders, RSS tools, etc.
    3. As state or status indicators. EG: <p class="comment highest-rated">...
    4. As easy substitutes for in-page anchors. These allow precisely-targeted hyperlinks without adding elements.   Example link.
    5. As part of good Semantic Markup, which is a best-practice that helps humans and our scripts understand, use, and maintain pages.
    6. To help with targeting CSS.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone please identify is there any possible memory leaks in following code. I
Is there any JS/CSS/jQuery magic I can work to identify whether the last visible
Is there any way by using JDT ASTParser, by which we can identify if
Is there any attribute which can Identify a particular cell location in HTML table?
How do I identify in my CSS file classes of an id. So in
How I can identify what svn branch/tag points my code? I have project that
I wanna know that how we can identify whether a page is redirecting to
Is there a mechanism where I can identify a string in an email, say
I'm trying to design an application that can identify COM objects and their properties
How can I identify the datas that have anything else than a number in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.