Forum Moderators: open
My site has many lists and I'd like to make each list as SEO friendly as possible.
If I were to have a heading tag around each and every row within a list, e.g
<h5>black widgets</h5>
<h5>white widgets</h5>
<h5>red widgets</h5>
Would only the first be recognised as a heading? If not, could I just create as many headings as I needed?
E.g
<h5>black widgets</h5>
<h6>white widgets</h6>
.....
<h240>red widgets</h240>
I'm creating this list from a database using php so it shouldn't be too hard either way.
Sorry if this is a dumb question, I only know about H1 to H6.
Thanks in advance
PH
H1 to H6
From momory I don't think there are any others that are a standard recognised by browsers.
Each nested heading should have the next number in series.
So:-
<h1>A site about widgets</h1>
<h2>Red widgets</h2>
Some text about red widgets
<h3>Shiny Red Widgets</h3>
I love shiny red widgets
<h2>Blue widgets</h2>
Blue widgets are not so popular these days.
<h2>Green Widgets</h2>
etc
TJ
this is allowed?
Yes. It's also the "correct" way to markup an html document.
See : [w3.org...]
... for more info on heading tags.
TJ
Yes. It's also the "correct" way to markup an html document.
I don't think so if I am understanding PumpkinHead correctly.
What you are looking at doing is this, right?
<ul>
<li><h5>Item one</h5></li>
<li><h5>Item two</h5></li>
<li><h5>Item three</h5></li>
<li><h5>Item four</h5></li>
etc
</ul>
Or else just replacing the list altogether with <h5> tags
If so then it is not the "correct" way to do it, but I have no clue what its effect would be from an SEO viewpoint.