HTML and CSS Reference
In-Depth Information
Although support for the execCommand() method is consistent
cross—browser, the implementation of the individual commands
still varies considerably. Following is the markup generated
by following the previous three steps in Chrome and Opera on
the left, IE on the right, and Firefox in the middle.
Chrome and Opera use
b and i , so your styles
apply.
Firefox inserts span
elements with styles.
IE inserts strong and
em elements.
<strong>
Stef
</strong>
<em>
works
</em> as the
<u>
Corporate Sales
Manager
</u>.
<span style="
font-weight: bold;">
Stef
</span>
<span style="
font-style: italic;">
works
</span> as the
<span style="
text-decoration:
underline;">
Corporate Sales
Manager
</span>.
<b>
Stef
</b>
<i>
works
</i> as the
<u>
Corporate Sales
Manager
</u>.
Search WWH ::




Custom Search