<?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>Polymorphism &#187; Accessibility</title>
	<atom:link href="http://www.clearcrystalmedia.com/pm/category/design-css/accessibility/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clearcrystalmedia.com/pm</link>
	<description>using the right technology at the right time</description>
	<lastBuildDate>Tue, 29 Nov 2011 13:53:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Accessible links in printer style sheets</title>
		<link>http://www.clearcrystalmedia.com/pm/accessible-links-in-printer-style-sheets/</link>
		<comments>http://www.clearcrystalmedia.com/pm/accessible-links-in-printer-style-sheets/#comments</comments>
		<pubDate>Thu, 24 Sep 2009 21:14:04 +0000</pubDate>
		<dc:creator>Chris Peters</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Design & CSS]]></category>
		<category><![CDATA[ccm]]></category>
		<category><![CDATA[chris peters]]></category>
		<category><![CDATA[clear crystal media]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[polymorphism]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.clearcrystalmedia.com/pm/?p=361</guid>
		<description><![CDATA[<p>Using some <abbr title="Cascading Style Sheet">CSS</abbr> voodoo, you can display a text link's <abbr title="Uniform Resource Locator">URL</abbr> in parenthesis after the link text. This would be very useful for printer style sheets, where you can't see where the links are pointing when the page is printed out.</p>
<p>Read on for more details and the code.</p>]]></description>
			<content:encoded><![CDATA[<p>Eric posted a <a title="LinkTo Location Appearing Next To Links - How Do I Remove This???" href="http://groups.google.com/group/cfwheels/browse_thread/thread/dbeca30008ce4f59?hl=en">question in the Wheels Google Group</a> about a strange <abbr title="Cascading Style Sheet">CSS</abbr> display problem. What came out of it was a very interesting <abbr title="Cascading Style Sheet">CSS</abbr> trick that has a very practical use.</p>
<p>Using some <abbr title="Cascading Style Sheet">CSS</abbr> voodoo, you can display a text link&#8217;s <abbr title="Uniform Resource Locator">URL</abbr> in parenthesis after the link text. This would be very useful for printer style sheets, where you can&#8217;t see where the links are pointing when the page is printed out.</p>
<p>Here&#8217;s an example of what you&#8217;d see on the screen:</p>
<blockquote><p>I wrote an blog post about <a href="http://www.clearcrystalmedia.com/gc/green-printer-style-sheet/">printer style sheets</a> a while ago.</p></blockquote>
<p>And here&#8217;s what you&#8217;d see on the printed page:</p>
<blockquote><p>I wrote an blog post about <a href="http://www.clearcrystalmedia.com/gc/green-printer-style-sheet/">printer stylesheets</a> (http://www.clearcrystalmedia.com/gc/green-printer-style-sheet/)  a while ago.</p></blockquote>
<p>Here&#8217;s the <a href="http://www.w3schools.com/Css/pr_gen_content.asp"><abbr title="Cascading Style Sheet">CSS</abbr> code</a>, which I would definitely use some specificity on. (I added a reference to <code>#content</code> as an example of using a selector for specificity. We wouldn&#8217;t want to have images in our navigation with parenthesis!)</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#content</span> a<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot; (&quot;</span> attr<span style="color: #00AA00;">&#40;</span>href<span style="color: #00AA00;">&#41;</span> <span style="color: #ff0000;">&quot;)&quot;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>This trick appears to work in all browsers except for Internet Explorer versions 6 and 7.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/Accessibility' rel='tag' target='_self'>Accessibility</a>, <a class='technorati-link' href='http://technorati.com/tag/ccm' rel='tag' target='_self'>ccm</a>, <a class='technorati-link' href='http://technorati.com/tag/chris+peters' rel='tag' target='_self'>chris peters</a>, <a class='technorati-link' href='http://technorati.com/tag/clear+crystal+media' rel='tag' target='_self'>clear crystal media</a>, <a class='technorati-link' href='http://technorati.com/tag/css' rel='tag' target='_self'>css</a>, <a class='technorati-link' href='http://technorati.com/tag/html' rel='tag' target='_self'>html</a>, <a class='technorati-link' href='http://technorati.com/tag/polymorphism' rel='tag' target='_self'>polymorphism</a>, <a class='technorati-link' href='http://technorati.com/tag/tip' rel='tag' target='_self'>tip</a>, <a class='technorati-link' href='http://technorati.com/tag/tips' rel='tag' target='_self'>tips</a>, <a class='technorati-link' href='http://technorati.com/tag/web+design' rel='tag' target='_self'>web design</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.clearcrystalmedia.com/pm/accessible-links-in-printer-style-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How SEO improves web accessibility</title>
		<link>http://www.clearcrystalmedia.com/pm/how-seo-improves-web-accessibility/</link>
		<comments>http://www.clearcrystalmedia.com/pm/how-seo-improves-web-accessibility/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 13:27:11 +0000</pubDate>
		<dc:creator>Chris Peters</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Search Marketing]]></category>

		<guid isPermaLink="false">http://www.chrispetersweb.com/2007/08/21/how-seo-improves-web-accessibility/</guid>
		<description><![CDATA[Good search marketers are starting to make a positive impact on web accessibility. Many search marketers say that Google is the ultimate blind user anyway. Most everywhere, web accessibility still remains low on the totem pole of priorities. Let’s dive deep into the realms of user experience and talk about how good SEO can improve [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/assets/images/blog/blind-users.jpg" alt="What do you do for users who can't see your web site?" align="left" hspace="20" vspace="20" />Good search marketers are <strong>starting to make a positive impact on <a href="http://www.chrispetersweb.com/category/accessibility" title="My blog posts about accessbility">web accessibility</a></strong>. Many search marketers say that Google is the ultimate blind user anyway. Most everywhere, web accessibility still remains low on the totem pole of priorities. Let’s dive deep into the realms of user experience and talk about how good <abbr title="Search Engine Optimization">SEO</abbr> can improve web accessibility.<span id="more-111"></span></p>
<h3>The pains of using a screen reader</h3>
<p><strong>Worst case, you’re using a screen reader to browse the Web.</strong> You have low vision or blindness, so you <a href="http://www.chrispetersweb.com/2005/07/08/screen-readers-101/" title="Screen readers 101">have your computer read all of the text on web pages aloud</a>. If you’ve never tried using a screen reader, I’d suggest downloading <a href="http://www.freedomscientific.com/fs_products/software_jaws.asp" title="JAWS for Windows">JAWS</a> and trying to surf the web. It’s painful and inefficient. If you already hate computers, you’ll hate them even more.</p>
<p>To overcome the need to listen to every word on the page, users usually have the screen reader <strong>read only the links on the page</strong> to figure out what their options are for navigation.</p>
<p>Now <strong>imagine running through the scenario of using a screen reader</strong> when the page’s content looks like this:</p>
<blockquote><p>To learn more about Wookiees, <a href="http://en.wikipedia.org/wiki/Wookiee" title="Wookiee on Wikipedia">click here</a>.</p>
<p>We absolutely love Wookiee  hair, so we’ve listed our favorite Wookiee brushes <a href="http://www.industrialbrushware.co.uk/default2.htm" title="Industrial Brushware">here</a>.</p>
<p><a href="http://thewookiee.com/2006/07/pepto-bismol-ice-cream.html" title="The Wookiee talks about Pepto Bismol ice cream">Click here</a> to order some Wookiee ice cream.</p></blockquote>
<p>The screen reader would read it like so. <strong>Imagine the frustration:</strong></p>
<blockquote><p>Link: click here. Link: here. Link: click here.</p></blockquote>
<p>If you decide to ignore support for screen readers in spite of that scenario, beware. Even <strong>users that can see often look for that blue underlined text</strong> instead of reading everything in context. Regardless of sight ability, users that sense that they want to go somewhere else immediately start looking for links. In this case, <a href="http://www.useit.com/alertbox/features.html" title="Feature Richness and User Engagement">no one cares about what you’ve written</a>.</p>
<p>Please <strong>save everyone time</strong> by restructuring the example content so that the <strong>link text describes where the link points to</strong>:</p>
<blockquote><p>Learn more about <a href="http://en.wikipedia.org/wiki/Wookiee" title="Wookiee on Wikipedia">Wookiees</a>.</p>
<p>We absolutely love Wookiee hair, so we’ve listed our favorite <a href="http://www.industrialbrushware.co.uk/default2.htm" title="Industrial Brushware">Wookiee brushes</a>.</p>
<p>Order some <a href="http://thewookiee.com/2006/07/pepto-bismol-ice-cream.html" title="The Wookiee talks about Pepto Bismol ice cream">Wookiee ice cream</a>.</p></blockquote>
<p>What’s great is that <strong><abbr title="Search Engine Optimization">SEO</abbr> encourages content writers to follow this practice</strong>. The text you have in a link describes to search engines what the next page is about, so Google uses this link text to determine what keywords the page should rank for. Don’t underestimate the blue underlined text’s ability to let the user know that they want to click it.</p>
<h3>Headers are important, too</h3>
<p>When a user with low vision is on a page containing the information they need, it’s still painful to listen to the screen reader read everything on the page. So <strong>the user will often toggle through the page’s headers</strong>, much like they do with links. This helps them find the part of the page they want access to faster.</p>
<p>It just so happens that <strong>Google places more value on the text contained within page headers</strong>. So that means that search marketers are ahead of the game here as well, knowing that header text should be keyword rich.</p>
<p><strong>Headers should do a good job of summarizing</strong> their sections, so be sure to use words that visitors understand. (Also known as key words! <a href="http://www.chrispetersweb.com/2007/07/26/seo-improves-the-experience-of-searching-for-information/">Sound familiar?</a>)</p>
<h3>Don’t use obtrusive technologies</h3>
<p>Search marketers know the importance of <strong>not using JavaScript, images, Flash</strong>, and other “non-readable” content to convey your message. If you regularly embed text into images on your site, you have both <abbr title="Search Engine Optimization">SEO</abbr> <em>and</em> accessibility problems.</p>
<p>Computers can’t read graphics, so <strong>screen readers and search engines can’t read graphics</strong> either. If you absolutely must put content within images, JavaScript, or Flash, learn how to provide a text alternative for each situation. It will improve your <abbr title="Search Engine Optimization">SEO</abbr> and also the experience for screen reader users.</p>
<p>I covered <a href="http://www.chrispetersweb.com/2005/05/17/everything-youd-ever-want-to-know-about-the-alt-attribute/">how to write effective alternative texts</a> a couple years ago. Recommended reading!</p>
<h3>Overall user experience revisited</h3>
<p>Let’s not forget that your sites’ visitors with disabilities benefit from <a href="http://www.chrispetersweb.com/2007/07/26/seo-improves-the-experience-of-searching-for-information/"><strong>the same <abbr title="Search Engine Optimization">SEO</abbr> improvements that everyone else does</strong></a>. Because browsing a web site takes disabled users <em>even more time</em>, they want to consume content that speaks to them in their own words. They want to find your site quickly in Google. They don’t want to spend time listening to a screen reader’s inhuman voice, let alone deciphering your confusing message.</p>
<p>Remember, this is yet another reason to <strong>bring in cookies and elaborate gifts for your search marketer</strong>.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.clearcrystalmedia.com/pm/how-seo-improves-web-accessibility/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blog Series: Why Search is a user experience issue</title>
		<link>http://www.clearcrystalmedia.com/pm/why-seo-is-a-user-experience-issue/</link>
		<comments>http://www.clearcrystalmedia.com/pm/why-seo-is-a-user-experience-issue/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 20:30:19 +0000</pubDate>
		<dc:creator>Chris Peters</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Search Marketing]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://www.chrispetersweb.com/2007/07/26/blog-series-why-seo-is-a-user-experience-issue/</guid>
		<description><![CDATA[Many think of Search Engine Optimization as wizardry to get high rankings in search engines. It is true that high rankings are one measurement of success. But there are elements of SEO that helps improve your site&#8217;s user experience. Let&#8217;s see SEO helps out with other areas of user experience. Technorati Tags: seo, search marketing, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/assets/images/blog/seo_nerd_magic.jpg" alt="I will TAME Google with my NERD MAGIC!" align="right" hspace="20" vspace="20" /><strong>Many think of Search Engine Optimization as wizardry</strong> to get high rankings in search engines. It is true that high rankings are one measurement of success. But there are elements of <abbr title="Search Engine Optimization">SEO</abbr> that <strong>helps improve your site&#8217;s user experience</strong>. Let&#8217;s see <abbr title="Search Engine Optimization">SEO</abbr> helps out with other areas of user experience.<br />
<span class="technoratitag">Technorati Tags:<br />
<a href="http://www.technorati.com/tag/seo" rel="tag" title="Link to Technorati Tag category for seo">seo</a>, <a href="http://www.technorati.com/tag/search+marketing" rel="tag" title="Link to Technorati Tag category for search marketing">search marketing</a>, <a href="http://www.technorati.com/tag/usability" rel="tag" title="Link to Technorati Tag category for usability">usability</a>, <a href="http://www.technorati.com/tag/hci" rel="tag" title="Link to Technorati Tag category for hci">hci</a></span><br />
<span id="more-108"></span></p>
<p><strong><abbr title="Search Engine Optimization">SEO</abbr> is related to these disciplines</strong> in becoming the ultimate warrior in web mastery:</p>
<ul>
<li><a href="/2007/07/26/seo-improves-the-experience-of-searching-for-information/?phpMyAdmin=291c4775499at7025cf03">The experience involved with searching for information</a></li>
<li><a href="http://www.chrispetersweb.com/2007/08/21/how-seo-improves-web-accessibility/">Accessibility</a></li>
<li><a href="/2007/08/24/how-seo-improves-usability/?phpMyAdmin=291c4775499at7025cf03" title="How SEO improves usability">Web site usability</a></li>
<li>Information Architecture</li>
</ul>
<p>We&#8217;ll take a look at each one this week. The links above will become active once I&#8217;ve covered the topic.</p>
<p>Photo Credit: <a href="http://www.flickr.com/photos/cayusa/627611844/">Wizard&#8217;s Duel</a> by <a href="http://www.flickr.com/photos/cayusa/" title="Cayusa's Flickr Photostream">Cayusa</a>. <a href="http://creativecommons.org/licenses/by-nc/2.0/deed.en-us" title="Creative Commons Attribution-NonCommercial 2.0 license">Some rights reserved</a>.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.clearcrystalmedia.com/pm/why-seo-is-a-user-experience-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Face it: you need bigger font</title>
		<link>http://www.clearcrystalmedia.com/pm/face-it-you-need-bigger-font/</link>
		<comments>http://www.clearcrystalmedia.com/pm/face-it-you-need-bigger-font/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 20:32:53 +0000</pubDate>
		<dc:creator>Chris Peters</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Design & CSS]]></category>
		<category><![CDATA[Usability]]></category>

		<guid isPermaLink="false">http://www.chrispetersweb.com/2007/06/11/face-it-you-need-bigger-font/</guid>
		<description><![CDATA[Like it or not, a lot of your sites&#8217; visitors wish that you would increase the default font size on your site. Finally, technology is starting to facilitate this, but why is no one willing to change along with it? Technorati Tags: design, font, web design, web, css, accessibility, usability, html You probably know people [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/assets/images/blog/growing_font_size.gif" alt="Grow your font size." align="left" hspace="20" vspace="20" />Like it or not, a lot of your sites&#8217; visitors wish that you would <strong>increase the default font size</strong> on your site. Finally, technology is starting to facilitate this, but why is no one willing to change along with it?<br />
<span class="technoratitag">Technorati Tags:<br />
<a href="http://www.technorati.com/tag/design" rel="tag" title="Link to Technorati Tag category for design">design</a>, <a href="http://www.technorati.com/tag/font" rel="tag" title="Link to Technorati Tag category for font">font</a>, <a href="http://www.technorati.com/tag/web+design" rel="tag" title="Link to Technorati Tag category for web design">web design</a>, <a href="http://www.technorati.com/tag/web" rel="tag" title="Link to Technorati Tag category for web">web</a>, <a href="http://www.technorati.com/tag/css" rel="tag" title="Link to Technorati Tag category for css">css</a>, <a href="http://www.technorati.com/tag/accessibility" rel="tag" title="Link to Technorati Tag category for accessibility">accessibility</a>, <a href="http://www.technorati.com/tag/usability" rel="tag" title="Link to Technorati Tag category for usability">usability</a>, <a href="http://www.technorati.com/tag/html" rel="tag" title="Link to Technorati Tag category for html">html</a></span><br />
<span id="more-105"></span></p>
<h3>You probably know people who have low vision</h3>
<p>I thought about this in depth after watching a friend&#8217;s father read a <strong>restaurant menu that had small font</strong>. He kept adjusting the distance between his eyes and the menu to try focusing better. He was a little younger than 50 years old.</p>
<p>A few weeks before, I had watched my own father have the same struggle at that same restaurant. <strong>He eventually gave up</strong> and had to have my mom choose something for him.</p>
<p>I can&#8217;t imagine what it&#8217;s like for these guys to try reading 8 point Verdana on their monitors. I doubt they appreciate having daily eye exams at their computers.</p>
<h3>The usability expert&#8217;s take</h3>
<p><a href="http://blog.webreakstuff.com/2005/10/usability-tips-part1/" title="Pleasing Jakob Nielsen, Part 1">Webreakstuff commented on Jakob Nielsen&#8217;s Top Ten Web Design Mistakes of 2005</a> a couple years ago. The number 1 usability mistake of 2005, according to Nielsen, was <strong>illegible font sizes</strong>. Two-thirds of users studied complained about font sizes being too small or frozen from being resized.</p>
<p>What&#8217;s worse, we can assume that most people probably don&#8217;t know that you can increase font size using browser controls, let alone knowing how to do it.</p>
<h3>Screen resolutions are increasing, but web sites&#8217; font sizes aren&#8217;t</h3>
<p>Currently, <a href="http://www.onestat.com/html/aboutus_pressbox31.html">the most used monitor resolution is 1024 <abbr title="by">x</abbr> 768</a>. Sites like Yahoo! and Apple have responded by <strong>widening their sites&#8217; layouts</strong>. But it&#8217;s been rare to find sites that have increased their font sizes along with it. (To be fair to Yahoo!, their site layout scales very well when you resize the text using your browser&#8217;s controls.)</p>
<p>The sad thing is that these sites are using this new space to <strong>add complexity to their layouts</strong>. Designs are becoming busier, not bigger.</p>
<h3>Don&#8217;t bastardize the web as a medium</h3>
<p>I know where this comes from. <strong>Graphic designers are taught how to design for print</strong> in school. They are used to doing page layout for magazines and newspapers, which naturally have higher resolutions and have fixed dimensions. If you use the equivalent of 8 point Verdana for your web site font, you can fit content in easier and make everything look like a magazine layout.</p>
<p>The problem is that <strong>web users want to control their own destiny</strong>. They want to resize their fonts, and they don&#8217;t care about the designer&#8217;s control over the layout&#8217;s look. They have their monitor, not someone else&#8217;s. <strong>So be flexible.</strong> Learn to compromise the look of your pages so that your visitors can use whatever their investment in computing will allow them to.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.clearcrystalmedia.com/pm/face-it-you-need-bigger-font/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Authoring accessible Web forms</title>
		<link>http://www.clearcrystalmedia.com/pm/authoring-accessible-web-forms/</link>
		<comments>http://www.clearcrystalmedia.com/pm/authoring-accessible-web-forms/#comments</comments>
		<pubDate>Thu, 07 Sep 2006 04:00:38 +0000</pubDate>
		<dc:creator>Chris Peters</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://208.112.67.4/blog/accessibility/authoring-accessible-web-forms</guid>
		<description><![CDATA[As I&#8217;ve gotten better with XHTML and CSS, I&#8217;ve become more interested in figuring out which tag to use for each element on a web page. HTML tags were designed to describe information, not necessarily to dictate how to display information. We developers should ask ourselves which tags we should use on our HTML forms. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/assets/images/blog/blind-users.jpg" alt="What do you do for users who can't see your Web site?" /> As I&#8217;ve gotten better with XHTML and CSS, I&#8217;ve become more interested in figuring out which tag to use for each element on a web page. HTML tags were designed to describe information, not necessarily to dictate how to display information.</p>
<p>We developers should  ask ourselves which tags we should use on our HTML forms. HTML forms are a crucial part of developing a web application, so why not form good habits in marking them up?</p>
<p><span class="technoratitag">Technorati Tags:<br />
<a href="http://www.technorati.com/tag/accessibility" rel="tag" title="Link to Technorati Tag category for accessibility">accessibility</a>, <a href="http://www.technorati.com/tag/usability" rel="tag" title="Link to Technorati Tag category for usability">usability</a>, <a href="http://www.technorati.com/tag/html" rel="tag" title="Link to Technorati Tag category for html">html</a>, <a href="http://www.technorati.com/tag/web" rel="tag" title="Link to Technorati Tag category for web">web</a>, <a href="http://www.technorati.com/tag/xhtml" rel="tag" title="Link to Technorati Tag category for xhtml">xhtml</a>, <a href="http://www.technorati.com/tag/css" rel="tag" title="Link to Technorati Tag category for css">css</a>, <a href="http://www.technorati.com/tag/webdesign" rel="tag" title="Link to Technorati Tag category for webdesign">webdesign</a></span><span id="more-71"></span></p>
<p>As I&#8217;ve gotten better with XHTML and CSS, I&#8217;ve become more interested in figuring out which tag to use for each element on a web page. HTML tags were designed to describe information, not necessarily to dictate how to display information.</p>
<p>We developers should  ask ourselves which tags we should use on our HTML forms. HTML forms are a crucial part of developing a web application, so why not form good habits in marking them up?</p>
<p><span class="technoratitag">Technorati Tags:<br />
<a href="http://www.technorati.com/tag/accessibility" rel="tag" title="Link to Technorati Tag category for accessibility">accessibility</a>, <a href="http://www.technorati.com/tag/usability" rel="tag" title="Link to Technorati Tag category for usability">usability</a>, <a href="http://www.technorati.com/tag/html" rel="tag" title="Link to Technorati Tag category for html">html</a>, <a href="http://www.technorati.com/tag/web" rel="tag" title="Link to Technorati Tag category for web">web</a>, <a href="http://www.technorati.com/tag/xhtml" rel="tag" title="Link to Technorati Tag category for xhtml">xhtml</a>, <a href="http://www.technorati.com/tag/css" rel="tag" title="Link to Technorati Tag category for css">css</a>, <a href="http://www.technorati.com/tag/webdesign" rel="tag" title="Link to Technorati Tag category for webdesign">webdesign</a></span><more><br />
</more></p>
<h3>XHTML is the king of accessibility</h3>
<p>If you go to <a href="http://labs.google.com/accessible/">Google Labs&#8217; new Accessible Search</a>, you&#8217;ll notice that they are considering the adoption of the XHTML Transitional doctype. If you view the HTML source for any of Google&#8217;s other pages, you&#8217;ll see that they don&#8217;t usually declare any kind of doctype or follow any kind of standards-based authoring practice.</p>
<p>I&#8217;ll venture to say that the developers at Google are pretty smart people. If they use XHTML on a product that they label as &#8220;accessible,&#8221; we should probably be using it ourselves if accessibility is a priority.</p>
<h3>How most of us mark up forms</h3>
<p>A simple form that you commonly see on the Web is coded like this:</p>
<pre>&lt;form action="action.cfm" method="post"&gt;
    &lt;p&gt;
        &lt;strong&gt;Your Name&lt;/strong&gt;&lt;br /&gt;
        &lt;input type="text" name="yourName" /&gt;
    &lt;/p&gt;
    &lt;p&gt;
        &lt;strong&gt;Gender&lt;br /&gt;
        &lt;input type="radio" name="gender" value="M" /&gt;
        Male&lt;br /&gt;
        &lt;input type="radio" name="gender" value="F" /&gt;
        Female
    &lt;/p&gt;
    &lt;p&gt;
        &lt;input type="submit" value="Submit" /&gt;
    &lt;/p&gt;
&lt;/form&gt;</pre>
<p>Provided that the rest of your HTML on the page is coded correctly, this will validate as proper XHTML. In this case, XHTML validation is not enough if we want for this form to be accessible. Let&#8217;s nit-pick this small bit of code.</p>
<h3>What&#8217;s wrong with the code?</h3>
<p>Let&#8217;s fix the form so we don&#8217;t exclude blind and low-vision users from being able to use our wonderful web applications.</p>
<h4>Use <span class="code">&lt;p&gt;</span> for paragraphs</h4>
<p>First, is the content marked as &#8220;Your Name&#8221; followed by an input box really a paragraph? Is anything in the form really a paragraph, justifying the use of <span class="code">&lt;p&gt;</span> tags? In this case, we want our fields to be defined at a block level, so let&#8217;s replace the <span class="code">&lt;p&gt;</span>s with <span class="code">&lt;div&gt;</span>s.</p>
<pre>&lt;form action="action.cfm" method="post"&gt;
    <strong>&lt;div&gt;</strong>
        &lt;strong&gt;Your Name&lt;/strong&gt;&lt;br /&gt;
        &lt;input type="text" name="yourName" /&gt;
    <strong>&lt;/div&gt;</strong>
    <strong>&lt;div&gt;</strong>
        &lt;strong&gt;Gender&lt;/strong&gt;&lt;br /&gt;
        &lt;input type="radio" name="gender" value="M" /&gt;
        Male&lt;br /&gt;
        &lt;input type="radio" name="gender" value="F" /&gt;
        Female
    <strong>&lt;/div&gt;</strong>
    <strong>&lt;div&gt;</strong>
        &lt;input type="submit" value="Submit" /&gt;
    <strong>&lt;/div&gt;</strong>
&lt;/form&gt;</pre>
<p>You&#8217;ll notice that you lose spacing between lines provided by the &lt;p&gt; tags. You&#8217;ve heard the experts preach about using CSS to separate content from presentation, so let&#8217;s use it that way by writing this CSS in an included style sheet:</p>
<pre>
form div {
	    margin: 10px 0;
	}</pre>
<h4><span class="code">&lt;label&gt;</span> your form fields</h4>
<p>It&#8217;s <em>very difficult</em> for those using screen readers to be able to decipher which form control the &#8220;Your Name&#8221; text goes with. That&#8217;s why we have the <span class="code">&lt;label&gt;</span> tag, which pairs text with a form field. The <span class="code">&lt;label&gt;</span> links text to the <span class="code">id</span> attribute of a given form field. Let&#8217;s apply this to the HTML.</p>
<pre>&lt;form action="action.cfm" method="post"&gt;
    &lt;div&gt;
        <strong>&lt;label for="yourName"&gt;</strong>Your Name<strong>&lt;/label&gt;</strong>&lt;br /&gt;
        &lt;input <strong>id="yourName"</strong> type="text" name="yourName" /&gt;
    &lt;/div&gt;
    &lt;div&gt;
        &lt;strong&gt;Gender&lt;/strong&gt;&lt;br /&gt;
        &lt;input <strong>id="genderM"</strong> type="radio" name="gender" value="M" /&gt;
        <strong>&lt;label for="genderM"&gt;</strong>Male<strong>&lt;/label&gt;</strong>&lt;br /&gt;
        &lt;input <strong>id="genderF"</strong> type="radio" name="gender" value="F" /&gt;
        <strong>&lt;label for="genderF"&gt;</strong>Female<strong>&lt;/label&gt;</strong>
    &lt;/div&gt;
    &lt;div&gt;
        &lt;input type="submit" value="Submit" /&gt;
    &lt;/div&gt;
&lt;/form&gt;</pre>
<p>You&#8217;ll notice one other key benefit on the radio button fields. If you click on the text that says &#8220;Male&#8221; or &#8220;Female,&#8221; you&#8217;ll notice that it selects the correct radio button, just like your favorite Windows or Mac applications. Also, please notice that those two radio buttons cannot have the same value defined in their <span class="code">id</span> attributes.</p>
<p>This will help tell screen readers and other HTML renderers which textual elements label which form controls.</p>
<p>Note that you can style the <span class="code">&lt;label&gt;</span> tag with CSS, thus making it unnecessary to use <span class="code">&lt;strong&gt;</span> tags to highlight the text.</p>
<h4>Group related fields into <span class="code">&lt;fieldset&gt;</span>s</h4>
<p>We can use more standard HTML tags to <em>further describe</em> this form. The two radio buttons for selection of gender can be grouped together. Use the <span class="code">&lt;fieldset&gt;</span> and <span class="code">&lt;legend&gt;</span> tags to describe that group of controls.</p>
<pre>&lt;form action="action.cfm" method="post"&gt;
    &lt;div&gt;
        &lt;label for="yourName"&gt;Your Name&lt;/label&gt;&lt;br /&gt;
        &lt;input id="yourName" type="text" name="yourName" /&gt;
    &lt;/div&gt;
    <strong>&lt;fieldset&gt;</strong>
        <strong>&lt;legend&gt;</strong>Gender<strong>&lt;/legend&gt;</strong>
        &lt;input id="genderM" type="radio" name="gender" value="M" /&gt;
        &lt;label for="genderM"&gt;Male&lt;/label&gt;&lt;br /&gt;
        &lt;input id="genderF" type="radio" name="gender" value="F" /&gt;
        &lt;label for="genderF"&gt;Female&lt;/label&gt;
    <strong>&lt;/fieldset&gt;</strong>
    &lt;div&gt;
        &lt;input type="submit" value="Submit" /&gt;
    &lt;/div&gt;
&lt;/form&gt;</pre>
<p>If you don&#8217;t like the standard border that your browser of choice puts around the fieldset, you can change its appearance by adjusting the <span class="code">&lt;fieldset&gt;</span>&#8216;s <span class="code">border</span>, <span class="code">padding</span>, and <span class="code">margin</span> CSS properties and the <span class="code">&lt;legend&gt;</span>&#8216;s <span class="code">margin</span> and <span class="code">font-weight</span> properties, among others. You may need to use some negative <span class="code">margin</span>/<span class="code">padding</span> properties to get things looking the way you want them to.</p>
<p>The point is that you&#8217;ve described your content more fully, thus enabling <em>everyone</em> to better understand it. If you don&#8217;t like the way something looks on the screen, you use CSS to change its appearance, not HTML.</p>
<h3>Now you know your HTML</h3>
<p>As you&#8217;ll find out, once you learn these simple techniques, it is easy to adopt them into your practices with little thought going forward.</p>
<p>I am constantly learning how to improve my HTML authoring practices, and I&#8217;ve found that it&#8217;s best to prioritize what I learn. Forms are all over the place on the Web. I hope that by sharing what I&#8217;ve learned about them, you will improve your habits as well!</p>

<!-- start wp-tags-to-technorati 1.01 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.clearcrystalmedia.com/pm/authoring-accessible-web-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

