why doesn't this style html work
In the below fol开发者_JAVA百科lowing HTML the <b>
is not working for making the "6" bold. any ideas why?
<h2 style="margin:1px;padding:0;color:#333333;font-family:verdana;font-size:85%"> I am <b> 6 </b> years old today </h2>
The correct bold tag is <strong>
not <b>
. But h2 are bold on most browsers by default, which means you should make your h2 non bold first.
I guess that the whole string is already bold as it is h2
. Try to change it to italic and see if it works. If so try copy the string to something like OOo or MS Word and check if it is already bold.
If it is bold so make h2 not bold by adding font-weight:normal
to h2 style.
As an addendum for styling the header tags. See the official documentation with example here:
H2 Tags and Styling
精彩评论