<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Web Development Blog &#187; Making sense of semantic HTML: an introduction for clients and new Web designers | Web Development Blog &#8211; Heidi Cool &#8211; Cleveland, Ohio</title>
	<atom:link href="http://www.heidicool.com/blog/category/xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.heidicool.com/blog</link>
	<description>web • content • marketing • navigation • seo • social media</description>
	<lastBuildDate>Thu, 17 Feb 2011 21:09:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<!-- podcast_generator="podPress/8.8" -->
		<copyright>&#xA9; </copyright>
		<managingEditor>gravity69@gmail.com ()</managingEditor>
		<webMaster>gravity69@gmail.com()</webMaster>
		<category></category>
		<itunes:keywords></itunes:keywords>
		<itunes:subtitle></itunes:subtitle>
		<itunes:summary>content bull; architecture bull;nbsp;marketing bull;nbsp;seo bull; social media</itunes:summary>
		<itunes:author></itunes:author>
		<itunes:category text="Society &amp; Culture"/>
		<itunes:owner>
			<itunes:name></itunes:name>
			<itunes:email>gravity69@gmail.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://www.heidicool.com/blog/wp-content/plugins/podpress/images/powered_by_podpress_large.jpg" />
		<image>
			<url>http://www.heidicool.com/blog/wp-content/plugins/podpress/images/powered_by_podpress.jpg</url>
			<title>Web Development Blog</title>
			<link>http://www.heidicool.com/blog</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>Making sense of semantic HTML: an introduction for clients and new Web designers</title>
		<link>http://www.heidicool.com/blog/2009/08/11/making-sense-of-semantic-html/</link>
		<comments>http://www.heidicool.com/blog/2009/08/11/making-sense-of-semantic-html/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:57:49 +0000</pubDate>
		<dc:creator>Heidi Cool</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Heidi's Entries]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Search Engine Optimization]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[mark-up]]></category>
		<category><![CDATA[semantic html]]></category>
		<category><![CDATA[standards]]></category>

		<guid isPermaLink="false">http://www.heidicool.com/blog/?p=423</guid>
		<description><![CDATA[The other day, Aaron Rester posed this question on Twitter: Webbies: any advice on explaining semantic HTML to non-webbies?

I wrote back that I usually show them some source code and walk them through things like using h1 and so forth for headers. That is what I usually do. In fact I'd just done that the other day when I was showing someone the changes I would recommend for search engine optimization (SEO). ]]></description>
			<content:encoded><![CDATA[ 
<div class="photocolumn">

<p><a href="http://www.heidicool.com/sandbox/semanticFF35.jpg"><img src="http://www.heidicool.com/sandbox/semanticFF35sm.jpg" width="300" height="167" alt="Semantic Web Page Example Firefox 3.5" /></a> Sample page using semantic mark-up as viewed in Firefox. </p>

<p><a href="http://www.heidicool.com/sandbox/nonsemanticFF35.jpg"><img src="http://www.heidicool.com/sandbox/nonsemanticFF35sm.jpg" width="300" height="169" alt="NonSemantic Web Page Example Firefox 3.5" /></a> Sample page using non-semantic mark-up as viewed in Firefox. Give or take a few pixels these look pretty much the same. </p>

<p><a href="http://www.heidicool.com/sandbox/semanticIE6.jpg"><img src="http://www.heidicool.com/sandbox/semanticIE6sm.jpg" width="300" height="171" alt="Semantic Web Page Example IE 6" /></a> Sample
  page using semantic mark-up as viewed in Internet Explorer 6. As you can see,
  the banner breaks in IE 6 but everything else looks pretty much as expected.
  The page also breaks in <a href="http://www.heidicool.com/sandbox/semanticIE7.jpg">IE
    7</a> and <a href="http://www.heidicool.com/sandbox/semanticIE8.jpg">IE 8</a> though
    the IE 8 version looks different. I've included these samples as a reminder
    to always check sites in multiple browsers.</p>

<p><a href="http://www.heidicool.com/sandbox/nonsemanticIE6.jpg"><img src="http://www.heidicool.com/sandbox/nonsemanticIE6sm.jpg" width="300" height="165" alt="NonSemantic Web Page Example IE 6" /></a> Sample page using non-semantic mark-up as viewed in Internet Explorer 6. Again it looks almost the same at the semantic version, even breaking in the same manner.</p>

 </div>

<p>The other day, <a href="http://twitter.com/aaronrester">Aaron Rester</a> posed this question on Twitter: <q>Webbies: any advice on explaining semantic HTML to non-webbies?</q></p>

<p>I wrote back that I usually show them some source code and walk them through
  things like using h1 and so forth for headers. That is what I usually do. In
  fact I'd just done that the other day when I was showing someone the changes
  I would recommend for <a href="http://www.heidicool.com/blog/2007/07/13/an-introduction-to-search-engine-optimization-seo-part-1/">search
  engine optimization</a> (SEO).  </p>

<p>But the question made me wonder if my explanations were adequate. If someone
  doesn't know anything about HTML or other mark-up languages, will such an explanation
  make sense? Or is there a better way to explain the differences between structural
  and presentational mark-up to clients and new Web designers? </p>

<h5>Why do clients and other non-webbies need to know about semantic HTML? </h5>

<p>Typically this topic comes up most often when one is discussing issues related
  to search optimization and accessibility. If a client needs to enhance their
  site for SEO, I may be recommending changes to the code that they won't even
  see when looking at the page in their browser. Understandably they will want
  to know why they should pay me to do things to their site that they won't notice.
  The changes we make may not be visually apparent, but they will convey additional
  information to Web browsers and search engines that can aid accessibility,
  usability and searchability. </p>
 

 
 
<h5>What is semantic HTML?</h5>

<p><a href="http://www.merriam-webster.com/dictionary/semantics">Semantics</a> is
  the study of meaning. <cite><a href="http://www.merriam-webster.com/dictionary/semantics">Merriam-Webster's
  Online Dictionary</a></cite> provides us with a definition that relates closely
  to how the term is applied to HTML &quot;<a href="http://www.merriam-webster.com/dictionary/semantics">3
  a : the meaning or relationship of meanings of a sign or set of signs; <em>especially</em> :
  connotative meaning</a>.&quot; HTML uses elements that convey structural meaning
  to Web browsers and other<a href="http://en.wikipedia.org/wiki/User_agent"> user
  agents</a> such as search engine crawlers. </p>

<p>Writing a page in semantic HTML simply
  means that you are applying the appropriate structural elements to the various
  bits of content on a page. Huh? Code elements act like labels that tell the
  Web browser what each section of content is.
  HTML gives us structural elements to indicate headers, paragraphs, lists, tables
  and so forth. If I want to tell the browser to start a new paragraph, I'll
  type &lt;p&gt;. If I want to start a new subhead, I'll type &lt;h5&gt;.</p>

<h5>Then isn't all HTML semantic?</h5>

<p>You would think so, but no. Web browsers can be both fussy and forgiving.
  I can code the same content in multiple ways that will each look very similar
  when viewed, but will actually convey differing amounts of information to user
  agents. </p>

<p>Instead of using an &lt;h5&gt; I could use &lt;p&gt;&lt;strong&gt;in front
  of my subhead and make it look the same as it would using &lt;h5&gt;. Such
  usage would be considered presentational mark-up. It can affect how the header
  looks, but it is not semantically correct because it doesn't let user agents
  know that this is a subhead. If a Web designer applies the incorrect elements
  to page content, the site may look perfectly acceptable. But it is not passing
  on vital information that user agents may need to:</p>

<ul>
<li>Help a visually impaired
  visitor navigate the page using <a href="http://en.wikipedia.org/wiki/Screen_reader">screen
  reading software</a>.</li>
<li>Tell Google and other search engines what topics are the most important ones
  on the page.</li>
<li>Show that you are citing a reference document such as a book.</li>
<li>Indicate that you are presenting computer code, etc. </li>
</ul>
 
<h5>Same content, different mark-up</h5>

<div class="photocolumn">
<p><a href="http://www.heidicool.com/sandbox/semanticlynx.jpg"><img src="http://www.heidicool.com/sandbox/semanticlynxsm.jpg" width="300" height="217" alt="Semantic Web Page Example Lynx" /></a> Sample page using semantic mark-up as viewed in the text-based browser, Lynx. Note how the page retains a sense of order, similar to an outline. This is more apparent when you <a href="http://www.heidicool.com/sandbox/semanticlynx.jpg">view
    the enlarged version of the page</a>.</p>

<p><a href="http://www.heidicool.com/sandbox/nonsemanticlynx.jpg"><img src="http://www.heidicool.com/sandbox/nonsemanticlynxsm.jpg" width="300" height="235" alt="NonSemantic Web Page Example Lynx" /></a> Sample page using non-semantic mark-up as viewed in the text-based browser, Lynx. When you <a href="http://www.heidicool.com/sandbox/nonsemanticlynx.jpg">view
    the enlarged version of the page</a> you really see the difference. This version seems more like a plain text file without any obvious formatting. </p>

</div>

<p>To illustrate this point I've created 2 very simple Web pages, one uses <a href="http://www.heidicool.com/sandbox/semantic.html">semantic
  mark-up</a> and one using <a href="http://www.heidicool.com/sandbox/nonsemantic.html">non-semantic
  mark-up</a>. Basically the non-semantic version
  uses &lt;p&gt; for just about everything. When you view the pages through
  a regular browser you'll see that the semantic and non-semantic versions look
  pretty similar. They both look normal in Firefox, Safari and Opera, and they
  both break in various versions of Internet Explorer. You don't
  see the difference visually until you look at the pages in the <a href="http://en.wikipedia.org/wiki/Lynx_(web_browser)">text
  browser, Lynx</a>. </p>

<p>When viewing the semantic page on Lynx, we can see that there is order to
  the page; it looks a bit like an outline. The menu looks like a menu and the
  headers standout to provide an introduction to the other text. </p>

<h5>HTML elements in action, offering added information to user agents</h5>

<p>Text readers for the visually impaired and search engine spiders are getting
  even more information than we can see in the <a href="http://www.heidicool.com/sandbox/semanticlynx.jpg">Lynx
  semantic html example</a>. They
  know that each menu link should be distinguished from the next. The use of
  an unordered list for the menu tells user agents to separate these links in
  a way that use of &lt;p&gt; does
  not, and allows users of screen readers to jump through or skip these elements
  to proceed to the main text. In the <a href="http://www.heidicool.com/sandbox/nonsemanticlynx.jpg">non-semantic version</a> this is not clear,
  a text reader may speak all of those links together, making it more difficult
  for the user to navigate. </p>

<p>These user agents can also tell that the first header is more important than
  the second because it has been coded as an &lt;h3&gt; while the second header
  is an &lt;h4&gt;. Headers are ranked in order of importance from 1-6. Here
  we're using an &lt;h1&gt; for the site name, the most important header on the
  page. Search engine crawlers will see words in an &lt;h1&gt; as being more
  descriptive of the page as a whole. This is useful for search engine optimization,
  because we can include our keywords and phrases in our various headers to let
  the search engines know that core topics we are covering on the page. Thus
  on this page you'll notice that I've used the phrase &quot;semantic HTML&quot; in
  both the text and subheads (which in this case are &lt;h5&gt;'s.) That said
  I've not used it in every subhead because having these headers
  make sense to you, the reader, is still more important than SEO. People come
  first, then robots. </p>

<p>In this  example I've focused on just a few a few of the many HTML
  elements that are important to semantic mark-up, but hopefully these will give
  you a clearer sense of how such usage can help SEO and accessibility. Other
  elements such as <a href="http://www.w3.org/TR/html401/struct/global.html#edef-ADDRESS">address</a>, <a href="http://www.w3.org/TR/html401/struct/text.html#edef-CITE">cite</a> and <a href="http://www.w3.org/TR/html401/struct/text.html#edef-BLOCKQUOTE">blockquote</a> can add additional meaning to
  a page's code. You can learn more about other elements and related issues in
  the reference links below.</p>

<h5>Semantic mark-up, validation and content</h5>

<p> It's always a good practice to <a href="http://validator.w3.org">validate
    your code</a> to check for errors and potential problems, but site validation
    doesn't guarantee that you've used the best mark-up for the site. While the
    validator can make sure you've used allowed elements, it has no way of knowing
    if you've them in the most appropriate manner. Both the semantic and non-semantic
    page samples used in this post were produced using valid W3C <a href="http://www.heidicool.com/blog/2007/08/28/an-introduction-to-web-standards/">standards
    compliant</a>    XHTML and CSS. One is clearly better formed than the other, but both also
    break in Internet Explorer. </p>

<p>Thus it's also important to<a href="http://www.heidicool.com/blog/2008/07/14/testing-web-sites-with-multiple-browser-versions/"> check
    sites in multiple browsers</a>  and to simply think carefully about how visitors will read the site. If my
  samples were for real sites, I'd fix the IE problem, but I used it here to
  remind us that using valid semantic code is just the beginning. There will
  always be additional details we must consider.</p>

<p>It's also worth noting that, when it comes to SEO, a semantically well-formed
  site is not a substitute for good content. Search engines such as Google are
  designed to help users, like you and me, find the most relevant pages for the
  information we seek. With that goal in mind they have to accommodate a wide
  variety of coding differences. If your competitor has great content and plenty
  of good inbound links, while yours does not, then his/her site will still win
  out, even if the code is atrocious. But if you can produce great content and
  present it in the appropriate format you will be off to a good start.</p>

<h5>Semantic HTML Resources</h5>
 
 <ul>
<li><a href="http://tantek.com/presentations/2005/03/elementsofxhtml/">The Elements
    of Meaningful XHTML (presentation showing examples)</a></li>
<li><a href="http://sourceforge.net/projects/fangs/and Accessibility">Fangs Screen Reader Emulator</a></li>
<li><a href="http://www.joedolson.com/articles/2008/04/guide-to-semantic-html/">Guide to Semantic Use of HTML Elements</a></li><li><a href="http://www.dhs.state.il.us/IITAA/IITAAWebImplementationGuidelines.html">Illinois Information Technology Accessibility Act Implementation Guidelines for Web-Based Information and Applications 1.0</a></li>

<li><a href="http://www.youtube.com/user/GoogleWebmasterHelp#play/uploads/100/GIn5qJKU8VM">More than one H1 on a page: good or bad? (Video by Google's Matt Cutts)</a></li>
<li><a href="http://www.alistapart.com/articles/semanticsinhtml5">Semantics in HTML 5</a></li>
<li><a href="http://www.w3.org/2003/12/semantic-extractor.html">W3C Semantic Data Extractor</a></li>
<li><a href="http://www.w3.org/TR/WCAG-TECHS/G115.html">W3C: G115: Using semantic elements to mark up structure</a></li>
 
  </ul>]]></content:encoded>
			<wfw:commentRss>http://www.heidicool.com/blog/2009/08/11/making-sense-of-semantic-html/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Should you or should you not have links open in a new window/tab?</title>
		<link>http://www.heidicool.com/blog/2008/10/28/should-you-or-should-you-not-have-links-open-in-a-new-windowtab/</link>
		<comments>http://www.heidicool.com/blog/2008/10/28/should-you-or-should-you-not-have-links-open-in-a-new-windowtab/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 09:15:10 +0000</pubDate>
		<dc:creator>Heidi Cool</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Heidi's Entries]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[newwindow]]></category>

		<guid isPermaLink="false">http://www.heidicool.com/blog/?p=156</guid>
		<description><![CDATA[Last week's entry on outbound links spawned a lot of discussion, including the question of whether one should have outbound links open in a new window (or tab depending on the user's browser and preferences). Although many others have already written about this topic, it comes up often enough that I think it is worth discussing. Disclaimer: links that open in a new window or tab—when that wasn't my choice—are a pet peeve of mine, but I will attempt to explore the topic objectively.
]]></description>
			<content:encoded><![CDATA[<p class="photoright"><a href="http://blog.case.edu/webdev/2008/10/27/backbutton.jpg"><img alt="Screen capture of backbutton dropdown window" src="http://blog.case.edu/webdev/2008/10/27/backbuttonsm.jpg" width="240" height="262" /></a><br />
Firefox's back button will let you go back<br />
several steps. <a href="http://blog.case.edu/webdev/2008/10/27/backbutton.jpg">View enlarged image</a>.</p>


<p>Last week's <a href="http://www.heidicool.com/blog/2008/10/21/afraid-of-outbound-links-dont-be/">entry
on outbound links</a> spawned a lot of discussion, including the question of
whether one should have outbound links open in a new window (or tab depending
on the user's browser and preferences). Although many others have already written
about this topic, it comes up often enough that I think it is worth discussing. <em>Disclaimer:
links that open in a new window or tab&mdash;when that wasn't my choice&mdash;are
a pet peeve of mine, but I will attempt to explore the topic objectively.</em></p>

<h5>What is the intended purpose of having links open in a new window or tab?</h5>
<p>Those who recommend having links open in a new window do so with the intention
of making it easier for users to return to the original site. Anyone who surfs
the Internet knows that it is easy to get lost down a rabbit hole of links.
For example, if I provide you with a link to <a href="http://chuckpalahniuk.net">Chuck
Palahniuk's Web site</a>, you might:</p>
<ul>
<li>follow the link</li>
<li>peruse the section on <a href="http://chuckpalahniuk.net/interviews/authors">author interviews</a></li>
<li>read Dennis Widmyer's latest <a href="http://chuckpalahniuk.net/interviews/authors/craig-clevenger2">interview
with Craig Clevenger</a></li>
<li>then decide to add <a href="http://www.amazon.com/Contortionists-Handbook-Craig-Clevenger/dp/1931561486">The
Contortionist's Handbook</a> to your Amazon shopping cart.</li>
</ul>

<p>By now, the theory goes, you will have either forgotten where you were before
or forgotten how to get back. If I'd set the <a href="http://chuckpalahniuk.net" target="_blank">Chuck
Palahniuk link to open in a new window/tab</a> (this is the only link on
the page that opens a new window), you could just go back to your original
window/tab and you'd be back where you started. Of course if the link opens
in the same window, and you are using a current browser such as Firefox,
you can simply click the down arrow next to your back button to navigate
back through the series of links you just followed. </p>

<h5>So which is better? Is it easier for a user to go back to a different window
or to just use the back button? </h5>
<p>I've always found it easier to use the back button. With one click I can go
back and read another interview or I can choose to go all the way back to the
original blog. To me that seems far easier than wading through a sea of windows,
or looking at an array of tabs to find the one you want. But everyone is different.
In researching this article I discovered a <a href="http://getsatisfaction.com/pownce/topics/external_links_in_a_new_window">Get
Satisfaction page in which a user actually requested that links on Pownce open
in a new window</a>. Two of the responders agreed that they would prefer new
windows, while two others (including Pownce/Digg designer Daniel Burka) disagreed.
I saw these differing opinions in many places.</p>
<p>Where does that leave us? Preferences vary, so unless you survey
the users of your particular site it may be difficult to determine if your
audience likes or dislikes it when a link opens in a new window. Pownce was
able to solve the problem by giving users a setting that lets them pick which
behavior is the default while they're on Pownce. But that's not an option for
most sites and blogs. With
that in mind, I think it is most appropriate to leave it in control of the
user. If a user wants to open a link in a new window he can do so by right-clicking
(Windows) or ctrl-clicking (Mac) the link in question. I often open links in
a new tab if I know that I'll want to flip back and forth between them. I just
don't want them opening up new tabs spontaneously.</p>
<h5>Standards and accessibility issues related to opening links in new windows</h5>
<p>If you're in the pro new window camp, I've probably not yet changed your mind.
But there are more issues to consider. </p>
<dl>
<dt>W3C HTML and XHTML Recommendations</dt>
<dd>The traditional way to have a link open in a new window is to include <span class="cran">target=&quot;_blank&quot;</span> in
the link. The <a href="http://www.w3.org/TR/REC-html40/present/frames.html#h-16.3.1">target
attribute</a> is <a href="http://www.w3.org/MarkUp/2004/xhtml-faq#target">not
included in the recommendations for HTML and XHTML strict</a>, therefore sites
using target with a strict doctype won't validate. From
what I've gathered target is not included because not all browsers support
the attribute, particularly when it comes to browsers running on mobile devices.
(This may change in XHTML 2.0 as the attribute may serve new needs as mobile
browsers evolve. A valid alternative is to use <a href="http://www.sitepoint.com/article/standards-compliant-world/">javascript</a>. </dd>

<dt>W3C Web Content Accessibility Guidelines 2.0 (WCAG)</dt>
<dd>According to the <a href="http://www.w3.org/TR/2008/WD-UNDERSTANDING-WCAG20-20080430/consistent-behavior-no-extreme-changes-context.html">WCAG
Success Criterion 3.2.5</a>, &quot;<em>Individuals
who are unable to detect changes of context or may not realize that the context
has changed are likely to become disoriented while navigating a site.
For example: individuals who are blind or have low vision may have difficulty
knowing when a visual context change has occurred, such as a new window popping
up. In this case, warning users of context changes in advance minimizes confusion
when the user discovers that the back button no longer behaves as expected.</em>&quot; To
avoid this confusion they recommend that users should be notified if a link
will open in a new window and if possible be given the choice to not have it
open in a new window. </dd>

</dl>

<h5>Kant's Categorical Imperative: What if everyone did it?</h5>
<p>While writing this I kept having a vision of wandering the Internet in a world
where every external link opened a new window or tab. In this vision it was
only a matter of minutes before there were so many tabs open in my browser
that I had to use the left and right arrows to scroll through them. Worse yet,
instead of tabs windows began spawning as quickly as <a href="http://en.wikipedia.org/wiki/Tribble">Tribbles</a> and
suddenly my desktop was impossible to navigate. This made
me think of Kant. In his first formulation of the <a href="http://plato.stanford.edu/entries/kant-moral/#CatHypImp">Categorical
Imperative</a> he states that one should &quot;act only in accordance with that
maxim through which you can at the same time will that it become a universal
law.&quot; While this idea was meant to deal with issues of morality, it's easy
to see how it could be applied to lesser situations such as links opening
in new windows. If links always opened in a new windows it would pose significant
usability challenges.</p>
<p>Naturally most sites don't open everything in a new window or tab. If they
did we'd all be swimming in windows. Instead, most site designers choose to
open new windows only in particular circumstances. Some designers do this only
for external sites while others reserve the technique for opening up .pdf files.
While I'd still prefer that links open in the same window, giving me the choice
of whether or not to open them in a new tab, I understand that many may disagree.
Most people have committed one way or another with few remaining undecided.
But, whatever your preference may be, I hope this discussion will help the
next time you're debating where a particular link should open. </p>


<h5>Learn more about opening links in pop-up windows or tabs</h5>
<ul>
<li><a href="http://www.alistapart.com/articles/popuplinks">Accessible Pop-up Links</a></li>
<li><a href="http://www.7nights.com/dkrprod/gwt_ten.php">D. Keith Robinson's Gorilla Web Tips:  Launching New and Pop-up Windows</a></li>
<li><a href="http://lois.co.uk/web-design/articles/new-windows.asp">Don't let your web site fall out of the window: opening new browser windows</a></li>
<li><a href="http://www.robertnyman.com/2006/02/13/how-evil-is-the-target-attribute/">How evil is the target attribute?</a> </li>
<li><a href="http://www.sitepoint.com/article/standards-compliant-world/">New-Window Links in a Standards-Compliant World</a></li>
<li><a href="http://justaddwater.dk/2007/06/13/open-new-window-still-has-usability-issues/">Open New Window Still Has Usability Issues</a></li>
<li><a href="http://www.456bereastreet.com/archive/200603/the_target_attribute_and_opening_new_windows/">The target attribute and opening new windows</a></li>
<li><a href="http://www.useit.com/alertbox/9605.html">Top Ten Mistakes in Web Design</a></li>

<li><a href="http://www.w3.org/TR/2008/WD-WCAG20-TECHS-20080430/H83.html">WCAG 2.0: H83: Using the target attribute to open a new window on user request and indicating this in link text</a></li>
<li><a href="http://www.w3.org/TR/2008/WD-WCAG20-TECHS-20080430/SCR24.html">WCAG 2.0: SCR24: Using progressive enhancement to open new windows on user request</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.heidicool.com/blog/2008/10/28/should-you-or-should-you-not-have-links-open-in-a-new-windowtab/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>An Introduction to Web Standards</title>
		<link>http://www.heidicool.com/blog/2007/08/28/an-introduction-to-web-standards/</link>
		<comments>http://www.heidicool.com/blog/2007/08/28/an-introduction-to-web-standards/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 02:02:53 +0000</pubDate>
		<dc:creator>Heidi Cool</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Heidi's Entries]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[Recommendations]]></category>
		<category><![CDATA[Web Standards]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[webstandards]]></category>

		<guid isPermaLink="false">http://www.heidicool.com/blog/?p=108</guid>
		<description><![CDATA[I've recently come to the conclusion that a great number of Web developers either don't know about Web standards, or simply don't care. For those who aren't already aware of the standards I'll offer a brief introduction along with resources for additional information. For those who don't care, or who are anti-standards, I'll offer some examples as to why I feel they're important.
]]></description>
			<content:encoded><![CDATA[<p class="photoright"> <img alt="standards.jpg" src="http://blog.case.edu/webdev/2007/08/28/standards.jpg" width="180" height="271" /><br /> Standards are simply<br />the rules of the road for the Web
</p>

<p>I've recently come to the conclusion that a great number of Web developers either don't know about Web standards, or simply don't care. For those who aren't already aware of the standards I'll offer a brief introduction along with resources for additional information. For those who don't care, or who are anti-standards, I'll offer some examples as to why I feel they're important. For those of you already in the know, feel free to add your own advice, examples or pet peeves in the comments section. </p>
<h5>The reason for  Web Standards</h5>
<p>According to the <a href="http://www.webstandards.org/about/mission/">Web Standards Project Mission</a>, <em>"<a href="http://www.w3.org/">The World Wide Web Consortium</a> (W3C), along with other groups and standards bodies, has established technologies for creating and interpreting web-based content. These technologies, which we call "web standards," are carefully designed to deliver the greatest benefits to the greatest number of web users while ensuring the long-term viability of any document published on the Web."</em></p>
<p>Think of these as the rules of the road. When you are driving a car in Ohio you know you have to drive on the right side of the road, stop at stop signs, not enter an intersection unless there is room for your vehicle on the other side, yield to pedestrians, etc. If you are driving in Hong Kong you know to drive on the left and follow the various rules relevant to that jurisdiction. Following these rules makes the driving experience more pleasant for everyone; whereas ignoring these rules will, at best, annoy other drivers and, at worst, cause a traffic related fatality. </p>
<p>In most cases, a non-standard Web site isn't likely to cause fatalities, but anything is in the realm of possibility. Errors in formatting can cause content to render incorrectly. Imagine if the word "Never" wasn't visible to users reading the sentence "Never pour gasoline on an open fire." A reader unfamiliar with the combustible nature of rising gasoline vapors could easily immolate himself. That's an extreme example, but whether your site is about fire prevention or your book club, you probably don't intend to misinform or confuse your readers. </p>
<p>Following Web standards lets you increase the odds* that your site will be properly rendered by most browsers and user agents and that your information will be more accessible to users and search engines.</p>
<p><em>* I say &quot;increase the odds&quot; rather than &quot;guarantee&quot; because there are still differences between the way browsers interpret the standards.</em> </p>
<h5>What are the Web Standards?</h5>
<p>Different standards are available for different purposes, but for the most part standards will define the type of coding that you should use when creating a Web page or stylesheet, or the procedures or policies you should consider when creating the site. Thus if you are building a site in HTML using Cascading Style Sheets, and want to ensure your site is Section 508 compliant for accessibility, you might follow the standards for <a href="http://www.w3.org/TR/html401/">HTML 4.01</a>, <a href="http://www.w3.org/TR/REC-CSS2/">CSS 2</a>, and <a href="www.access-board.gov/508.htm ">Section 508</a>.</p>

<p>For example, HTML standards specify using &lt;p&gt; to start a paragraph, &lt;h1&gt; for a primary header and &lt;em&gt; for emphasis. CSS standards specify things like color and position, so that a purple header could be defined in a stylesheet by: h1 {color:#571963}. Using a descriptive word or phrase in the alt tag of images conforms to accessibility standards (both 508 and WAI). </p>
<p>One of the most overlooked HTML standards seems to be the inclusion of the correct <a href="http://www.w3.org/QA/2002/04/valid-dtd-list.html#DTD">document type</a>. For example, if you are building a site using XHTML 1.0 (as is true of many Case sites) you would include this document type: </p>
<pre>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;  <br />&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</pre>
<p>This small piece of code tells browsers and user agents what version of HTML you are using, so they don't have to guess when rendering the site. This is like telling <a href="http://babelfish.altavista.com/translate.dyn">Babel Fish</a> whether you want to translate a phrase from Dutch to English or from German to English. If you don't give it the right information you may not get the right result. I'm amazed by the number of sites don't include this basic information.</p>
<p>Another important standard for HTML 4.01 and XHTML 1.0 is the separation of format and presentation. &lt;h3&gt;Headline&lt;/h3&gt; is an example of format, indicating that something is a header. Styling the &lt;h3&gt; with CSS, either in the document or in an external stylesheet, to be a certain size, color and font would be an example of presentation. In the old days of the Web this was done within the HTML using the now deprecated &lt;font&gt; tag. In the past one might have typed &lt;h3&gt;&lt;font color=&quot;33ff33&quot; size=&quot;5&quot;&gt;Headline&lt;font&gt;&lt;/h3&gt;. This not only filled up your page with a lot of extra code, but it also meant that if you decided later to make all of your &lt;h3&gt;'s a different color you would have to go and change all of the font codes one by one. When using a style sheet you can define how your &lt;h3&gt;'s will look in one place. To change the color you just make the one change in the stylesheet and you are ready to go. </p>
<p>Separation of format and presentation isn't a particularly new idea, but adoption has spread slowly. CSS 1 was first introduced in 1996 and the CSS 2 recommendation has been around since 1998. While many sites use CSS, it is still not uncommon to stumble upon current sites that are still using older codes such as &lt;font&gt;. </p>

<h5>Why this has been on my mind</h5>
<p>A few weeks ago a friend sent me a link to a pretty cool looking site for an online magazine. Alas the site wasn't standards compliant and therefore didn't work properly. This particular site was Flash-based with dimensions too big to fit my screen. The page had no scroll bars so I couldn't get to the menus to navigate through the site. I could see the whole site on my Mac, but not on my Dell, and I'm pretty sure I'm not the only one to have had that problem. Since I couldn't navigate the site, they might as well have posted a page that said "Do Not Enter. We don't care about your business." If they had built a compliant site they would have ensured greater accessibility to users and not had this problem. </p>
<p>I've found a number of other non-compliant sites while working to compile a list of local Web developers. Departments without Web staff often look to outsource their Web projects and turn to me for referrals. Thus I'm trying to put together a list of local (to support the regional economy) developers  who I can trust to build compliant sites that follow the Case design scheme, maintain a logical navigational structure and support the goals of the client. This has not been an easy task. </p>
<p>The problem is that almost anyone can learn to build a Web site, <a href="http://dennisplucinik.com/blog/2007/08/23/pfff-i-could-make-a-website-big-deal-2/">but only a few can do it well</a>. There are a lot of firms out there, but the quality of work varies dramatically, and only a handful build standards compliant sites. Sites with major compliance errors don't end up on my list. This isn't just because I'm persnickety. If a site fails <a href="http://validator.w3.org/">validation</a> because of a few stray &amp;'s or they've forgotten to close a few &lt;p&gt;'s I'm not worried. Such errors are easily corrected and don't disturb the overall functionality of the site. But if a site uses &lt;font&gt; tags, doesn't include a doctype, leaves alt tags blank on all of their images, etc., then I will conclude that its designers are not professional and will not be able to offer the client the advice or service necessary to implement a successful site. </p>

<h5>Conclusion and Disclaimer</h5>
<p>If you've ever built a Web site, you've followed at least a few of the standards. The site wouldn't work if you hadn't. For example if you left out the &lt;body&gt; tag your page wouldn't render. Since we're all following some of the standards anyway, I would just encourage everyone to learn and apply more of them. As you become more familiar with them you'll find that your sites become both easier to use and easier to build. To learn more about Web standards visit <a href="http://www.webstandards.org/">The Web Standards Project</a> and the resources below.</p>
<p>Standards compliance is an ongoing goal of mine, but I'm only human. Not every site I've built is standards compliant, and the errors become more egregious the older the pages may be. Since I readily acknowledge this you don't need to go hunt them down, they are out there, and I know it!</p>

<h5>Web Standards Resources</h5>
<ul>
<li><a href="http://www.7nights.com/asterisk/archives05/web-standards/">Asterisk Web Standards Archive</a></li>
<li><a href="http://proquest.safaribooksonline.com/0321385551">Designing With Web Standards</a>, Second Edition
by Jeffrey Zeldman</li>
<li><a href="http://www.businessweek.com/innovate/content/aug2007/id2007086_670396.htm">Jeffrey Zeldman: King of Web Standards</a> (Business Week)</li>
<li><a href="http://www.section508.gov/">Section 508: The Road to Accessibility</a></li>
<li><a href="http://webstandardsgroup.org/">The Web Standards Group</a></li>
<li><a href="http://www.webstandards.org/">The Web Standards Project</a></li>
<li><a href="http://www.w3.org/TR/REC-CSS2/">W3C Cascading Style Sheets, level 2 CSS2 Specification</a></li>
<li><a href="http://www.w3.org/TR/REC-CSS1">W3C Cascading Style Sheets, level 1</a></li>
<li><a href="http://www.w3.org/TR/REC-html32">W3C HTML 3.2 Reference Specification</a></li>
<li><a href="http://www.w3.org/TR/html401/">W3C HTML 4.01 Specification</a></li>
<li><a href="http://www.w3.org/TR/xhtml1/">W3C XHTML&trade; 1.0 The Extensible HyperText Markup Language (Second Edition)</a></li>
<li><a href="http://www.w3.org/TR/">W3C Technical Reports and Publications</a></li>
<li><a href="http://www.w3.org/WAI/">Web Accessibility Initiative (WAI)</a></li>
<li><a href="http://www.w3.org/">World Wide Web Consortium (W3C)</a></li>



</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.heidicool.com/blog/2007/08/28/an-introduction-to-web-standards/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Embedding Flash Objects for Internet Explorer</title>
		<link>http://www.heidicool.com/blog/2007/04/19/embedding-flash-objects-for-internet-explorer/</link>
		<comments>http://www.heidicool.com/blog/2007/04/19/embedding-flash-objects-for-internet-explorer/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 00:02:43 +0000</pubDate>
		<dc:creator>Heidi Cool</dc:creator>
				<category><![CDATA[Heidi's Entries]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[XHTML]]></category>
		<category><![CDATA[activex]]></category>

		<guid isPermaLink="false">http://www.heidicool.com/blog/?p=91</guid>
		<description><![CDATA[Due to a lawsuit between Microsoft and Eolas, Internet Explorer no longer processes <object>, <embed> or <applet> in the way that it used to. Now instead of using <object> to embed a Flash file, you need to use javascript in order for Internet Explorer users to load the content automatically.
]]></description>
			<content:encoded><![CDATA[<p><strong>Since this was written, SWFobject2.0 has been released. Read "<a href="http://www.heidicool.com/blog/2008/04/20/embedding-youtube-videos-the-standards-compliant-waysfwobject-20/">Embedding YouTube Videos the Standards Compliant Way—SFWobject 2.0</a>" to learn more about using the updated version for embedding videos and other .swf files.</strong></p>
<div id="flashcontent">
<img src="http://blog.case.edu/webdev/2007/04/19/active.jpg" width="180" height="300" alt="animation" />
</div>

<script type="text/javascript">
// <![CDATA[

var so = new SWFObject("http://blog.case.edu/webdev/2007/04/19/active.swf", "sotester", "180", "300", "7", "#93a530");
so.addVariable("flashVarText", "this is passed in via FlashVars for example only");
so.addParam("scale", "noscale");
so.write("flashcontent");

// ]]&gt;
</script>


<p>Last week a colleague wrote to ask why she had to push a button to see her Web site and why it was loading so slowly. I took a look at the site, and had my usual reaction. "It looks fine in Firefox, let me check Internet Explorer."</p>
<p> When I checked in Explorer I saw just what she meant. Her site uses Flash, and due to a <a href="http://www.devx.com/webdev/Article/30154">lawsuit between Microsoft and Eolas</a>, Internet Explorer no longer processes &lt;object&gt;, &lt;embed&gt; or &lt;applet&gt; in the way that it used to. Now instead of using &lt;object&gt; to embed a Flash file, you need to use javascript in order for Internet Explorer users to load the content automatically. While this isn't a particularly new problem&mdash;it's been around for about a year&mdash;it's the kind of thing you might not notice unless you use Internet Explorer on a regular basis. </p>

<p>If you are currently using the <a href="http://www.heidicool.com/blog/2006/07/31/valid-code-for-using-flash-animations-on-the-web/">old method to embed flash files</a>, and you have Internet Explorer users who visit your site, you may want to consider using one of the new javascript methods.  I've experimented with a few and found the <a href="http://blog.deconcept.com/swfobject/">SWFObject script</a> to be the easiest to implement. If you have a better method, please share it in the comments section below.
</p>
<h5>Using SWFObject to embed Adobe Flash Content</h5>
<p>While all the instructions and files you need are available on the <a href="http://blog.deconcept.com/swfobject/">SWFObject Web site</a>, I thought it might be useful to give a quick overview of the process here.</p>

<ol>
<li><a href="http://blog.deconcept.com/swfobject/#download">Download SWFObject 1.5</a>, extract the files from the zip file and place swobject.js in your Web site directory.</li>
<li>In Dreamweaver or your preferred editor, open the html file that includes your Flash content.</li>
<li>Add &lt;script type=&quot;text/javascript&quot; src=&quot;swfobject.js&quot;&gt;&lt;/script&gt; within the head tags of your file, making sure to specify the correct path to swfobject.js</li>
<li>Replace the code you are currently using to embed your Flash file with <br /><br /><span class="code">
&lt;div id=&quot;flashcontent&quot;&gt;<br />
&lt;img src=&quot;http://blog.case.edu/webdev/2007/04/19/active.jpg&quot; width=&quot;180&quot; height=&quot;300&quot; alt=&quot;animation&quot; /&gt;
&lt;/div&gt;<br /><br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
// &lt;![CDATA[<br />
<br />
var so = new SWFObject(&quot;http://blog.case.edu/webdev/2007/04/19/active.swf&quot;, &quot;sotester&quot;, &quot;180&quot;, &quot;300&quot;, &quot;7&quot;, &quot;#93a530&quot;);<br />
so.addVariable(&quot;flashVarText&quot;, &quot;this is passed in via FlashVars for example only&quot;);<br />
so.addParam(&quot;scale&quot;, &quot;noscale&quot;);<br />
so.write(&quot;flashcontent&quot;);<br />
<br />
// ]]&gt;<br />
&lt;/script&gt;<br /></span>
<br /><br />
The newly created &lt;div&gt; is used to hold the content that will be shown to users who don't have Flash enabled in their browser, while the script information tells the browser what file to get and what parameters to implement.</li>
<li>Edit this content to specify the correct paths to your image and swf files, width and height of the elements, version of Flash you are using, etc. For illustrative purposes I've kept the above example fairly simple. It's the same code I'm using to embed the animation on this page. For your purposes you may want to include <a href="http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_12701">additional parameters</a>. </li>
<li>Upload your files and test in Internet Explorer and your usual browser.</li>
</ol>

<p>That's pretty much it. To learn more about the process or to customize it for your particular needs visit the <a href="http://blog.deconcept.com/swfobject/">SWFObject Web site</a>.</p>

<h5>Activex Resources</h5>
<ul>
<li><a href="http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp">Activating ActiveX Controls</a> (Microsoft Developers Network)</li>
<li><a href="http://www.adobe.com/devnet/activecontent/">Active Content Developer Center</a> (Adobe)</li>
<li><a href="http://www.adobe.com/devnet/activecontent/faq.html">Active Content FAQs</a> (Adobe)</li>
<li><a href="http://www.adobe.com/devnet/activecontent/articles/before_after.html">Active Content Update: Before and after examples of the JavaScript solution</a> (Adobe)</li>

<li><a href="http://www.adobe.com/devnet/activecontent/articles/devletter.html">Active Content Update: Preparing your website to handle the Microsoft changes to Internet Explorer</a>(Adobe) </li>
<li><a href="http://msdn.microsoft.com/workshop/author/dhtml/overview/activating_activex.asp#loading">Loading Interactive Controls Externally</a> (Microsoft Developers Network)</li>
<li><a href="http://blog.deconcept.com/swfobject/">SWFObject: Javascript Flash Player detection and embed script</a>  </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.heidicool.com/blog/2007/04/19/embedding-flash-objects-for-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Valid code for using Flash animations on the Web</title>
		<link>http://www.heidicool.com/blog/2006/07/31/valid-code-for-using-flash-animations-on-the-web/</link>
		<comments>http://www.heidicool.com/blog/2006/07/31/valid-code-for-using-flash-animations-on-the-web/#comments</comments>
		<pubDate>Tue, 01 Aug 2006 00:10:50 +0000</pubDate>
		<dc:creator>Heidi Cool</dc:creator>
				<category><![CDATA[Heidi's Entries]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.heidicool.com/blog/?p=55</guid>
		<description><![CDATA[Update: Since this was written, SWFObject2.0 has become the recommended method for embedding Flash files. Learn more at "Embedding YouTube Videos the Standards Compliant Way—SFWobject 2.0." (This method can be used for a variety of .swf files, not just video.) If you've ever tried to include a flash animation in your Web site you may [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update: Since this was written, SWFObject2.0 has become the recommended method for embedding Flash files. Learn more at "<a href="http://www.heidicool.com/blog/2008/04/20/embedding-youtube-videos-the-standards-compliant-waysfwobject-20/">Embedding YouTube Videos the Standards Compliant Way—SFWobject 2.0</a>." (This method can be used for a variety of .swf files, not just video.)</strong></p>

<p class="photoright"><object type="application/x-shockwave-flash" data="http://www.case.edu/univrel/marcomm/portfolio/port2.swf" width="200" height="180" >
<param name="movie" value="http://www.case.edu/univrel/marcomm/portfolio/port2.swf" />
<img src="http://www.case.edu/univrel/marcomm/portfolio/port.jpg" width="200" height="180" alt="slideshow" />
</object></p>

<p>If you've ever tried to include a flash animation in your Web site you may have found that either your movie doesn't show up, your code doesn't validate, or both. Or perhaps you have found that while your movie appears on your page when viewed in Browser X, it does not when viewed in Browser Y. </p>

<p>Sometime ago I encountered the same problem and after searching around the Web for various solutions I came across the following. It works in a variety of browsers and is much simpler than the code generated by Flash or Dreamweaver.</p>
<p>To use this simply replace the code you are currently using with the following and change filename.swf and filename.jpg to the appropriate names for your animation and image files, and change the dimensions to those of your movie. Users who can't use Flash will see your .jpg file instead, so it is important to include this extra element*. </p>

<h5>HTML code for including a Flash animation</h5>
<p class="code">&lt;object type=&quot;application/x-shockwave-flash&quot; data=&quot;filename.swf&quot; width=&quot;360&quot; height=&quot;324&quot; &gt;  &lt;param name=&quot;movie&quot; value=&quot;filename.swf&quot; /&gt;  &lt;img src=&quot;filename.jpg&quot; width=&quot;360&quot; height=&quot;324&quot; alt=&quot;slideshow&quot; /&gt;  &lt;/object&gt;</p>

<h5>*Creating the alternative image</h5>
<p>If your animation is a simple slide show, you probably already have an image to use. Just make sure to resize it to the same proportions as your movie. If your Flash file was created from vector drawings and you don't have a still image you can create one by taking a screen capture while viewing the animation itself.</p>
<h5>Screen capture for Windows</h5>
<p>While viewing the animation, click "ctrl" and "print screen" at the same time. This will take a picture of your window and store it on your clipboard.</p>
<p>Open a new file in Photoshop or your favorite image editor and paste (ctrl-v) in your image. Crop out any extra bits, resize the image to match your .swf, flatten layers, then save to create a .jpg.</p>
<h5>Screen capture for Macintosh OS X</h5>
<p>Open the "Grab" application found under utilities in your applications directory. Under the capture menu choose "window," the click the blue "choose window" button in the pop-up box.</p>
<p>Go to your animation, and when you come to the part you would like to use for your image, just click anywhere in the window. This will take a picture of your window and open it as an unnamed .tiff file in the Grab program. Save the file with your name of choice.</p>
<p>Open the .tiff file in Photoshop or your favorite image editor. Crop out any extra bits, resize the image to match your .swf, flatten layers, then save it as a .jpg file.</p>


]]></content:encoded>
			<wfw:commentRss>http://www.heidicool.com/blog/2006/07/31/valid-code-for-using-flash-animations-on-the-web/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I&#8217;m not going to teach you XHTML/HTML: Homework Review</title>
		<link>http://www.heidicool.com/blog/2006/07/11/im-not-going-to-teach-you-xhtmlhtml-homework-review/</link>
		<comments>http://www.heidicool.com/blog/2006/07/11/im-not-going-to-teach-you-xhtmlhtml-homework-review/#comments</comments>
		<pubDate>Wed, 12 Jul 2006 00:49:20 +0000</pubDate>
		<dc:creator>Heidi Cool</dc:creator>
				<category><![CDATA[Heidi's Entries]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.heidicool.com/blog/?p=52</guid>
		<description><![CDATA[Last month in my entry about HTML/XHTML I provided a homework assignment for those who wanted to try learning a bit of XHTML. I know some of you are still working on the project, but as I've completed it myself, I'll walk you through some of the elements of the site. If you have not [...]]]></description>
			<content:encoded><![CDATA[<p class="photoright"><a href="http://www.case.edu/webdev/hactest/wolves/"><img alt="wolfweb.jpg" src="http://blog.case.edu/webdev/2006/07/11/wolfweb.jpg" width="280" height="231" /></a></p>
<p>Last month in <a href="http://www.heidicool.com/blog/2006/06/09/im-not-going-to-teach-you-xhtmlhtml-but-you-should-learn-it-anyway/">my entry about <br />HTML/XHTML</a> I provided a homework assignment for those who wanted to try learning a bit of XHTML. I know some of you are still working on the project, but as I've completed it myself, I'll walk you through some of the elements of the site. </p>

<p>If you have not yet started the project, you should go ahead and give it a try before reading this, but I leave it to you to decide what works best for your learning style. </p>
<h5>My results</h5>
<p>On the right is a screen capture of the site I built, <em><a href="http://www.case.edu/webdev/hactest/wolves/">Wolves, our social cousins</a></em>. As you can see, there isn't much to it. Per the instructions, I included a photograph, headers, links, and list elements. I didn't apply any style formatting so nothing has been done to affect color, font or positioning of the elements on the page. </p>
<p>While the site isn't visually interesting, it is visually informative. The use of headers such as h1's, h3's and h6's help to differentiate between title, page header and footer. The use of a list for the menu makes that easy to follow as well.</p>
<h5>Content</h5>
<p>Given the reason for building the site, I spent very little time researching and writing about wolves. Anyone hungry to learn about wolves will be disappointed. Knowing this, I explained the reason for the site on the "<a href="http://www.case.edu/webdev/hactest/wolves/about.html">About this site</a>" page and included my contact information. Were this a serious site, it would still be important to include a page explaining the parameters and scope of the project.</p>

<h5>About the document structure</h5>
<p>You can view the complete code used to build this by <a href="http://www.case.edu/webdev/hactest/wolves/index.html">going to the site</a> and selecting "view source" from your browser menu. What follows is a breakdown of the elements used, with some general information about each.   </p>

<p class="code">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-<br />transitional.dtd&quot;&gt;</p>

<p>The Document Type declaration is used to tell user agents such as Web browsers what type of code was used to create the document so that they may render it appropriately. The World Wide Web Consortium maintains a <a href="http://www.w3.org/QA/2002/04/valid-dtd-list.html#DTD">list of valid document types</a>. </p>

<p class="code">&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;
</p>
<p>The html tag indicates the start of the document, the format (XHTML) and the language (English).</p>

<p class="code">&lt;head&gt;  <br />
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;  <br />
&lt;title&gt;Wolves: a web site demo&lt;/title&gt;  <br />
&lt;meta name=&quot;Keywords&quot; content=&quot;wolves, unstyled web site, sample web site for tutorial&quot; /&gt;  <br />
&lt;meta name=&quot;Description&quot; content=&quot;Sample web site to demonstrate simple xhtml files without any style formatting&quot; /&gt;  <br />
&lt;meta name=&quot;author&quot; content=&quot;Heidi Adams Cool&quot; /&gt;  <br />
&lt;/head&gt;
</p>
<p>Information within the header provides additional information to the browser, such as the page title&mdash;which is shown at the top of a browser window&mdash;and meta tags which can provide added information to search engines. In this example I've included author information, a brief description of the site, and keywords related to the site. While keywords help search engines reference your page, it is more important for them to be accurate than plentiful. A list of 200 keywords will not raise your site rankings, whereas a short list of words or phrases&mdash;specific to your site&mdash;will complement the other data these engines collect. </p>

<p class="code">&lt;body&gt;    </p>
<p>All content intended to be read or heard by users is enclosed within the body tags.</p>

<p class="code">&lt;h1&gt;&lt;img src=&quot;wolf.gif&quot; alt=&quot;wolf head&quot; /&gt; Wolves: our social cousins&lt;/h1&gt;    </p>
<p>The title of the site is enclosed within opening and closing h1 tags. In XHTML all elements must include both the opening and closing tags. In earlier versions of HTML, opening tags alone were sufficient. XHTML provides headers h1 through h6 with h1 being the largest. They should be used from large to small in descending order of importance. The words contained in headers are also referenced by search engines to help determine what is the most important content on your site. If one rendered the same words in plain paragraphs with bold text, user agents would not be able to recognize them as being more important.</p>
<p>In this example I have enclosed the wolf image within the h1 tag in order to affect it's placement on the page. When using CSS, I would handle the image separately. The img tag is "self-closing." As there is only the one tag it incorporates a closing slash at the end before the angle bracket. Manual line breaks &lt;br /&gt; and horizontal rules &lt;hr /&gt; also function in this manner. </p>

<p class="code">&lt;ul&gt;  <br />&lt;li&gt;&lt;a href=&quot;index.html&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;  <br />&lt;li&gt;&lt;a href=&quot;about.html&quot;&gt;About this site&lt;/a&gt;&lt;/li&gt;  <br />&lt;li&gt;&lt;a href=&quot;species.html&quot;&gt;Species&lt;/a&gt;&lt;/li&gt;  <br />&lt;li&gt;&lt;a href=&quot;haiku.html&quot;&gt;Haiku&lt;/a&gt;&lt;/li&gt;  <br />&lt;li&gt;&lt;a href=&quot;links.html&quot;&gt;Links&lt;/a&gt;&lt;/li&gt;  <br />&lt;/ul&gt;</p>
<p>Here I've treated our menu as an unordered list. When I later add CSS to the page this will allow me to control whether the list has bullets or not, whether it is vertical or horizontal, etc. The linking words are enclosed within opening and closing anchor tags. As each page is located in the same folder I have used short "relative" links that use only the file name.</p>
<p>When including adjacent links in a document, such as those found in a menu, the use of a list helps to differentiate them. If instead we had put these in a paragraph with manual line breaks, user agents wouldn't easily know where one link ends and another begins. This is of particular importance for browsers for the visually impaired. When lists are not practical, you should always remember to put an actual character such as a comma or vertical bar between such links. </p>

<p class="code">&lt;h3&gt;Home&lt;/h3&gt;</p>
<p>Here I've enclosed the page header within h3 tags. I could just as easily have used an h2, but by skipping that I can save that tag for something more important if necessary. In the Case templates, we use h2's on the opening page of a site within the gray or colored box, and h3's for individual page headers. </p>

<p class="code">&lt;p&gt;Wolves are a member of the family, &lt;a href=&quot;http://en.wikipedia.org/wiki/Canid&quot;&gt;Canidae&lt;/a&gt;, which also includes dogs, foxes, coyotes, and jackals.  It is thought that wolf-like animals evolved from a common ancestor 2-3 million years ago, while more familiar species such as the gray wolf probably emerged 1 million years ago. &lt;/p&gt;  </p>
<p class="code">&lt;p&gt;Like dogs, and our own species, humans, wolves are social creatures. Whether hunting prey or nurturing their young, wolves work together for the good of the pack. &lt;/p&gt;  </p>
<p>Most of your text will be enclosed in paragraph tags as shown here.</p>

<p class="code">&lt;h6&gt;Questions? Contact &lt;a href=&quot;mail:cool@case.edu&quot;&gt;cool@case.edu&lt;/a&gt; or visit the &lt;a href=&quot;http://blog.case.edu/webdev&quot;&gt;Web Development Blog&lt;/a&gt; at &lt;a href=&quot;http://www.case.edu&quot;&gt;Case Western Reserve University&lt;/a&gt;.&lt;/h6&gt;
</p>
<p>I enclosed the footer information in h6's. While I could have used paragraph tags, I think the use of the header tags helps to distinguish this content from the main text. The use of the smaller header also indicates that it is of less importance to the subject than are the h3's. I feel it is important to include some sort of contact information in the footer. If a user finds an error on your page or has a question he/she needs to have a way of contacting you. If the contact person for the site is different than the content person for the subject matter, then you should include both somewhere on the site.</p>
<p>You will notice that the footer includes links to an e-mail address and to an external site. The external site makes use of a full url (uniform resource locator, aka address) in which the http:// designates that the link uses the hypertext protocol. The e-mail address begins with mailto: to indicate that it uses the mail protocol. </p>

<p class="code">&lt;/body&gt;
&lt;/html&gt;  </p>

<p>As with other tags, the body and html tags must be closed. </p>
<p>To learn more about the tags used in this document, and XHTML in general, visit the resources <a href="http://blog.case.edu/webdev/2006/06/09/im_not_going_to_teach_you_xhtmlhtml_but_you_should_learn_it_anyway">listed in the previous entry.</a> For our next project, we'll add the functionality of cascading style sheets to make our site look a bit spiffier.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.heidicool.com/blog/2006/07/11/im-not-going-to-teach-you-xhtmlhtml-homework-review/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>I&#8217;m not going to teach you XHTML/HTML, but you should learn it anyway</title>
		<link>http://www.heidicool.com/blog/2006/06/09/im-not-going-to-teach-you-xhtmlhtml-but-you-should-learn-it-anyway/</link>
		<comments>http://www.heidicool.com/blog/2006/06/09/im-not-going-to-teach-you-xhtmlhtml-but-you-should-learn-it-anyway/#comments</comments>
		<pubDate>Sat, 10 Jun 2006 00:15:55 +0000</pubDate>
		<dc:creator>Heidi Cool</dc:creator>
				<category><![CDATA[Heidi's Entries]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.heidicool.com/blog/?p=48</guid>
		<description><![CDATA[If you are already comfortable editing in HTML or XHTML, then you may want to just skip to the bottom and bookmark some of the resources I've listed for future reference. But if you've just been given the responsibility of maintaining or building a new site for your department, you may be wondering where to [...]]]></description>
			<content:encoded><![CDATA[<p>If you are already comfortable editing in HTML or XHTML, then you may want to just skip to the bottom and bookmark some of the resources I've listed for future reference. But if you've just been given the responsibility of maintaining or building a new site for your department, you may be wondering where to begin. If you've done the requisite site planning, as described in my <a href="http://www.heidicool.com/blog/tutorial">Planning Your Website Tutorial</a>, then you are almost ready to begin building or editing your pages. </p>
<p>To build a new site you will need to <a href="http://www.case.edu/webdev/webtoolkit/download/index.html">download
the appropriate template files</a>, and make sure you have the appropriate editing software on your computer. Case recommends using
Dreamweaver as your XHTML editor. Dreamweaver is available&mdash;through the <a href="http://softwarecenter.case.edu">Software
Center</a>&mdash;as a component of <a href="http://www.adobe.com/products/studio/">Macromedia Studio 8</a>. Dreamweaver is a great tool, but it is only a tool. A hammer is a useful tool for hitting a nail into a wall, but it still depends on you to both hold the nail, and to guide the hammer with appropriate force and precision. Similarly, Dreamweaver requires you to tell it what to do with the content you type or paste into it. You will find it is far easier to control Dreamweaver if you understand the basics of HTML and XHTML. </p>

<h5>What are XHMTL and HTML?</h5>
<p>XHTML (Extensible HyperText Markup Language) and HTML (HyperText Markup Language) are forms of SGML (Standard Generalized Mark-up Language) which allow users to define the structure of a document and its component parts. The first version of HTML was developed in 1989-1990 by <a href="http://www.w3.org/People/Berners-Lee/">Tim Berners-Lee</a> and was fundamental to his invention of the World Wide Web. <a href="http://www.w3.org/TR/1999/REC-html401-19991224/">HTML 4.01</a> is the most current version. XHTML extends the abilities of HTML and can work in conjunction with <a href="http://www.xml.com/pub/a/98/10/guide0.html">XML</a>. Case Web templates use <a href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> Transitional. </p>
<p>While I've included links to the specifications above, don't worry too much about the technical stuff. For your purposes you mostly need to understand that HTML and XHTML allow you to define areas of a document such as the body, headers, paragraphs, links and images so that a Web browser or other user agent knows how to structure the elements. Note that I said <em>structure</em> rather than <em>present</em>. Presentational elements which control the look of a site, such as font, color, boldness, and alignment, are not controlled through XHTML or HTML 4.01. Instead they are controlled by Cascading Style Sheets (CSS). XHTML handles structure, while CSS handles style. I'll discuss CSS more carefully in a separate post.</p>
<h5>Building your first site in XHTML 1.0: A homework project</h5>
<p>I find it is easier to learn by doing, so what I usually recommend is that you build yourself a little Web site from scratch. Knowing that you have your Case templates and Dreamweaver already installed, I want you to leave them closed in their folders and ignore them. We will not be using either for this project. </p>
<h5>Your assignment</h5>
<p>Using a plain text editor, build a five page Web site (in XHTML 1.0) about your
favorite animal. You should be sure to include your site title on each page, topical
headers on each page, subheads when appropriate, at least one bulleted list, and
a navigational menu. Each page should include links to other pages within the site
and to external Web sites, and a link to an e-mail address. I would like you to
include at least one photograph or illustration (please only use images you have
permission to use), but I do not want you to apply any styling such as font choice
or color to the site. We will do that in our next project, learning CSS. Once your site is complete, go to <a href="http://validator.w3.org/">http://validator.w3.org/</a> to make sure your code is valid. Then post a link to your site in the comments area below so that we can all see how you've done!</p>
<h5>Tools to complete the project</h5>
<ul>
<li><strong>Text Editor</strong>: If you are using Windows, I recommend Notepad. If you are on an older Mac, use SimpleText, on a newer Mac, TextEdit. Users of other operating systems, such as Linux, should use whatever plain text editor they prefer. DO NOT USE WORD, WORDPERFECT OR OTHER WORD PROCESSING PROGRAMS.</li>
<li><strong>Image Editor</strong>: Adobe Photoshop CS2 is available through the <a href="http://softwarecenter.case.edu">Software Center</a>, but you may use whatever program you prefer. For this project you will probably only need it to resize your image.</li>
<li><strong>A place to post your site</strong>: Case students, staff and faculty may sign up for free space at <a href="http://filer.case.edu">http://filer.case.edu</a>. Others should consult with their ISP to see if Web space is included in their account, or sign up with a free service such as <a href="http://geocities.yahoo.com/join/">http://geocities.yahoo.com/join/</a>.</li>
<li><strong>A method to upload files to your site</strong>: FTP (File Transfer Protocol) was once the dominant choice for uploading files, but is now joined by many others including Secure FTP and <a href="http://filer.case.edu/wiki/filer/webdav">WebDAV</a>. A variety of stand-alone clients are available, FTP is built into Dreamweaver, and Mac OS X has built-in WebDav support. <a href="http://filer.case.edu">http://filer.case.edu</a> supports FTP and WebDav, but also offers an easy-to-use Web interface for file transfers. Your host provider should let you know which protocol they support.</li>
<li><strong>A Web browser to view your site</strong>. If you are reading this online, you already have one, however, I recommend <a href="http://www.mozilla.com/">Firefox</a>. </li>
</ul>
<p class="photoright"><img alt="books.jpg" src="http://blog.case.edu/webdev/2006/06/09/books.jpg" width="160" height="620" />
</p>
<h5><a name="books" id="books"></a>Resources for learning XHTML and HTML</h5>
<p>As I indicated in the title, I'm not going to teach you the code. Many others have provided perfectly good resources for this. The ones I used back in the dark ages of the early 1990's are now well out-of-date, and I've not read any of the following in their entirety, but I have read and skimmed bits of each, and they seem sufficient. Please make sure not to use any resources geared to older versions of HTML as they will include code that is no longer in use. </p>
<h5>HTML Books</h5>
<p>Safari Proquest subscribers, including users from many universities, can read these online at no cost. For others I've included links for ordering the books from Amazon.com. </p>
<dl>
<dt><em><a href="http://proquest.safaribooksonline.com/0789728958">Absolute Beginner's Guide to Creating Web Pages, Second
Edition</a></em> By Todd Stauffer</dt>
<dd>This book seems to cover all of the basics, and provides some background information about the Web that you may find interesting. Even without reading the entire book it should give you the information you need to build the site for our assignment. The author recommends testing your site locally, but I think you will be better served by uploading your pages as you go and testing them in a live environment. <em>Purchase <a href="http://www.amazon.com/gp/product/0789728958?ie=UTF8&#038;tag=heidcomwebdes-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0789728958">Absolute Beginner's Guide to Creating Web Pages (2nd Edition)</a><img src="http://www.assoc-amazon.com/e/ir?t=heidcomwebdes-20&#038;l=as2&#038;o=1&#038;a=0789728958" width="1" height="1"  alt=""   /> from Amazon.</em></dd>

<dt><a href="http://proquest.safaribooksonline.com/0321130073"><em>HTML for the World Wide Web, Sixth Edition, with XHTML
and CSS: Visual QuickStart Guide</em></a> By Elizabeth Castro</dt>
<dd>While a bit dryer than the previous title, <em>Chapter 3. Basic
(X)HTML Structure</em> walks you directly through the process of building a
page, and should provide you everything you need to complete this project. You can skip the chapters on formatting as  we'll be using CSS to apply formatting in a future assignment. <em>Purchase <a href="http://www.amazon.com/gp/product/0321430840?ie=UTF8&#038;tag=heidcomwebdes-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0321430840">HTML, XHTML, and CSS, Sixth Edition</a><img src="http://www.assoc-amazon.com/e/ir?t=heidcomwebdes-20&#038;l=as2&#038;o=1&#038;a=0321430840" width="1" height="1"  alt=""   /> from Amazon.</em>
</dd>

<dt><em><a href="http://proquest.safaribooksonline.com/0321385551">Designing With Web Standards</a></em> By Jeffrey Zeldman</dt>
<dd>While more advanced than the the other two books, this is the most accurate and precise of the three, specifically because Zeldman's focus is adherence to Web standards. Once you've gotten a feel for the basics of HTML, this book will help you understand how and why to use proper structural code. Jeffrey Zeldman is one of the foremost experts in this field, and also runs the popular and very helpful e-zine, <a href="http://www.alistapart.com/">A List Apart</a>. <em>Purchase <a href="http://www.amazon.com/gp/product/0321616952?ie=UTF8&#038;tag=heidcomwebdes-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=0321616952">Designing with Web Standards (3rd Edition)</a><img src="http://www.assoc-amazon.com/e/ir?t=heidcomwebdes-20&#038;l=as2&#038;o=1&#038;a=0321616952" width="1" height="1"   alt=""   /> from Amazon.</em>
</dd>
</dl>
<h5>Online Resources</h5>
<dl>
<dt><a href="http://www.w3schools.com">W3 Schools</a></dt>
<dd>W3 Schools offers tutorials on a variety of Web related topics including <a href="http://www.w3schools.com/html/default.asp">HTML</a> and <a href="http://www.w3schools.com/xhtml/default.asp">XHTML</a>. Their XHTML tutorial expects you to know HTML, so read that one first. </dd>

<dt><a href="http://www.yourhtmlsource.com/">HTML Source</a></dt>
<dd>These easy-to-follow tutorials range from "My first site" to more advanced topics such as CGI Scripting. Some of the tutorials include deprecated code, but they also explain why these are no longer recommended, so that users gain additional understanding.</dd>


<dt><a href="http://validator.w3.org/">W3C Markup Validation Service</a></dt>
<dd>This resource checks your Web page to let you know if your code is valid, and if it is not, what the errors may be. Very handy both for ensuring clean code, and for finding errors that may be causing problems in your pages.</dd>

<dt><a href="http://www.w3.org/">The World Wide Web Consortium (W3C)</a></dt>
<dd>While no single entity owns or controls the Web (though <a href="http://blog.case.edu/mxs24/2006/06/09/saving_the_internet_the_importance_of_net_neutrality">the
telcos are trying to change that</a>) the W3C can be considered the defining authority. As the developers of Web standards and guidelines their <a href="http://www.w3.org/Consortium/">mission</a> is "<em>To
lead the World Wide Web to its full potential by developing protocols and guidelines
that ensure long-term growth for the Web</em>." Their site includes all of the official recommendations and a variety of reference materials.</dd>

</dl>

<p>There are many other reference materials available online, but the above should be sufficient to get you started. So go ahead, open up your text editor, give it a try, and let us know how it turns out!</p>

<p>Next: <a href="http://www.heidicool.com/blog/2006/07/11/im-not-going-to-teach-you-xhtmlhtml-homework-review/">Homework Review</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.heidicool.com/blog/2006/06/09/im-not-going-to-teach-you-xhtmlhtml-but-you-should-learn-it-anyway/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

