View Single Post
Old 10-03-2020, 06:18 AM   #9
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
There really aren't any differences between <b>/<strong> and <i>/<em>. By default they are the same. But you can change all of them in CSS. For example, you can style <i> to be bold and <b> to be italic.

In that article, it states...


So when you are reading your eBook and you see text that is coded like <b>Some bold test.</b> and <strong>Some strong text.</strong>, they will both appear bold. There is 0 difference. Unless you've looked at the code, you won't know if the code is <b>, <strong>, or <span class="bold">. So this saying that <strong> emphasizes the text is rubbish. Your TTS is not going to differentiate. It's not going to say bold text any different then it would strong text. This is exactly the same for <i>, <em>, and <span class="italic">.
After all this time, you really don't get it, do you? But, yet you would scream at someone who suggested using a <p class="chapterHeading"> where the class "chapterHeading" was the same style as a h1 or h2 tag. As you keep saying, why does it matter if they look the same on the screen?

It is about semantics. It is about letting applications such as a TTS handle them differently if it makes sense. And honestly, if the TTS isn't indicating a difference, then it is probably because far to many people who code the books have listened to you. There are semantics involved. We should be expressing them where we can. Then the software can start handling things accordingly.

@Rand Brittain: Use whichever you feel comfortable with. I personally don't like seeing <span class="bold">, but if it was <span class="telepathicSpeach"> and the class telepathicSpeach only set the style to bold text, it would make sense to me (though most people seem to use italics for that). That makes it easy to go back and restyle it later. And if <strong> makes more sense to you than <b> when you are reading the code, then do it that way. Or if <b> feels better to you, use it.
davidfor is offline   Reply With Quote