Thread: Regex examples
View Single Post
Old 03-01-2023, 12:15 PM   #739
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 293
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
Quote:
Originally Posted by CubGeek View Post
Would nested <i> and <em> tags like this this be a case for the <strong> tag, instead? That way the sighted readers still get the emphasis (via boldface text) and accessibility readers can convey the audio emphasis?
You are conflating semantics and style. If the meaning of the tag is that its contents are emphasized, then you use <em></em>.

What you can do is add a style rule in your CSS, like:

Code:
i em {
    font-style: normal;
}
This preserves the semantic meaning of the tags while allowing you to control the presentation/style.
isarl is offline   Reply With Quote