![]() |
<i>, <em> or <span> for italics ?
I often see ebooks with all three of the mentioned mode to italicize text in ebooks.
Is there no standard way to do this or can we use any of these modes ? |
Have a look at the different replies to this StackOverflow post.
|
Quote:
|
Quote:
Your dismissal as rubbish is rubbish. |
I dare say there are more things in heaven and Earth, Jon, than are dreamt of in your philosophy...
...or, in other words.... You don't know what you don't know.... ...or, in even more other words... nvm....I think it's been said... ;) I, personally use <strong>/<em>, with a defining css, to be more semantically correct. |
IMHO, if you are designer don't bother. If you are editor, know your craft.
|
Quote:
|
delete post
|
But you can change the definition of <i> and <b>.
Code:
i { |
Can we broaden the question and ask, what about p instead of h?, or my favorite, div instead of p? And I've seen these in recently released books. For too many people who are formatting books the only thing that matters is if it looks good in an ereader.
|
Quote:
I do not like <div> when <p> should be used. I do not like it when extra useless <div> is used when all that needs to be done is fix the chapter header class. Why do we need a <div> to define the top margin of a chapter when the net like is a <p>? The rule is to keep it simple and I've seen way too many eBooks that do not keep it simple. Remove all unused classes and hundreds of classes are removed. I agree that an <h2> should be used for chapter headers, but I'm not all that bothered enough to swap the <p>. Another thing I dislike is <span> for bold or italic. But then, I like simple. It's not hard to make an eBook look good and have good code. |
Quote:
Ditto muddling paragraphs with divs. Hitch |
Quote:
There have to be people in the world that LIKE pushing a wet noodle up a hill, instead of learning to do it the right way.... otherwise we wouldn't have people to laugh at! |
Quote:
|
h element is useless.
It was intended for manuals, which use hierarchical headers, like 0.1 Introduction Books, even non-fiction, do not use hierarchical headers; headers in books are complex structures which span several paragraphs. p is the only logical choice. Also, div is used instead of p to fix the extra space between paragraphs. |
| All times are GMT -4. The time now is 09:19 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.