Forum Moderators: open

Message Too Old, No Replies

Is this a valid H1 tag?

2 styles used...

         

zoobie

9:58 am on Sep 30, 2003 (gmt 0)

10+ Year Member



Is this a valid H1 tag? I usually put the style in the tag itself...but in this case, I'm using 2 styles of fonts. Thanks
<h1><span class="caps">HELLO</span><span class="script">World</span></h1>

BlobFisk

10:11 am on Sep 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Looks valid enough, but why use 2 spans when one would do the trick?

Restyle the H1 to emulate the "caps" style, then you only need to wrap the relevant bit with one span...

zoobie

5:36 pm on Sep 30, 2003 (gmt 0)

10+ Year Member



Yes...that's what I was thinking...minds well...thanks

Reflection

5:47 pm on Sep 30, 2003 (gmt 0)

10+ Year Member



For SEO purposes you might not want to split your words with a span tag. If the sentence in your h1 tag is a 'keyword' sentence splitting it up with a span tag may have a negative effect in some search engines. I believe there are several threads around here that dicuss this issue, you might want to check them out.

Other than that there is nothing wrong with using a span tag inside your h1 tag.

zoobie

3:20 am on Oct 1, 2003 (gmt 0)

10+ Year Member



Other than that? Ha ha! Yes...The H1 is all keywords. I've found that SEO is a year long process trying different approaches every month...No worries.