<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Robb Clarke - Fredericton Web and Print Designer &#187; h1</title>
	<atom:link href="http://robbclarke.com/tag/h1/feed/" rel="self" type="application/rss+xml" />
	<link>http://robbclarke.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 14 Aug 2010 12:49:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How To: H1 as an Image While Maintaining SEO</title>
		<link>http://robbclarke.com/coding-tricks/how-to-h1-as-an-image-while-maintaining-seo/</link>
		<comments>http://robbclarke.com/coding-tricks/how-to-h1-as-an-image-while-maintaining-seo/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 12:14:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Coding Tricks]]></category>
		<category><![CDATA[Engine]]></category>
		<category><![CDATA[h1]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://clarkegraphics.com/?p=45</guid>
		<description><![CDATA[If you check out the header of this site you&#8217;ll notice that it&#8217;s an image but if you look at the code there&#8217;s no image there, just some text for Search Engine Optimization (SEO) purposes. You&#8217;re probably wondering how and why, well here&#8217;s the math: As you know, having the H1 on your site filled [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://clarkegraphics.com/2009/08/how-to-h1-as-an-image-while-maintaining-seo/"><img class="alignright size-full wp-image-47" title="H1" src="http://clarkegraphics.com/wp-content/uploads/2009/08/h1.jpg" alt="H1" width="600" height="200" /></a></p>
<p>If you check out the header of this site you&#8217;ll notice that it&#8217;s an image but if you look at the code there&#8217;s no image there, just some text for Search Engine Optimization (SEO) purposes. You&#8217;re probably wondering how and why, well here&#8217;s the math:</p>
<p>As you know, having the H1 on your site filled in does wonders for your <acronym title="Search Engine Optimization">SEO</acronym>, and aside from your Title tag and meta tags, it&#8217;s the first thing on your site that&#8217;s read by browsers. On this site I have &#8220;my name is robb clarke and i build websites&#8221; as the information in my H1 tag.  Obviously that text isn&#8217;t what&#8217;s displayed on the site, I have an image, all nicely styled, in its place. Now, obviously text on images are readable by search engines, so how do display an image while maintaining your SEO?</p>
<p>Here&#8217;s how.</p>
<p><strong>HTML</strong></p>
<pre class="html">
<span class="htmlOtherTag">&lt;h1&gt;</span><span class="htmlOtherTag">&lt;span&gt;</span>my name is robb clarke and i build websites<span class="htmlOtherTag">&lt;/span&gt;</span><span class="htmlOtherTag">&lt;/h1&gt;</span>
</pre>
<p><strong>CSS</strong></p>
<pre class="css"><span class="cssSelector">h1 {</span>
<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue"> 18px</span><span class="cssRest">;</span>
<span class="cssProperty">font-weight</span><span class="cssRest">:</span><span class="cssValue"> bold</span><span class="cssRest">;</span>
<span class="cssProperty">width</span><span class="cssRest">:</span><span class="cssValue"> 900px</span><span class="cssRest">;</span>
<span class="cssProperty">height</span><span class="cssRest">:</span><span class="cssValue"> 198px</span><span class="cssRest">;</span>
<span class="cssProperty">background</span><span class="cssRest">:</span><span class="cssValue"> url(images/header.jpg) top left no-repeat</span><span class="cssRest">;</span>
<span class="cssProperty">display</span><span class="cssRest">:</span><span class="cssValue"> block</span><span class="cssRest">;</span>
<span class="cssProperty">margin</span><span class="cssRest">:</span><span class="cssValue"> 10px 0 10px 0</span><span class="cssRest">;</span> <span class="cssSelector">}</span>
<span class="cssSelector">h1 span {</span> <span class="cssProperty">display</span><span class="cssRest">:</span><span class="cssValue"> none</span><span class="cssRest">;</span> <span class="cssSelector">}</span></pre>
<p>So what this does is takes the text inside of the SPAN tag and applies the &#8220;display: none;&#8221; to it, thus hiding it from your sight but not the search engine&#8217;s. Then to display the image in its place we make the image the background of the H1 tag and set the height and width accordingly.</p>
<p>You can also do it another way without the SPAN tag by just using text-indent.</p>
<p><strong>HTML</strong></p>
<pre class="html">
<span class="htmlOtherTag">&lt;h1&gt;</span>my name is robb clarke and i build websites<span class="htmlOtherTag">&lt;/h1&gt;</span>
</pre>
<p><strong>CSS</strong></p>
<pre class="css"><span class="cssSelector">h1 {</span>
<span class="cssProperty">font-size</span><span class="cssRest">:</span><span class="cssValue"> 18px</span><span class="cssRest">;</span>
<span class="cssProperty">font-weight</span><span class="cssRest">:</span><span class="cssValue"> bold</span><span class="cssRest">;</span>
<span class="cssProperty">width</span><span class="cssRest">:</span><span class="cssValue"> 900px</span><span class="cssRest">;</span>
<span class="cssProperty">height</span><span class="cssRest">:</span><span class="cssValue"> 198px</span><span class="cssRest">;</span>
<span class="cssProperty">background</span><span class="cssRest">:</span><span class="cssValue"> url(images/header.jpg) top left no-repeat</span><span class="cssRest">;</span>
<span class="cssProperty">display</span><span class="cssRest">:</span><span class="cssValue"> block</span><span class="cssRest">;</span>
<span class="cssProperty">margin</span><span class="cssRest">:</span><span class="cssValue"> 10px 0 10px 0</span><span class="cssRest">;</span>
<span class="cssProperty">text-indent</span><span class="cssRest">:</span><span class="cssValue"> -9999px</span><span class="cssRest">;</span> <span class="cssSelector">}</span></pre>
<p>This will send any text 9999px to the left and out of sight.</p>
<p>Questions? Comments? Concerns?</p>
]]></content:encoded>
			<wfw:commentRss>http://robbclarke.com/coding-tricks/how-to-h1-as-an-image-while-maintaining-seo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
