Quote:
Originally Posted by Vroni
Filler to have than 5 Words
|
No, there's never a valid reason to do <small> abominations to try to emulate smallcaps. The cons heavily outweigh any "pros".
Always use:
Code:
<span class="smallcaps">The End</span>
span.smallcaps {
font-variant: small-caps;
}
Hacking it together with <small>:
- Breaks spellchecking
- Breaks Text-to-Speech
- Loses proper capitalization info
- [...]
Here's one of the latest books I had to cleanup:
Code:
<h3>J. P<small>ENALTIES ON</small> M<small>ARKET</small> F<small>ORMS</small></h3>
Text-to-Speech: "J. P" + "enalties on" + "M" + "arket F" + "orms".
Compare to:
Code:
<h3><span class="smallcaps">J. Penalties on Market Forms</span></h3>
It's also one of the most common places I see code errors/typos introduced.
And if you want "fun" spaghetti. Things get way more interesting when you intend to display actual lowercase words as <small>caps:
Spoiler:
Code:
<h3>A. T<small>HE</small> G<small>ENERAL</small> S<small>ALES</small> T<small>AX AND THE</small> L<small>AWS OF</small> I<small>NCIDENCE</small></h3>
Compared to:
Code:
<h3><span class="smallcaps">A. The General Sales Tax and the Laws of Incidence</span></h3>
Throw in a few spaces, hyphens, numbers, and punctuation, and now we have a real ballgame!
Here's a few others straight from the book:
Spoiler:
Code:
<h3>D. A N<small>OTE ON</small> S<small>OME</small> C<small>RITICISMS OF</small> 100-P<small>ERCENT</small> R<small>ESERVE</small></h3>
Code:
<p class="center">F<small>IGURE</small> 57. E<small>FFECT OF</small> C<small>HANGES IN THE</small> R<small>ATE OF</small> I<small>NTEREST ON THE</small> D<small>ISCOUNTED</small> M<small>ARGINAL</small> V<small>ALUE</small> P<small>RODUCT AS</small> S<small>UPPLY OF THE</small> F<small>ACTOR</small> V<small>ARIES</small></p>
Imagine Text-to-Speech reading that one!