Forum Moderators: not2easy
<p>This is a sample.</p>
<p>T<span style="color:#f00;">h</span><span style="color:#f00;">i</span>s <span style="color:#f00;">i</span>s <span style="color:#f00;">a</span> s<span style="color:#f00;">a</span>mpl<span style="color:#f00;">e</span>.</p>
<p>T<span style="color:#f00;">hi</span>s <span style="color:#f00;">i</span>s <span style="color:#f00;">a</span> s<span style="color:#f00;">a</span>mpl<span style="color:#f00;">e</span>.</p>
Is it possible to reduce that code by using an element we don't see often
combined with embedded rather than inline style?
Is it possible to reduce that code by using an element we don't see often, combined with embedded rather than inline style?
Sure, though it's not semantic. ..Even though you may use an element that we don't see often, there's still the risk of running into oneAgreed - but that's why the questions about whether this is to be used in a controlled environment, the types of sites that might be accessed and competence level of end-users. Also, the selector could be made more specific to reduce the chances of conflict even more (hence using !important as a bare minimum to start).
and
But a named span is safer.
tt {
color: #c00;
}