Forum Moderators: open

Message Too Old, No Replies

H1 is too big - Is h2 acceptable?

         

colinf

1:29 pm on Mar 17, 2003 (gmt 0)

10+ Year Member



Hi everybody,
having tried a h1 header and finding it obscene (big) for my page i have decided i can live with a h2.

Q: how will google react?

will h2 be accepted as the MAIN header or a sub header, will google look around for a h1, not find it and say:

h2, ok no problem, but i would have given you a couple more points for h1.

colin

Birdman

1:31 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



All you need to do is change the font size with CSS [w3.org]

<h1 style="font-size: 20px;">

colinf

1:48 pm on Mar 17, 2003 (gmt 0)

10+ Year Member



Thanks Birdman,

but isn't the jury still out on using CSS for that, or does'nt Google mind, now and in the future?

colin

Tor

1:51 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Google does not mind now. What the future will bring we can only guess... ;)

Receptional Andy

1:53 pm on Mar 17, 2003 (gmt 0)



>isn't the jury still out on using CSS for that

No jury, not even a trial. If you're worried about google picking up on css resizing of H1 tags, try doing some searches for major queries and looking at how many sites are using CSS hiding to show googlebot one thing and visitors another.

Resizing headings is a legitmate design technique and so it would be counter-productive for Google to attempt to penalise sites based on this.

I have never seen any evidence whatsoever that Google minds you resizing headings, or for that matter that Google even attempts to interpret style at all.

ukgimp

2:05 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use the attributes as you would do if you could apply them to a book. If you have a logical page structure that uses titles and sub titles your book should read well. If you apply that same principle to web pages you should have no problem. The only time you are likely to encounter grief is if you have a massive page title or make your body all H1. If you ever came across book that used the same technique I am pretty confident that you would put the book down with disgust.

>> Resizing headings is a legitmate design technique and so it would be counter-productive for Google to attempt to penalise sites based on this.

Would it ever, they might lose half their index :)

Nick_W

2:15 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well said Andy.

There is nothing even worth talking about with regards to resizing with CSS. It's the way html is supposed to work. Simple as that.

Nick

hetzeld

3:20 pm on Mar 17, 2003 (gmt 0)

10+ Year Member



Colinf,

If you want your H1 to display properly, even in tables, you may use the "display:inline" as well, as in:

<h1 style="font-size: 20px;display:inline;">

This would prevent to add extra space before and after the <h1> tag.

Dan

werty

4:23 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



In another thread someone mentioned doing the css, but making it link externally. Then go into your robots.txt and not allowing google to crawl it the .css

Receptional Andy

4:58 pm on Mar 17, 2003 (gmt 0)



>In another thread someone mentioned doing the css, but making it link externally. Then go into your robots.txt and not allowing google to crawl it the .css

Do you have something in your css files you want to hide?

But seriously, in general why let spiders crawl CSS? It's no use to them because they don't have eyes to see...

If Google were to introduce rules about allowing/not allowing access to css files then we would be looking at a case of the web imitating google rather than google imitating the web ;)

That said, I see this becoming more of an issue as people use CSS to 'cloak' content on their site from SE spiders. Of course, anyone with a non-css browser and a keyboard can fill in a spam report...

Nick_W

5:04 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>anyone with a non-css browser and a keyboard can fill in a spam report...

And anyone dumb enough to cloak with CSS rather than IP/UA delivery deserves to be caught. ;)

Nick

glengara

6:13 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just to give Colin a different viewpoint ;-)
While the "received wisdom" is that it's a legitimate design technique recommended by W3C, a couple of years ago there was a rumour G was "unimpressed" by the use of modified H tags.
Suddenly all those <style> tags disappeared into external files, and doubtless when the rumour re-surfaces, those files will get blocked.

tbear

6:37 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I can't see that changing the sizing but keeping the heirarchy intact is doing something devious ;)
I prefer not to use the default giant sizes but keep sizing (etc) in order and under control using the H tags.
As to off page.... It seems (and often is) much faster to load in a browser and leads to less coding on each page. CSS, of course, makes site wide layout and design changes much easier.
Now, all I have to do is go over Nick's Crash course..... and remember everything
hetzeld> That bit of code looks very useful from where I'm sitting :)

Marcia

6:49 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As a side note, Alta Vista was reported seen grabbing some external CSS files a couple years ago.

hetzeld

6:50 pm on Mar 17, 2003 (gmt 0)

