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


gouri - 4:33 pm on Jul 17, 2012 (gmt 0)


@lucy24,

I looked at some of the stylesheet values, and I saw some for the page header and the h1. I will try to use them because as you mention, it does lead to more efficient coding, but if I have to use other values, then I will use inline CSS.

For paragraphs, I think that I will have to use inline CSS so I wanted to ask what would be the best way to do this.

I think that I could:

(1) use span style, include <br /> tags between paragraphs, and include </span> at the end of the last paragraph. If p style is not used to define a paragraph as it wouldn't be with this method, can the <br /> tags help the search engines to see that there are several paragraphs on a page.

(2) use p style for each paragraph. If I do this, I think that I would need a p style at the beginning of each paragraph and a </p> at the end of each one and this could lead to more code than the first option. In spite of the extra coding, would this be the best way to go.

(3) I don't think that I have any predefined divs. I would have to use inline CSS to create them (if I can't create divs with inline CSS, please tell me). Would I be able to include several paragraphs in a div and would this be better than using span style or p style?

I have also heard that in html the font tag and the paragraph tag affect the load time of a page. Does the p style tag in CSS also have an affect on the load time of a page similar to the paragraph tag in html?

I appreciate your advice.


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