Forum Moderators: Robert Charlton & goodroi
I currently use an external css file. With the new theme, I have the option to put all css in the html.
My question is, as I run a true white hat site; should I now use <H*> in the html or should I still use the old pixel font sizes in the external css file for topic titles?
I have read here that using <h*> on site is sometimes considered spammy, but sometimes also useful. I have also read that Google does not read external css files.
My intentions are to use <H*> only to benefit a user; I just want to make sure that I do not hurt myself in the serps.
As long as you can honestly tell yourself that you are not attempting to deceive anyone you can safely use CSS to format your H* elements to your hearts desire. The people who program Google et al appreciate good design I cannot imagine that they would penalize a web site just because the H1 elements are smaller than the H2 elements. For example, I have one template where the H1 element is in a normal paragraph size font, but it is at the top of each page above the banner where it clearly indicates this is the subject of my page. That template has several top rankings.
Google does spider CSS files so it would be unwise to assume that they do not cross-reference files. Even if they are not cross-referencing today it is a safe bet that they will in the future, so be sure not to create a design today that could tank your website tomorrow. For example, setting a margin to place text off the visible page screams penalize me.
Thank you, I understand your comments and I am using H* in a correct manner.
I am having a hard time understanding comments that I read in this forum such as: "I am not doing anything spammy, no H1 or anything like that."
I seem to read that often on this site, why would someone refer to H1 use as being spammy?
There are both good and spammy ways to use almost any code.
Why would anyone stick their tongue against a frozen lamp post? Some people do and say silly things.
Calling H* "spammy" is like saying electrical wiring in a house is "spammy". It's just crazy talk. Naturally you can use anything improperly, like putting 500 words in an H1 tag, but there is nothing at all "spammy" about using H* tags properly.
For example, I have one template where the H1 element is in a normal paragraph size font, but it is at the top of each page above the banner where it clearly indicates this is the subject of my page.
I am not so sure that using an H1 in normal paragraph size is how it was intended to be used. I would have thought that strictly speaking (as per W3C standards) an H1 should really be the largest text on the page.
I would have thought that strictly speaking (as per W3C standards) an H1 should really be the largest text on the page.
I see this issue very differently, BDW. The look of the font is merely an aesthetic consideration. I work with many sites where the H1 element is the same font size as the rest of the text, but it still clearly delineates the page's headline - the topic of the whole document.
A heading element briefly describes the topic of the section it introduces. Heading information may be used by user agents, for example, to construct a table of contents for a document automatically.There are six levels of headings in HTML with H1 as the most important and H6 as the least. Visual browsers usually render more important headings in larger fonts than less important ones.
The global structure of an HTML document [w3.org] - W3C page
The W3C just observes how browsers usually work -- but the defaults for any/all HTML elements are not supposed to be hurdles that we are required to work around. The W3C even created CSS intentionally so that there can be a more complete separation of content and its presentation by any user agent, including the visual browsers.
Increasing search results position [webmasterworld.com]
H tags to structure site map? [webmasterworld.com]
I didn't change any of the text on the page, I just added H tags to the text on the page that defined the page, which was also the same as the title of the page. I added an H2 and an H3 to relevant text, never more than 5 words, and the page dropped like crazy. This was the only change I made.
I removed all the H tags, and the page returned to its previous rankings.
That told me that if I'm going to add CSS to this particular site, I will have to do it in an external manner, and not on page.
I do have other pages on the site that have been CSS for a long time, with the code on the page, and they rank fine. So, I'm not sure what this exercise proved to me, if anything, other than I need to be careful when I do finally update the site.