Forum Moderators: phranque
h1 { font-size:18px; font-family: verdana,arial,helvetica,sans-serif; font-weight:bold; color: #000000 };
h2 { font-size:12px; font-family: verdana,arial,helvetica,sans-serif; font-weight:normal; color: #000000 };
Both of these end with bracket, semi-colon, reversed from the ;} that I would expect to see.
Now another thing, let's say that I would like to add a bold code to some of the headings, but not everyone , so I would want to do this righ to the specific page, such as lamps.html
If I had a header that said "Buy Fabulous Lamps Here"
and I wanted to make that bold
would I write the following:
<h1><b>Buy Fabulous Lamps Here</h1></b>
Thanks
<h> tags by default are bold. There is no need to wrap an <h> tag in <b> tags. Also, the tags above are nested incorrectly. It should be...
<h1><b>Heading Here</b></h1>
In your above example,
<h2> font-weight is being overridden with the font-weight:normal. There is no need for the font-weight:bold in the <h1>.
Secondly: pageoneresults is correct about the HTML. But it's better still to control things like bold text through CSS.
h1 { font-weight: bold; }
A really good investment is Eric Meyer's Cascading Style Sheets Programmer's Reference. When I first started to work with CSS, someone told me this was the only book I'd need. That's a bit over the top, but if I was only allowed one book on CSS this would be it. Keep it by your PC ;)