View Single Post
Old 06-08-2020, 01:14 PM   #27
Mister L
Groupie
Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Mister L is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Posts: 179
Karma: 91148
Join Date: Jun 2010
Device: Sony 350
Quote:
Originally Posted by JSWolf View Post
I agree that the correct tags should be used. But if you don't go int the code to have a look, would you know the difference between <p class="chapter"> or <h2 class="chapter">? I wouldn't know the difference. When I clean up eBooks, I do leave the chapter header with the <p that the publisher put in. All I do is fix the class. If I was needing to generate a new ToC, <p would be replaced with <h2. But I don't know of any case (once the ePub is made) where there is any noticeable difference between <p and <h2 with the chapter class.
You might not know the difference as a human reader looking only at the rendered code. However the rendering engine knows the difference, and off the top of my head I can think of 2 situations when this is a problem (and there are probably more), as I mentioned in my previous post:

1. A blind person is reading the book using a text-to-speech app. The app will treat the title as a regular paragraph because as far as it knows, it is a regular paragraph (it only understands semantic html, not css). This will have an effect on the way the text is presented and also navigation through the text.

2. You decide you don't like the way the book looks and turn off the original CSS styles (many reading apps let you do this): in this case, the semantically correct <h2 class="chapter"> will still be presented as titles (html with no css has default styles for h tags), whereas a <p class="chapter"> will just look like a plain paragraph (the same as plain text is displayed in a .txt file).
Mister L is offline   Reply With Quote