<?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>SEO Blogger &#187; Accessibility</title>
	<atom:link href="http://www.seoblogger.co.uk/category/accessibility/feed" rel="self" type="application/rss+xml" />
	<link>http://www.seoblogger.co.uk</link>
	<description>My boring views &#38; ocassional tutorial on SEO, web design, CSS, graphic design, making money with your website and so on...</description>
	<lastBuildDate>Wed, 09 Apr 2008 16:00:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Updating your site from HTML to XHTML</title>
		<link>http://www.seoblogger.co.uk/seo/updating-your-site-from-html-to-xhtml.html</link>
		<comments>http://www.seoblogger.co.uk/seo/updating-your-site-from-html-to-xhtml.html#comments</comments>
		<pubDate>Thu, 08 Nov 2007 13:09:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[XHTML]]></category>
<category>search engines</category><category>xhtml</category>
		<guid isPermaLink="false">http://www.seoblogger.co.uk/seo/updating-your-site-from-html-to-xhtml.html</guid>
		<description><![CDATA[Now, I know this isn&#8217;t exactly the most advanced post in the world and is going back to basics quite a bit, but given the amount of basic questions I get asked on the subject I thought I&#8217;d jot down some points on it. Everyone’s going on about XHTML nowadays, and you’re probably beginning to [...]]]></description>
			<content:encoded><![CDATA[<p>Now, I know this isn&#8217;t exactly the most advanced post in the world and is going back to basics quite a bit, but given the amount of basic questions I get asked on the subject I thought I&#8217;d jot down some points on it.</p>
<p>Everyone’s going on about XHTML nowadays, and you’re probably beginning to get a bit worried that your site must be infinitely inferior to the rest of the web as you’ve got no clue what XHTML is, and your site’s just coded in plain old HTML.</p>
<p>XHTML stands for Extensible Hypertext Mark-up Language and is a hybrid of XML and HTML. The basic principle behind it is that all pages designed in XHTML should look the same across all browsers and platforms, thanks to the way in which XHTML documents are parsed. I won’t try and bore you with an indepth explanation, but those nice people over at <a href="http://en.wikipedia.org/wiki/XHTML" target="_blank" title="XHTML definition at Wikipedia">Wikipedia have an explanation</a> that might make your head hurt. But if I were you, I’d just take my word for it that you should be coding in XHTML, and if you do so your sites should continue to look as you intended as the Internet continues to evolve. It’s all about trying to get a set of global standards that everyone follows so that no-one gets left behind… not too much anyway.<span id="more-22"></span></p>
<p>So anyway, you want to change your old HTML coded site into an all singing all dancing XHTML site. It doesn’t take a lot to drag your site out of the dark ages, just a few common principles to follow and some minor changes to your site. Optimising for search engines and building your site with CSS is another story though, which I’ll cover sometime in the near future.</p>
<h3>1. All tags in lowercase please</h3>
<p>Turn your caps lock off, do a match-case find-and-replace for all &lt;P&gt; tags and replace them with &lt;p&gt;. Find the next tag and repeat. We all hate stuff written in all caps anyway, so it shouldn’t be much of a chore.</p>
<h3>2. Close all tags!</h3>
<p>XHTML must be valid and able to be correctly parsed! I’d hope you’re in the habit of &lt;p&gt;Closing your paragraph&lt;/p&gt; tags anyway, as well as your &lt;li&gt;&lt;/li&gt;, &lt;ul&gt;&lt;/ul&gt; tags and so on. But what about all these tags like the &lt;img&gt; one, and &lt;br&gt;? They’ve gotta be closed too, but not like your paragraphs. Tags without a closing element need to be closed as follows with a &#8220;/&#8221; before the &#8220;&gt;&#8221; (/ &gt;):</p>
<blockquote><p>&lt;img src=”hand.gif” width=”100” height=”100” border=”0” alt=”John Leslie’s Right Hand” /&gt;</p>
<p>&lt;br /&gt;</p>
<p>&lt;hr /&gt;</p></blockquote>
<p>I’m sure you get the idea. But please note, this also applies to header tags such as:</p>
<blockquote><p>&lt;meta name=&#8221;keywords&#8221; content=&#8221;keywords, go, here&#8221; /&gt;</p>
<p>&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;styles.css&#8221; type=&#8221;text/css&#8221; media=&#8221;screen&#8221; /&gt;</p></blockquote>
<p>Close them all! This way the browser will know not to go looking through the rest of your code for a closing tag that’s not there!</p>
<h3>3. Nest your tags correctly</h3>
<p>You should close your tags in the order that you opened them. Here are a couple of examples:</p>
<blockquote><p>WRONG &#8211; &lt;p&gt;&lt;strong&gt;Hello!&lt;/p&gt;&lt;/strong&gt;</p>
<p>CORRECT &#8211; &lt;p&gt;&lt;strong&gt;Hello!&lt;/strong&gt;&lt;/p&gt;</p></blockquote>
<p>Seems obvious doesn’t it, but you’d be surprised how many people do it the wrong way.</p>
<h3>4. Use double speech marks</h3>
<p>Inside your tags, for example the image tag, remember to use your double speech marks. So not width=100, but width=”100”.</p>
<h3>5. Add your alt tags</h3>
<p>I’m not 100% sure if this is a requirement for XHTML, but you should be doing it anyway. Images are no use in text-only browsers or screen readers UNLESS you add alt tags explaining what the picture is of. And if you’ve got spacer images, use alt=”” for consistency. Please don’t put the word “Spacer” in as that’ll just be really annoying and doesn’t actually add any value. The spacers are only there to aid the visual structure of the site.</p>
<h3>6. No more &lt;font&gt; tags!</h3>
<p>They&#8217;re horrible, clunky and limited. Get rid of them! Use your paragraph and span tags where applicable to style and size your text. It&#8217;s some of the most basic CSS to do this, and if you&#8217;re not familiar with the basics yet, you really should be &#8211; so get Googling!</p>
<h3>7. Use character entity codes</h3>
<p>This is reasonably simple, instead of using &amp; use &amp;. There’s a <a href="http://www.asciitable.com/" target="_blank" title="Ascii Table">huge list of them all here</a>.</p>
<p>That wasn’t that hard was it? Now you’ve tidied your code up, it’s probably time to start thinking about step number…</p>
<h3>8. Code your sites with CSS</h3>
<p>Not part of the XHTML thing, but it’s definitely the next step. Coding your sites in CSS will allow for much more control over the appearance of your site, it’ll make your page size loads smaller, and you’ll be well on your way to fully optimizing your site for all the major search engines. My tips on how to do this will be winging their way to you via this blog soon!</p>
<p>A useful link: <a href="http://meiert.com/en/indices/html-elements/" title="HTML Elements Index" target="_blank">HTML Elements Index</a>. It&#8217;s a great list of what you can and can&#8217;t use in different versions of HTML and XHTML.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoblogger.co.uk/seo/updating-your-site-from-html-to-xhtml.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Benefits of Using Semantic Code</title>
		<link>http://www.seoblogger.co.uk/serps/the-benefits-of-using-semantic-code.html</link>
		<comments>http://www.seoblogger.co.uk/serps/the-benefits-of-using-semantic-code.html#comments</comments>
		<pubDate>Wed, 07 Nov 2007 12:11:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[SERPs]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[semantic code]]></category>
		<category><![CDATA[Web Design]]></category>
<category>accessibility</category><category>code html</category><category>h1 h2</category><category>header tags</category><category>screen readers</category><category>semantic</category>
		<guid isPermaLink="false">http://www.seoblogger.co.uk/serps/the-benefits-of-using-semantic-code.html</guid>
		<description><![CDATA[What is Semantic Code/HTML you ask? Basically, it&#8217;s a way of writing your HTML in a more meaningful, structured and to be honest, sensible way. It&#8217;s all about using your header tags (H1, H2, etc) for yep, you guessed it &#8211; headers, instead of bolding the text and increasing the font size with the old [...]]]></description>
			<content:encoded><![CDATA[<h3>What is Semantic Code/HTML you ask?</h3>
<p>Basically, it&#8217;s a way of writing your HTML in a more meaningful, structured and to be honest, sensible way. It&#8217;s all about using your header tags (H1, H2, etc) for yep, you guessed it &#8211; headers, instead of bolding the text and increasing the font size with the old &lt;font size=&#8221;10000000000000000000&#8243;&gt; tag. For paragraphs, use the &lt;p&gt; tag rather than sizing the font and adding hundreds of line breaks, for lists use the &lt;li&gt; tag, and so on.</p>
<p>If you want to add an image, you use the &lt;img=&#8230;&gt; tag because it&#8217;s the tag for inserting images, so it stands to reason really that when you&#8217;re adding a heading, list, etc, you use the correct tag, not some sort of bodge. Got it? Great.<span id="more-21"></span></p>
<h3>So why use Semantic HTML? What are the benefits? Why can&#8217;t I just do things my way?</h3>
<p>Well you can just do things your way if you want, but I&#8217;d probably not advise it. The biggest benefit of using Semantic Code is that you&#8217;ll be adhering to the Internet standard. And the benefit of that is that when things change and progress as they like to do on the Internet, the stuff that makes your site work isn&#8217;t going to get left behind.</p>
<p>Another great benefit is that it&#8217;ll make your pages load quicker. You whack all the crap and formatting in an external stylesheet, and it only needs to be declared and loaded once. For example:</p>
<blockquote>
<ol>
<li>Crappy HTML &#8211; &lt;font size=&#8221;3&#8243; color=&#8221;#000000&#8243;&gt;&lt;i&gt;HELLO!&lt;/i&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;</li>
<li>Over the top XHTML &#8211; &lt;div class=&#8221;big_heading&#8221;&gt;Hello!&lt;/div&gt;</li>
<li>Semantic HTML &#8211; &lt;h1&gt;Hello!&lt;/h1&gt;</li>
</ol>
</blockquote>
<p>Make sense? Lovely clean, uncluttered code. All the browsers and all the software know that number 3 is a heading. The other two are, for all anyone knows from looking at the code, just some formatted text. And if you check the HTML of this page, you&#8217;ll see that I also use the list tag there, because yep, it&#8217;s a list.</p>
<p>It&#8217;ll also make the  tedious task of making a website cross-browser compatible a lot easier.</p>
<h3>But why do I care what my code looks like? I just want my site to look pretty!</h3>
<p>But it can still look pretty! Both inside and out! And what&#8217;s the point in your site looking pretty if no-one can find it? Semantic code is also great for SEO! GoogleBot and co love semantic code. They don&#8217;t judge your site by how pretty it looks, they look at your code and work out what&#8217;s important, pick out keywords etc. The less clutter, and better formatted it is, the easier GoogleBot  can find what&#8217;s important in your page.</p>
<p>If there&#8217;s a heading tag &lt;h1&gt;Gay Bars in London&lt;/h1&gt;, GoogleBot&#8217;s going to note that down as being important and that the site&#8217;s obviously about Gay Bars in London. It&#8217;s common sense really. When GoogleBot sees&lt;font size=&#8221;23694&#8243; color=&#8221;pink&#8221;&gt;&lt;b&gt;Gay Bars In London&lt;/b&gt;&lt;/font&gt;, he thinks &#8220;what&#8217;s all that crap around those words?&#8221;, not &#8220;there&#8217;s a heading!&#8221;.</p>
<h3>Accessibility</h3>
<p>And here&#8217;s another benefit &#8211; it&#8217;ll make your code accessible. Screen readers  (what a blind person would use to surf the net) work in a similar way to the search engine bots in that they don&#8217;t care how pretty your page is, they want to know what the content is, and then read the text out loud for the end user. Now, to be of any use, the website needs to be read in the right order. If you&#8217;ve got messy code everywhere the screen reader is going to get confused and possibly misinterpret your page. And please, take note that the &lt;b&gt; or &lt;em&gt; tags are used to add emphasis to something, and in screen reader language that means it&#8217;ll &#8220;shout&#8221; it, so do think carefully where you use those tags. If in doubt, a top tip is to set up a style in your CSS that bolds the text and use &lt;span class=&#8221;b&#8221;&gt;Hello&lt;/span&gt; instead. Similarly, we all know that in Internet speak, writing in capital letters is considered shouting, so if you&#8217;re using capital letters somewhere for visual effect, use a text-transform style in your CSS so your content isn&#8217;t shouted at the user.</p>
<h3>In Summary</h3>
<p>So to sum up, please code your pages semantically. It&#8217;s for the benefit of everyone, and once you learn how to do it, it&#8217;ll save you time too. Just writing short tags instead of styling everything up in the body of the page means a lot less typing for you. And above all, it&#8217;s just the right way to do things!</p>
<p>And to finish, here&#8217;s a little quiz for you. Just highlight the black blocks to reveal the answer.</p>
<p>For a heading, what tag should you use? Answer: <span style="background-color: #000000">The Heading tag</span></p>
<p>And for a list? Answer: <span style="background-color: #000000">The List tag</span></p>
<p>For a paragraph? Answer: <span style="background-color: #000000">The Paragraph tag</span></p>
<p>Now give yourself a pat on the back and sort your site out!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seoblogger.co.uk/serps/the-benefits-of-using-semantic-code.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.seoblogger.co.uk/category/accessibility/feed ) in 0.25443 seconds, on Feb 1st, 2012 at 6:50 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 8th, 2012 at 6:50 am UTC -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  www.seoblogger.co.uk/category/accessibility/feed ) in 0.00656 seconds, on Feb 6th, 2012 at 1:39 am UTC. -->
