Created October 27, 2008. Minor updates 2024.
What CSS class names are semantically meaningful?
notranslate
To tell Google Translate not to translate part of your page, use this class. Helping you break the language barrier
robots-nocontent
To tell the Yahoo crawling robot to not crawl content, you could use "robots-nocontent." But of course Yahoo! is not in the search business anymore. How do I mark web page content that is extraneous to the main unique content on the page?
vcard
This class indicates the the content inside adheres to a microformat for a "hCard" - which is:
hCard is a simple, open format for publishing people, companies, organizations on the web, using a 1:1 representation of vCard (RFC2426) properties and values in HTML. hCard is one of several open microformat standards suitable for embedding data in HTML/HTML5, and Atom/RSS/XHTML or other XML.
There are lots of Microformats related class names!
Here are a few:
adraffiliationauthorbdaycategoryclasscontactcountry-namedescriptiondtenddtrevieweddtstarteducationentry-contententry-summaryentry-titleemailexperienceextended-addressfngeohentryhfeedhresumehreviewitemkeylabellatitudelocalitylocationlogolongitudemailernnoteorgorganization-nameorganization-unitpermalinkphotopost-office-boxpostal-codeprofilepublicationspublishedratingregionrevreviewerroleskillsort-stringsoundstreet-addresssummaryteltitletypetzuidupdatedurlvaluevcalendarvcardveventversionxoxo
In 2005 Google studied the web and determined the top 20 most popular class names:
footermenutitlesmalltextcontentheadernavcopyrightbuttonmainsearchmsonormaldatesmalltextbodystyle1topwhitelink