Forum Moderators: not2easy

Message Too Old, No Replies

help with H1 issue

not sure what to be looking for on this one

         

VegasRook

5:11 am on Feb 14, 2005 (gmt 0)

10+ Year Member



Hi guys,

I apologize for not search much first but I am not sure what exaclty I am looking for.

I am trying to alter the properties of my H1 tag so I can use it in a sentence but have it look ok (IE for optimization).

Example: <p>This site sells <h1>blue widgets</h1> all day long.</p>

The CSS I have is:

h1 {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 9px;
}

However, what happens is the H1 acts like a line break and I get:

This site sells
blue widgets
all day long.

What can I do to correct this, if anything?

Thanks!

VegasRook

5:19 am on Feb 14, 2005 (gmt 0)

10+ Year Member



nevermind.

I figured out the property (inline) and found it in the faq.

Sucks when I don't know what I am looking for.

Thanks WW!

Soave

10:21 pm on Feb 14, 2005 (gmt 0)

10+ Year Member



FYI

You will want to be carful when using that technique. Alot of search engines will consider that spamming and they may punish if you use that too much.

SuzyUK

11:05 pm on Feb 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Soave..
counter point, As far as I'm aware there really is/has been no proof whatsoever that SE's will ban/punish you for styling <heading> elements whichever way you like!

CSS files have not been proved to be parsed, so as far as I know it's just disinformation or speculation.. but if you've proof then by all means share it..

thanks, Suzy

ronin

1:48 am on Feb 15, 2005 (gmt 0)

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



Example: <p>This site sells <h1>blue widgets</h1> all day long.</p>

Hmmm... you and I know it's not a first level heading.
Any bot which could detect that the <h1> is within a <p>aragraph might suspect the same.

Any bot which detects there is more than one <h1> on the page and that lots of them appear in <p>aragraphs might very well suspect it.

Why not:

<h2>Blue Widgets</h2>
This site sells <strong>blue widgets</strong> all day long.</p>

encyclo

1:59 am on Feb 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Example: <p>This site sells <h1>blue widgets</h1> all day long.</p>

Any bot which could detect that the <h1> is within a <p>aragraph might suspect the same.

The trouble is this won't work because the

<h1>
can't exist within a
<p>
. Don't forget that a
<p>
doesn't require a closing
</p>
to be valid, so the
<h1>
simply (and correctly) closes the preceeding paragraph. What you get then is the problem that the text after the
</h1>
is not within a block-level element any more, and the
</p>
is orphaned. So:

<p>This site sells
<h1>blue widgets</h1>

Is perfectly valid HTML, so can't be detected by a search engine algo as being a problem. You then have a new block which is missing a

<p>
:

all day long.</p>

This won't scare a search engine, but may well mess up your layout as it won't be affected by any styles applied to a paragraph, and it is unassociated with the paragraph before the

<h1>
.

VegasRook

8:02 am on Feb 15, 2005 (gmt 0)

10+ Year Member



I am mainly just playing around with CSS and learning new stuff.

I don't actually have a H1 in the middle of a sentence anywhere.

Thought it would be good to know though for testing pages.

PhraSEOlogy

8:11 am on Feb 15, 2005 (gmt 0)

10+ Year Member



Try this thread

[webmasterworld.com ]