In posting to a blog, I would like to bold every list item (<li>).
Because I cannot influence the <head>...</head> section of the HTML
document, I can neither add a <style>...</style> block, nor reference an
external style sheet. Is there a way to accomplish this using the "style"
attribute and/or using div or span tags?
I want to do something like this:
<!-- desired application of css !-->
<div style="li {font-weight: bold;}">
...
<p>something</p>
<ul>
<li>foo</li>
<li>bar</li>
</ul>
</div>
I know that the following works, but it's useless, since if I were to do
it this way, I might as well use the <b> tag, and I get none of the
advantages of style sheets (namely, the ability to change the relevant
style in one place and have everything suddenly change appropriately):
<!-- useless application of css !-->
<ul>
<li style="font-weight: bold;">foo</li>
<li style="font-weight: bold;">bar</li>
</ul>
<!-- equivalent html - i thought we'd moved beyond this !-->
<ul>
<li><b>foo</b></li>
<li><b>bar</b></li>
</ul>
Also, what is the pertinent jargon in which this question is best and
most succinctly expressed?
thanks,
Tobin
--
Department of Physics, University of Rochester, Rochester NY 14627-0171
http://web.pas.rochester.edu/~tobin/