Quote:
Originally Posted by Mister L
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).
|
1. What text-to-speech program reads chapter headers with an <h? differently then the same chapter header with a <p?
2. Why would you want to turn off the CSS? That's not a solution for anything. If I turned off or deleted the CSS, I get a basically unreadable eBook.