View Single Post
Old 05-17-2021, 09:26 AM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by roger64 View Post
2. When possible, use special characters such as SUPERSCRIPT TWO (\00b2)
No. Never use these.

See my responses in the 2016 thread: "font with full super/under script support?"

Quote:
Originally Posted by roger64 View Post
1. Trust the user agent? (with a "naked" sup tag)
Depends. What's your use case?

If it's Footnotes, then it's better to use the basic bracketed form [##] instead:

Code:
<p>This is an example.<a href="#fn1" id="ft1">[1]</a></p>

[...]

<p class="footnote"><a href="#ft1" id="fn1">[1]</a> This is the footnote.</p>
Easier to click, easier to read.

If the <sup> is for something else, then it's probably best to use it, because you still want your HTML markup to actually be meaningful.

And remember: Users can override CSS (like Moon+) + read in different ways (devices/sites without your book's CSS).

See some of that discussion in "Colored Text, EPUB, Android Dark Mode".

Last edited by Tex2002ans; 05-17-2021 at 10:26 AM.
Tex2002ans is offline   Reply With Quote