Quote:
Originally Posted by Rand Brittain
Is there a way to replace every instance of that particular <span> tag in an ePub, including the closing tag with a <strong> tag, other than doing it all manually?
|
As a few other users have pointed out, DiapDealer's two plugins are perfect for this.
For Calibre, you could use his
Diap's Editing Toolbag.
For Sigil, you could use his
TagMechanic.
I wrote some instructions with pictures just a few months ago in:
"How do I change italic <i> shortcut to use <em> instead?"
In order to go from <span class="bold"> -> <b>, you have to use slightly different settings:
Action Type: Modify
Tag name: span
Having the attribute: class
Whose value is (no quotes): bold
Change tag to: b
Quote:
Originally Posted by hobnail
So now I'm confused about the difference between the strong and em tags. 
|
For all the technical details on <i> vs. <em>, <b> vs. <strong>, and <span class="italics"> vs. <i>/<em>, see the famous thread from earlier this year:
"<i>, <em> or <span> for italics?"
<em> = emphasis, like:
Code:
"Don't you know <em>you're</em> supposed to walk the dog today?"
<strong> is meant for "important information", like:
Code:
<strong>WARNING!</strong> Minefield ahead!
Also see MDN's article on it, where they also explain the differences between:
https://developer.mozilla.org/en-US/...Element/strong