The "Style" of a SPAN applies until /SPAN.
But this does not apply to some attributes (e.g., background-color).
Which attributes don't work?
- Is the quality I am looking for called "deprecate"?
- Is it just background-color?
- Is there a substitute for "background-color" that does work?
Thank you!
PS - I found a complete (?) Index of Attributes (it does not have "background-color" - although it has "bgcolor" (which "deprecates")).
<p>GDH2 no style</p>
<p style="background-color:red; color:white;
font-size:140%; font-family:verdana;
text-align:center">
GDH2 p style = bg color, font color, verdana, centered</p>
</span>
<span style="color:red; ">
<p>GDH2 - inside span font color red = WORKS</p>
</span>
<span style="font-size:140%; ">
<p>GDH2 - inside span font size 140% = WORKS</p>
</span>
<span style="font-family:verdana; ">
<p>GDH2 - inside span Verdana = WORKS</p>
</span>
<span style="text-align:center; ">
<p>GDH2 - inside span Verdana = WORKS</p>
</span>
<span style="background-color:blue; ">
<p>GDH2 - inside span of bg color blue = <b>FAIL</b></p>
`