HTML Class and ID Names

Test Weight: normal
To abstract design from the structure and the content, HTML should contain classes. Classes are invisible to web site users, and allow to classify elements, paragraphs, areas, etc.

The website designer can select and re-format classes with a stylesheet. Classes are only necessary if they differentiate elements, paragraphs, areas, etc. A common mistake is for instance the classification of all elements of one type, which does not add any value but makes the HTML and CSS code unnecessarily long, complex and difficult to understand. Such cases are also referred to as "Classitis", see also .

Another typical error is the wrong naming of the classes.

An article detailing these problems can be found on the - Papers.
An additional tool is available for this test, which allows to highlight any warning, hints and tips in the source text of the website. Click here for the tool:

Test Results

  • Total 100% 100000
  • Not tested 0% 0
  • Warning 0% 0
  • Suggestion 12.3% 12356
  • Hint 0% 0
  • Passed 87.6% 87644
  • Total amount of tests run.
  • This test was not carried out for this website.
  • The category Warning is not being used for this test.
  • One or more wrong namings of a class or ID have been found on tested website.
  • The category Hint is not being used for this test.
  • The tested website complies with the requirements.

Report False Result for this Test

To prevent abuse and spam, you must register to notify wrong results.

Register now for free

User Comments

3/22/2018 3:25:08 AM Administrator
Comments welcome
We welcome any kind of questions, comments and criticism with regards to this test, such as:
  • Good & bad aspects
  • Reporting errors and spelling issues
  • Reporting dead links
  • Additions
  • Comments on the weighting of the test (see at the top)
  • Reporting wrong or additional sources and further information (links)
  • General questions about this test
Should you not wish to have your comments potentially published, please send them to
8/23/2009 12:25:27 PM chewi
Defekter Link auf dieser Seite Wenn man auf den Link "/Web/de/Papers_Links/Bezeichnung_von_IDs_und_Klassen.htm " auf dieser Seite klickt, kommt nicht dorthin, sondern wird auf "" verwiesen. Ich nehme nicht an, dass das so gewollt ist. MfG Kalle

Write a comment/Ask a question

In order to avoid abuse and spam, you need to be a registered user to leave comments.

Register now for free

Qualidator News & Hints

Qualidator SiteAnalyzer has achieved "Windows 8 App Certification" (Feb 2014)
HTML5 Validator for SiteAnalyzer
When upgrading to HTML 5 SiteAnalyzer helps you validating all pages of your website for issues.
More infos and download
HTTP Compression Test

HTTP Compression of HTML, JavaScript and CSS can now be tested directly in SiteAnalyzer. Different User Agents are available in order to test the proper behavior.
Qualidator for SmartPhones has been optimized for the iPhone and other SmartPhones in the last few month. Check it out. Feedback welcome.
Do you already know the Qualidator® SiteAnalyzer?
The Qualidator® SiteAnalyzer is a Windows application, developed to allow a one step, page by page, automated validation of an entire web project (XHTML & CSS), and to review the quality by carrying out over 30 additional tests.

Follow us on Twitter

Recommendation: Uptime Monitoring

Recommendation: HTML2PDF Rendering Service

Key Benefits
  • Renders URLs of (dynamic)(x)html pages including CSS to PDF on the fly
  • html2pdf is a Service NOT a class library or EXE
  • Very easy to use

Tell me more about the HTML2PDF Rendering Service


  • SwissMadeSoftware
  • ZTPrentner IT
Copyright © GmbH
CMS Login schliessen

CMS Login

Please sign in to edit content
loading and processing data Verarbeite Anforderung ...