Forum Moderators: not2easy
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!
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
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>
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>.