BukToof
09-15-2011, 02:05 AM
Hello,
I'm trying to format an <h1> tag in such a way that it'll be able to target specific letters within the tag for independent styling while still being readable to search engines.
For example, the <h1> tag on my website will function as the logo text and I want the letters to be in all caps. However, I want the first letters of each word slightly larger.
Such as: WEBSITE TITLE
To achieve the effect visually, I wrapped the two letters I wanted to target in spans and in the CSS, gave that font a larger size. This renders fine on the web page but I doubt search engines would pick up on the title this way. Example:
<h1><span id="logoCaps">w</span>ebsite <span id="logoCaps">t</span>itle</h1>
What would be a better way to code this?
Thanks for any advice you have to offer.
I'm trying to format an <h1> tag in such a way that it'll be able to target specific letters within the tag for independent styling while still being readable to search engines.
For example, the <h1> tag on my website will function as the logo text and I want the letters to be in all caps. However, I want the first letters of each word slightly larger.
Such as: WEBSITE TITLE
To achieve the effect visually, I wrapped the two letters I wanted to target in spans and in the CSS, gave that font a larger size. This renders fine on the web page but I doubt search engines would pick up on the title this way. Example:
<h1><span id="logoCaps">w</span>ebsite <span id="logoCaps">t</span>itle</h1>
What would be a better way to code this?
Thanks for any advice you have to offer.