chharvey / chharvey.github.io

My personal web site.
https://chharvey.github.io/
MIT License
4 stars 1 forks source link

stressed text #27

Closed chharvey closed 9 years ago

chharvey commented 9 years ago

Redefine the text-level semantic elements that stress text. The W3C/WHATWG/MDN are really of no help at this point.

Find exactly one usage for each and stick to it.

element usage
em obviously use as it was intended: emphasis
strong again, use as intended: important
i new definition: use only for alternate voice/mood such as scare quotes & mentions. no longer have to manually wrap phrases with “ and ”
i[lang] (same definition): taxonomical designations and foreign expressions.
b new definition: use only for keywords, key phrases, and technical terms.
mark not sure what do do with this yet. its semantics are clear, but not sure how to style it (different colored highlighters) or what even to use it for.
u new definition: use only for stressing ranges of text in examples (example code, etc.), i.e., to bring attention to the span for the purposes of illustration. however do not style this with underline (confusing with links).