Forum Moderators: open
Can someone advise me where the H2 tags would go in the following string of HTML code? I can't decide whether it should be after the guff:
<p style="line-height: 150%" </h2>align="left"><font face="Arial"><font color="#000080" size="3"><b></b></font><b><font size="3" color="#000080">Providing
Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites</font></b></font></p><h2>
Or before the guff:
<p style="line-height: 150%" align="left"><font face="Arial"><font color="#000080" size="3"><b></b></font><b><font size="3" color="#000080"><H2>Providing
Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites<H2</font></b></font></p>
Also, does it make any difference to the SEO exactly where the header tags are placed in the string?
For example
1) You have the </h2> first and then the <h2>
2) This </h2>align="left"> is not valid, it should probably be <h2 align="left">
3) Not valid <H2</font>
Also if you are really intersted in SEO, use style sheets, and have all your styles, alignments and fonts in there.
Besides, I put my site through the W3C validation service website and found loads of "mistakes" in the code on my tiny website. Didn't want to make any more when adding an H2 tag.
So does one of the examples given by the two responders give EXACTLY the same result as what I had in my "messy" code? I'm not clear about the answer to my original question.
Instead of:
<p style="line-height: 150%" </h2>align="left"><font face="Arial"><font color="#000080" size="3"><b></b></font><b><font size="3" color="#000080">Providing
Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites</font></b></font></p><h2>
I should put:
<h2 style="font:bold medium/1.5 Arial;color:#000080">Providing Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites<h2>
Or:
<h2>Providing Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites</h2>
But it seems with those two examples a lot has been left out and I think the alignment, font colour etc may be missing..?
If you aren't familiar with it yet, go with the one with the style inline.
e.g.
<h2 style="font:bold medium/1.5 Arial;color:#000080">Providing Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites<h2>
<p style="line-height: 150%" </h2>align="left"><font face="Arial"><font color="#000080" size="3"><b></b></font><b><font size="3" color="#000080">Providing
Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites</font></b></font></p><h2>
And replaced it with this line:
<h2 style="font:bold medium/1.5 Arial;color:#000080">Providing Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites<h2>
<h2 style="font:bold medium/1.5 Arial;color:#000080">Providing Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites<h2>
<h2 style="font:bold medium/1.5 Arial;color:#000080">Providing Distinctive & Creative Freelance Writing for Many Types of Media, and Persuasive Online Copywriting for Websites</h2>
-b