10+ Year Member



Tbear,

It is indeed! :)

I'm using it to be able to use <H1> tags in table without the +/- 20 pixels whitespace lost above and below those tags.
It is still a title and displays with an appropriate size for a title, but I bave much better control on positionning.
The pagetitle above the blue bar on the site in my profile is <H1> , sized 20px and using the "display:online;" - looks neat IMHO ;)

Dan

Birdman

7:02 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>display:inline

>>I'm using it to be able to use <H1> tags in table without the +/- 20 >>pixels whitespace lost above and below those tags.

Also keep in mind that you can control the margin above and below the header with margin: 5px 0px 5px 0px;.

I think the most useful reason for using display: inline; on a header is make it appear to be part of the first paragraph.

hutcheson

7:04 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Changing the spacing, font, color, etc., of an H1 tag to fit the document, while still retaining the hierarchy of emphasis (h1..h6, p, blockquote) is NEVER going to be a problem with Google. This is disirregardless of whether it's done with old-fashioned tags, inline "style=", inline classes, or external style sheets.

It's also obvious that you can get "hidden H1 text" past any conceivable spider. (And that doing so _deserves_ the eternal Google ban on that and all associated sites.)

The only problem you COULD run into, is a color change that makes the heading appear to be the same color as the background. This can be fixed easily enough--it's already a basic design principle: always declare textcolor and background color in exactly all the same places; and if there is a background image, declare the background color to be something close to the dominant color in the image.

The combination of those two rules will enable your _color_ layout to be transparent to programs with any degree of CSS support, whether spiders or browsers.

colinf

9:28 pm on Mar 17, 2003 (gmt 0)

10+ Year Member



<h1 style="font-size: 20px;display:inline;">

now i like that!

tbear

10:57 pm on Mar 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



>margin: 5px 0px 5px 0px;.
That I use......
><h1 style="font-size: 20px;display:inline;">
now i like that!

Yeah, me too!
Headings are used in many ways, I have my own way of using them. I tend to use a lot of things that are there to be used (title tags, alt tags, etc.) for design/focusing reasons, headings is just one of them. So long as they make sense, there should be no problems.

GrinninGordon

1:09 am on Mar 18, 2003 (gmt 0)



<h1 style="font-size: 20px;display:inline;">

I think this is one more reason for using directory results rather then se results for generic (Spammed) terms.

Personally, if I were Google, I would penalize sites that put a deny for the css file in their robots.txt file, and I would penalise for the use of ANY keywords in the CSS file (as this is not natural).

Small Website Guy

2:11 am on Mar 18, 2003 (gmt 0)

10+ Year Member



If Google is going to give a bonus to people who use the h1 tag unmodified, then Google is giving a bonus to those with incredibly ugly sites, and I'm sure that's not what Google would want to do.

Giving any weight at all to the h1 tag makes no sense at all. A better algorithm would compare the font size of of text to the average font size of the page, and use that to give extra importance to headings.

Sites with the CSS file hidden in to robots should definitely be penalized... otherwise God only knows what the site really looks like.

Receptional Andy

12:07 pm on Mar 18, 2003 (gmt 0)



>otherwise God only knows what the site really looks like.

You can always go and have a look ;)

If you use robots.txt to restrict bandwidth used up by spiders, you WILL ban CSS files as there is no reason for spiders to index them.

So penalising people for banning css files in robots.txt would, again, be counter-productive. Although that said, I think it might be something google would consider, depending on the scale of the problem of people abusing this.

Nick_W

12:12 pm on Mar 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Know what?

I don't buy any of this 'checking' malarky. Not one little bit of it.

It's simply too hard to seperate good from bad without a handcheck. It'll be the same as cloaking in my opiion. There'll be an 'exceptable amount' of folks who get away with display: none; and positioning off the page etc but it will take a handcheck to ban them.

Or, at very most. Certain things will throw up a red flag. Probably in conjunction with other factors. Again, a red flag for a handcheck not an auto penalization.

Nick

mipapage

12:25 pm on Mar 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm with Nick. CSS is just too useful, and for people who use validated markup for structure and validated CSS for style resulting in accessible and small-file-size sites, things like "display: none;" and restyling the header tags are useful for things other than hidden text and spamming.

I doubt that there will be penalties for using CSS. Maybe a type of validator similar to Safesurf, where you can go and get a metatag after you declare something about your stylesheet?