W3C home > Mailing lists > Public > www-style@w3.org > January 2015

CSS Title Capitalization

From: Simon Ferndriger <ferndriger.business@gmail.com>
Date: Thu, 18 Dec 2014 16:51:51 +0000
Message-ID: <CAHSm5EP-wzzg2o+d3+tHP39uc-BrXPQrvutkks46+V0TMebcyg@mail.gmail.com> (sfid-20141218_165157_254372_2480E62C)
To: www-style@w3.org
Dear Reader


It would be great to have a CSS statement to capitalize not only every
word, but whole titles.
As - for example - you can test out here http://titlecapitalization.com

The main difference is, that for example "a" does not get capitalized in
the title "This Is a Great Title".

The complete rules for title capitalization are:

   1. Capitalize the first and the last word.
   2. Capitalize nouns, pronouns, adjectives, verbs, adverbs, and
   subordinate conjunctions.
   3. Lowercase articles (a, an, the), coordinating conjunctions
   <http://grammar.yourdictionary.com/parts-of-speech/conjunctions/conjunctions.html>,
   and prepositions
   <http://en.wikipedia.org/wiki/List_of_English_prepositions>.
   4. Lowercase the "to" in an infinitive (I want to play guitar).

I could imagine naming it as follows:

text-transform: capitalize*-title*


Regards
Simon
Received on Thursday, 22 January 2015 14:01:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:27 UTC