Simply style headings within HTML5 sections

CSS 4 October 2011 | 0 Comments

Many of us know that HTML5 sections allow the programmer to restart headings at H1 and still keep proper HTML outline format. What I did not realize is how problematic this can become to style in an active and growing site.

Covering all of your bases develops quite the headache.

Stubbornella develops a brilliant heading class naming convention to handle this new development in front end writing. Typically, I disapprove of classitis in headings. However, with this growth in HTML regarding sections and headings, my opinion must evolve in like manner.

For future reference for myself, in case Stubbornella disappears before I do, the class suggestions are as follows:

.tera {}
.giga {}
.mega {}
.kilo {}
.hecto {}
.deca {}
.deci {}
.centi {}
.milli {}
.micro {}
.nano {}
.pico {}

Which is implemented as:

Me on the web…

My Twitter Feed

  • Mmmm, cornflakes.
  • Something inane…

More stuff on the web


Please visit Stubbornella and read the whole article. It developed my thinking to a more complete view.

Be Sociable, Share!

Tagged in , ,

Leave a Reply