Page is a not externally linkable
- Code, Content, and Presentation
-- HTML
---- Is It Okay to Use CSS and HTML in the Same Statement?


gouri - 2:35 pm on Jul 16, 2012 (gmt 0)


@lucy24,

In your boilerplate CSS, always include three things for all headers: text-align, font-weight and font-style. All three will otherwise be handled by browser defaults-- which might change next year as fashions change, or if one browser decides to be different.


I was doing some research and read that the text found in an H1 tag is generally bold so I wanted to ask if I would need to mention font-weight, and also, if I want the font-style to be normal, do I need to mention font-style?

In the body text, if using the p style, do I have to mention font-weight and font-style because if you have many paragraphs, that could add a lot to the code. I think that you would have to mention these elements each time that you start a new paragraph, along with the other elements such as font-family and font-size.

Would it be better to not mention font-weight and font-style for each paragraph and if I need to bold (font-weight) or use italics (font-style) for some words within a paragraph, I can use span style? I was thinking that this could help me to use less code.

Thanks.


Thread source:: http://www.webmasterworld.com/html/4475562.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com