Forum Moderators: open

Message Too Old, No Replies

H1 Tags and Anchor Text

Using hyperlinks within H1 tags

         

BallochBD

12:40 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



Does anyone know if it is acceptable to use anchor text (hyperlinks) within H1 tags? I was doing something like ...

<h1><font size="2">Why not link to <a href="www.yourdomain.co.uk">www.yourdomain.co.uk</a></font></h1>

I have been informed that this is taboo and that I will incur a penalty from search engine robots if I use it. I know that it is not standard but I have not been able to find anything to suggest that it is actually wrong.

trillianjedi

12:45 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have not been able to find anything to suggest that it is actually wrong.

There's nothing to suggest it's actually wrong, but according to W3C standards it not correct use of the H1 tag, which is for paragraph headings.

Personally, I wouldn't do it.

Why do you want to do it anyway? You can style the link how you want with css?

TJ

sem4u

1:11 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was thinking about putting a link into an <h2> tag for actual headers which link to another page. There would be a short product description under the <h2> tag.

However, this would not validate so I am giving it a miss.

mantaworks

8:09 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



Whatever you do, lose the <font> tag. It's outdated.

BallochBD

8:42 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



Mantaworks, I don't have a lot of experience with web design and this is news to me. What do you mean by outdated?

bcolflesh

8:47 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



style.cleverchimp.com/font_size/livetext.html

grahamstewart

10:55 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The <font> tag was deprecated in 1997 with the release of HTML4.0

That means the W3c (World Wide Web Consortium) no longer recommend its use.
[w3.org...]

g1smd

6:03 pm on Mar 1, 2004 (gmt 0)

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



Your page should consist of headings, paragraphs, lists, tables, and forms.

Lose the <font> tags and their associated code bloat. You'll have an easier life maintaining your site.

adfree

11:16 pm on Mar 1, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>Lose the <font> tags...

So, in case you are a FP user, burn the CD, erase the software on your HD, get used to Dreamweaver or GoLive or any other state-of-the-art editor, cuz you'll never be finished getting rid of that bloated code...

You'll save 30% weight and lots of headache along the way!

g1smd

11:33 pm on Mar 1, 2004 (gmt 0)

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



Although I personally hate fontplague and programs of that ilk, pageoneresults will testify that it can be tamed to provide valid and well-formed code, with good CSS, if beaten with a big enough clue stick very many times.