<?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>Portland Web Design, Web Development, George Huff &#187; XHTML</title>
	<atom:link href="http://www.eleven3.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eleven3.com</link>
	<description>Portland Web Design, Web Development, George Huff</description>
	<lastBuildDate>Thu, 09 Sep 2010 17:05:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>A Simple Guide to Building a WordPress Theme</title>
		<link>http://www.eleven3.com/article/a-simple-guide-to-buiding-a-wordpress-theme/</link>
		<comments>http://www.eleven3.com/article/a-simple-guide-to-buiding-a-wordpress-theme/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 01:28:19 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[CMS(s)]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.eleven3.com/http:/www.eleven3.com/css/a-simple-guide-to-buiding-a-wordpress-theme/</guid>
		<description><![CDATA[Downloading and tweaking one of the many themes of WordPress is all fine and good. But what happens when you want to extend your blog/site past what someone else&#8217;s theme can give you? The truth is &#8211; this is a realm where most users are terrified to go. While I understand those fears, they aren&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Downloading and tweaking one of the many themes of <a href="http://www.wordpress.org">WordPress</a> is all fine and good.  But what happens when you want to extend your blog/site past what someone else&#8217;s theme can give you?  The truth is &#8211; this is a realm where most users are terrified to go.  While I understand those fears, they aren&#8217;t totally warranted.  Building a WordPress theme can be quite easy, given the right process.</p>
<blockquote><p>I&#8217;m freaking out man!</p></blockquote>
<p>Building a WordPress theme can be broken down into three steps; design, front-end development, and lastly the WordPress implementation itself.  I&#8217;m not quite sure how others do it, but the following guide is a detailed look into the process I have developed for building WordPress themes.<br />
<span id="more-148"></span></p>
<h3>Design</h3>
<p>I&#8217;ve detailed my process for <a href="http://www.eleven3.com/http:/www.eleven3.com/standards/eleven3-version-30/">building this latest version of eleven3</a>, in that post I discussed mostly design.  Starting your own theme should work the same way.  It&#8217;s important to ask questions such as:</p>
<ul>
<li>What problems are you trying to solve?</li>
<li>Who is your theme for?</li>
<li>What is your sites most important content?</li>
</ul>
<p>The word, &#8220;theme&#8221; is used for WordPress &#8211; but it doesn&#8217;t mean that your site needs to have a theme.   However, having a &#8220;theme&#8221; may help one along their way to achieving their vision.  A good place to get inspired is <a href="http://www.cssremix.com">cssremix.com</a>, who&#8217;ve been so kind in showcasing some of my own work.  And for the quick and dirty answers: use Adobe Photoshop, use pixels for measuring (if this seems strange to you, just do it and thank me later), try to make sense of <a href="http://www.subtraction.com/pics/0703/grids_are_good.pdf">Khoi Vinh&#8217;s gridding lecture</a>, think about what parts of your site can expand and contract nicely (if you&#8217;re a beginner, keep to expanding vertical), and for imagery check out <a href="http://www.istockphoto.com">istockphoto.com</a>.  Wow, learning web design <strike>can&#8217;t</strike> can be summed up in one sentence.</p>
<h3>Front-End Development</h3>
<p>I&#8217;m probably stating the obvious here, but jumping into WordPress at this point would be akin to being stinky and dumb.  (-;  Make your site look how it is supposed to look without any real functionality.  Get it working in all browsers and upon completion &#8211; then think of WordPress.</p>
<blockquote><p>But how?</p></blockquote>
<p>There are a ton of &#8220;we have layouts&#8221; sites out there.  And while tempting, it&#8217;s the same thing as using a WordPress theme and tweaking it.  The only way to get a good understanding of code is simply just to code yourself.  Start fresh.  Here is a base I use for many of my sites &#8211; free to build from.</p>
<p><img src="http://www.eleven3.com/wp-content/uploads/picture-7.jpg" alt="Basic HTML Screenshot" /></p>
<p>Personally my first step in coding a site is to lay the design and fresh HTML (use Dreamweaver, Coda, or any other code editor of choice) document side by side and hand code the structure.  I know it would help to know where to start and I can only offer this advice &#8211; study the source code of the &#8220;famous&#8221; web designers, they&#8217;re critically acclaimed for a reason, they do everything thoughtfully and well.</p>
<blockquote><p>Mmmmmm CSS Zen</p></blockquote>
<p>The next step would be to start styling content using CSS &#8211; if you&#8217;re at this point and you&#8217;ve never seen CSS code then I&#8217;m not going to lie to you; your road to <a href="http://www.csszengarden.com">CSS Zen</a> will be long and hard.  If you are still not overwhelmed, create a new CSS document in Dreamweaver (or your preferred coding app).  A first step I eventually figured out on my own (and then a punk 17 year old showed me the asterisk &#8211; j/k QD) that would have saved me a ton of headache is the clearing technique (which is frowned upon in some countries).  It goes something like this:</p>
<p>* { margin: 0; padding: 0; }</p>
<p>The reason to clear the padding and margin values is to avoid all the different &#8220;inherit&#8221; values of HTML elements.  To be more concrete, an &lt;h1&gt; tag  in internet explorer may have 8px of bottom padding, whereas it may have 10px in Firefox.  Why do they have any values at all?  I&#8217;m not sure, it could be because HTML came along before CSS. Just ask a couple of &#8216;timers about spacer gifs.</p>
<p><img src="http://www.eleven3.com/wp-content/uploads/inherit-values.jpg" alt="Inherit Values Diagram" /></p>
<p>Coding CSS is a mix of looking at your comp in photoshop to find pixel values (told you so) and slicing up your comp to place images in your end product.  Eventually you hope to have a functioning website that looks consistent across all browsers.</p>
<h3>WordPress Implementation</h3>
<p>And now for the fun part implementing WordPress.  It should be safe to assume at this point you have your WordPress installed on your server and you have a fully functional layout working in all the major browsers.  Ready, ok go!</p>
<blockquote><p>The conies and taters</p></blockquote>
<p><strong>Step One</strong></p>
<p>Duplicate the default theme located in wp-content/themes/default/.  Copy the default folder and rename it &#8220;your-theme-name.&#8221;  Make sure your duplicate is located in the same directory &#8220;themes.&#8221;</p>
<p><img src="http://www.eleven3.com/wp-content/uploads/themes-folder.jpg" alt="Default WordPress Themes" /></p>
<p><strong>Step Two</strong></p>
<p>Start transferring your HTML, CSS, and images into the theme folder.  Working within your theme folder, make the following changes (don&#8217;t worry, you can reference stuff if necessary from the original default folder):</p>
<p><img src="http://www.eleven3.com/wp-content/uploads/geo-theme.png" alt="Content of Geo Theme Folder" /></p>
<ul>
<li>Delete all the files in the images folder and replace with your images</li>
<li>Delete all of the functions in functions.php</li>
<li>Delete all of the css (except for the commented out header) in style.css and then paste your own CSS in its place.</li>
<li>Change the information at the top of style.css to reflect you and your new theme.</li>
</ul>
<p><strong>Step Three</strong></p>
<p>Save a small screenshot of your comp/design (300pxX240px) and save it in your theme folder as screenshot.png &#8211; this will help you switch to the theme in your WordPress presentation options.  Here is my theme screen shot for this site.</p>
<p><img src="http://www.eleven3.com/wp-content/uploads/screenshot.png" alt="Eleven3 Screenshot" /></p>
<p><strong>Step Four</strong></p>
<p>Begin to think of your coded HTML as seperate components &#8211; a header, a sidebar, a footer, and then content.  And if you are just a little bit quick, you may have jumped ahead and seen files in the folder called just that &#8211; header.php, sidebar.php, footer.php &#8211; but what about content?  Well content is the one thing that changes from page to page, while the others are static and don&#8217;t change.  So really, content is index.php, archive.php, search.php, page.php, and single.php.   These files have a little bit of explanation <a href="http://codex.wordpress.org/Using_Themes#Theme_Files">here.</a></p>
<p><strong>Step Five</strong></p>
<p>It&#8217;s a copy and paste job.  Copy your header code that should be on every page and put it underneath all the code in header.php.   Look at the code in header.php and see what makes sense for you to have in your own header code.  Things like the php between the &lt;title&gt; tag and the call for the style sheet first come to mind.  Do the same thing with your footer and sidebar.</p>
<p><strong>Step Six</strong></p>
<p>Read <a href="http://codex.wordpress.org/The_Loop_in_Action">this article</a> about &#8220;The Loop&#8221; and then open up index.php.  You will see the code that loops through each entry pulling the values requested &#8211; the_time being the time, the_title being the title, and so on and so forth.  Copy the HTML from your main page entry and paste it bellow &lt;?php endwhile; ?&gt;.  Then copy the different php snippets from the old HTML loop that you need and when finished delete the old entry html from just below &lt;?php while (have_posts()) : the_post(); ?&gt; down to &lt;?php endwhile; ?&gt; and place your new HTML loop in there.</p>
<p>If there is any other structural stuff that belongs on this page that isn&#8217;t in the header, footer, or sidebar add it in the necessary places as well.  Continue to flush out the other content pages using the same methods.</p>
<p><strong> Step Seven</strong></p>
<p>Upload your new WordPress theme folder into the wp-content/themes/ directory and login into WordPress.  If you have done everything right &#8211; you should see your screenshot and name of your theme.  Click it and then visit your website &#8211; you should see your theme on the site.</p>
<p><img src="http://www.eleven3.com/wp-content/uploads/presentation-screen.jpg" alt="Presentation Screenshot" /></p>
<p>That&#8217;s it!</p>
<h3>Conclusion</h3>
<p>Building a WordPress is simple if you already know how to design, code HTML and CSS, and FTP into sites.  In this post I outlined my own process &#8211; not any sort of &#8220;official&#8221; WordPress process.  I&#8217;m sure there are folks out there would think of my copying and pasting of the folder and subsequent files as &#8220;cheating.&#8221;  Honestly though, when I am working &#8211; I am shooting for efficiency and long-term maintainability.  I know in building within the structure set forth by the good folks at WordPress &#8211; I will be ok well into the future.</p>
<p>If you have questions about any of this &#8211; feel free to leave a comment and get a dialogue going, there is no such thing as a dumb question.  This is meant to be a simple guide for those who are interested in WordPress or Web Design in general.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eleven3.com/article/a-simple-guide-to-buiding-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>When external content breaks your validation</title>
		<link>http://www.eleven3.com/video/when-external-content-breaks-your-validation/</link>
		<comments>http://www.eleven3.com/video/when-external-content-breaks-your-validation/#comments</comments>
		<pubDate>Tue, 24 Oct 2006 03:27:23 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.eleven3.com/?p=34</guid>
		<description><![CDATA[One of the really cool things about this latest web boom (I think I shall coin it web 2.0 (-; ) is RSS feeds. Granted they have been around much longer than all of this new stuff, but they have really started maturing over the last two years or so. The ability for any jackass, [...]]]></description>
			<content:encoded><![CDATA[<p>One of the really cool things about this latest web boom (I think I shall coin it web 2.0 (-; ) is RSS feeds.  Granted they have been around much longer than all of this new stuff, but they have really started maturing over the last two years or so.  The ability for any jackass, such as myself, to create a flickr or youtube account and subscribe to that data is totally awesome.</p>
<p>To take it one step further, we can also take sed RSS feed and pull it into our own blogs/sites.  Kind of like the homepage of this site.  What one sees is the parsing of three RSS feeds, one for del.icio.us, flickr, and last.fm.</p>
<p>I added those on there because I wanted all the time I spend doing other things on the web to reflect on my blog.  Yet, in doing so, I ALMOST had to sacrifice something else that was very important to me.  Standards.<br />
<span id="more-326"></span><br />
The first issue I dealt with was the RSS feed for flickr.  For some reason it isn&#8217;t looked at as valid markup.  I had to run it through a feedburner account to pull it into my blog and not break my site.  In the end it was a good solution as I now have big brother tracking on everyone that subscribes to my photos.  And to be honest, I think it is just Magpie RSS that is pinging the feed to update it.  I can&#8217;t imagine subscribing to someone&#8217;s photos unless&#8230;perhaps I was stalking them.</p>
<p>The second issue was with my del.icio.us feed.  This is a perpetual problem and something I have to take extra steps to avoid.  I use Firefox and I have the del.icio.us tag extension installed.  It&#8217;s way too easy to tag a site and add it to my growing list of bookmarks.  The problem lies within the sites I tag and their title tags.  For some reason people throw funky characters into their tags.  Why can&#8217;t they change their ways to suit me????  (-;  Anyhow, when I bookmark something, I am on the lookout for renegade characters that break my validation.</p>
<p>I really only had those two issues in regards to feeds, yet I have another one that has been a thorn in my side for building blogs.  That thorn is YouTube embed code.  Now don&#8217;t get me wrong, I love YouTube and have been sucked in plenty of times surfing between clips.  But their code they are passing to the millions of users to post on blogs and myspace breaks validation.  I could care less about MySpace (67 html validation errors on my page) but YouTube I expect more from.</p>
<p>In all honesty there is more to the problem than just YouTube.  It&#8217;s flash, it&#8217;s validation, it&#8217;s Internet Explorer, and on and on.  In the end I cannot build a blog for a client that is completely standards compliant if they want to paste in YouTube code.  It&#8217;s already a stretch with them entering in their own content.</p>
<p>What&#8217;s the point to this rant?  James Hall is the point.  James Hall is the solution.</p>
<p>For anyone else who wants their site standards compliant AND wants YouTube, <a href="http://www.thegoodharvest.net/2006/06/valid_code_and_you_tube.html">a solution is out there</a>.</p>
<p>&#8211;</p>
<p>Update:  To illustrate another case of external content breaking my validation, Lupe Fiasco coming in through last.fm has a problem.  Looks like I am going to have to stop listening to that album.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eleven3.com/video/when-external-content-breaks-your-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xhtml and css validation links</title>
		<link>http://www.eleven3.com/video/xhtml-and-css-validation-links/</link>
		<comments>http://www.eleven3.com/video/xhtml-and-css-validation-links/#comments</comments>
		<pubDate>Fri, 20 Oct 2006 03:28:30 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.eleven3.com/?p=33</guid>
		<description><![CDATA[As guilty as I am of pasting these at the bottom of my sites, I think they will probably be similar to the Netscape Now buttons of the early web. It&#8217;s kinda like repping your hometown or team or whatever. Yes we rep XHTML/CSS because we all believe it&#8217;s the right thing to do; we [...]]]></description>
			<content:encoded><![CDATA[<p>As guilty as I am of pasting these at the bottom of my sites, I think they will probably be similar to the Netscape Now buttons of the early web.  It&#8217;s kinda like repping your hometown or team or whatever.  Yes we rep XHTML/CSS because we all believe it&#8217;s the right thing to do; we know it is the right thing.</p>
<p>In my last post I talked about the entry fee for getting a job at my company required being up to par on web standards.  Yes, we recommend one uses firefox with the web developer toolbar as well.  Oh and there is also the useful Measure-It! extension.  With all of these tools in one&#8217;s pocket, the question becomes, why haven&#8217;t some people caught on?</p>
<p>Microsoft Internet Explorer.   This would require an entry in itself.</p>
<p>Perhaps one day all sites will be coded in valid css/xhtml and the validation links at the bottom will seem innappropriate and unecessary.  Either way, Microsoft has a lot of making up to do to those of us in the web space.  Perhaps they could make their browser standards compliant, and make something as appropriate as validation links go away.</p>
<p>Or they will just be Microsoft, and we will have to fight the good fight for the long run.  I hope they come around.</p>
<p>(Checking out IE7 soon, somewhere I saw a dual install for both IE6 and IE7, so what happens to my IETab extension??)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eleven3.com/video/xhtml-and-css-validation-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>on becoming a code snob</title>
		<link>http://www.eleven3.com/video/on-becoming-a-code-snob/</link>
		<comments>http://www.eleven3.com/video/on-becoming-a-code-snob/#comments</comments>
		<pubDate>Fri, 28 Jul 2006 03:36:11 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.eleven3.com/?p=21</guid>
		<description><![CDATA[I am in the middle of a project where I am combining two sources of old school code, one really bad rat&#8217;s nest of code (that has gotten much better thanks to the counterpart who I am working with) and the other just remnants of the old school bad. The reason I bring this up [...]]]></description>
			<content:encoded><![CDATA[<p>I am in the middle of a project where I am combining two sources of old school code, one really bad rat&#8217;s nest of code (that has gotten much better thanks to the counterpart who I am working with) and the other just remnants of the old school bad.</p>
<p>The reason I bring this up is the fact I am becoming a bit of a code snob.  Ugly, sloppy code really grosses me out.  There was some code pulled up on a projector today and I had to turn away.  So when did this happen for me?</p>
<p>I was introduced to the wonderful world of CSS about two years ago now.  Before that I was building sites like everyone else, tables and spacer gifs.  I can completely understand the necessity of those means before CSS came along, but now I can&#8217;t bear to work like that.  Seperating design and content is essential to get past any sort of design changes one has to a multipaged website.<br />
<span id="more-321"></span><br />
<strong>Thought One &#8211; Applications.</strong></p>
<p>One thing that I have come to find over the last few years of being a &#8220;professional,&#8221; is that I am not so good at writing my own application code (working on that with rails, but more on that another time), but I am good at changing the look and feel of others.  So what does that make me?  A good skinner.  And I am cool with that by the way.</p>
<p>So when I come across an application I want to work with, a blog or cms platform, and the code it generates is dated and ugly, I become a bit turned off to the whole idea of spending the time to learn it.  Case in point: Joomla!.  What a great CMS for cookie cutter websites.  They have tables and other useless stuff so engrossed throughout the code, the idea of building beautiful, unique, thoughtful websites becomes extremely difficult.  After two weeks of pulling my hair out trying to figure out Joomla! and delete all of it&#8217;s unecessary html code in the php, I switched to <a href="http://www.cmsmadesimple.org">CMS Made Simple</a>.  These guys have it figured out and I was able to get done in one day, what I hadn&#8217;t been able to do in two weeks with Joomla!.  Mixing html inside of your application code is a bad idea.  And if you want to attract us standards guys, mixing table cells and server-side scripting is a especially bad idea.</p>
<p>Now all I have to do is break it to the guy who writes my checks that I had to make a call.</p>
<p><strong>Thought Two &#8211; Consistency</strong></p>
<p>I pat myself on the back everytime I see a valid xhtml or css link on someone&#8217;s page.  It will be ok, eventually all of us will get in line with this whole thing.  What the standards link tells me is this: not only will I be able to go in and change the whole page around with CSS, but they probably aren&#8217;t using tables and spacer gifs either.</p>
<p>In fact, I would go as far as saying their code probably looks a lot like mine.  Begins with: &lt;div id=&#8221;container&#8221;&gt; and goes through the list of identifying everything with id&#8217;s and classes?  What&#8217;s the point?  The point is when the majority of the web developers start going down this path, a very important consistency emerges.</p>
<p><strong>Thought Three &#8211; The Future</strong></p>
<p>I have gone from hacking websites together to building websites built for the future.  This entails a few things.</p>
<p>1) Build websites with the intention of coming back and editing it in five years.  Yes, some things will change, but there will be a consistency to your work.</p>
<p>2) Build websites with the intention that someone will be editing it in five years.  I can&#8217;t stress this enough.  I work at an agency and our team just got on the same page about building sites (file structures, naming schemes, css practices, html practices) the same.  This doesn&#8217;t have to be one man to rule them all, it just needs to pull from everyone&#8217;s best practices.</p>
<p>3) Look at the greats in this field; <a href="http://www.shauninman.com/plete/">Shaun Inman</a>, <a href="http://hicksdesign.co.uk">John Hicks</a>, <a href="http://veerle.duoh.com/index.php">Veerle Pieters</a>, and <a href="http://www.cameronmoll.com/">Cameron Moll</a> only to name a few, see how they code, see how they design.  My first portfolio pulled heavily from John Hicks, as to say, I killed cats or something to that extent.  These people really have a feel for what is good.</p>
<hr />Being a code snob is a good thing, but one must always remember, they are never quite there.  Always learning.  Always paying attention.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eleven3.com/video/on-becoming-a-code-snob/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building it Strict &#8211; XHTML Compliance</title>
		<link>http://www.eleven3.com/video/building-it-strict-xhtml-compliance/</link>
		<comments>http://www.eleven3.com/video/building-it-strict-xhtml-compliance/#comments</comments>
		<pubDate>Wed, 21 Jun 2006 15:31:07 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.eleven3.com/?p=13</guid>
		<description><![CDATA[I had to jump through numerous hoops to get this site to be of strict compliance. I figured I would share to get some dialogue going about different techniques that others have used as well as my own. Although this list is published, I may add more to it in the future, just because this [...]]]></description>
			<content:encoded><![CDATA[<p>I had to jump through numerous hoops to get this site to be of strict compliance.  I figured I would share to get some dialogue going about different techniques that others have used as well as my own.</p>
<p>Although this list is published, I may add more to it in the future, just because this stuff never ends.</p>
<p>Before the list though, I would like to thank Steve James over at epicunion for keeping me up to date on the good, the bad, and the ugly of web standards.  Everytime I think I can teach him something, he ends up teaching me.</p>
<p>Please comment on this post if you have any feelings towards any of it.<br />
<span id="more-13"></span><br />
<strong>1. The &#8220;target&#8221; attribute</strong> I feel the target=&#8221;_blank&#8221; function isn&#8217;t as obsolete as the w3c would have us believe.  In all practical respects, most websites do not want to direct traffic away from their sites.  While it is nice I have a flickr picture gallery feed coming to my site, I do not want to send all of my traffic from my site to flickr.  With tab browsing becoming the norm (with the release of IE7 of course) links opening new tabs is not the annoyance that it once may have been.  With that being said, here is the first hoop:</p>
<p>Strict XHTML does not allow the &#8220;target&#8221; attribute within a tags.  Now, by no means did I come up with this solution, I found it <a href="http://www.sitepoint.com/article/standards-compliant-world" rel="external">here</a>.  There are far brighter folks than me kickin it on the web and I can only express my gratitude for them to share their solutions.  Moving on..</p>
<p>Instead of using target=&#8221;_blank&#8221; one must use rel=&#8221;external&#8221;.  But the fun doesn&#8217;t stop there, one also needs to include a JavaScript file on every page that looks like this.</p>
<p><code>function externalLinks() {<br />
if (!document.getElementsByTagName) return;<br />
var anchors = document.getElementsByTagName("a");<br />
for (var i=0; i&lt;anchors.length; i++) {<br />
var anchor = anchors[i];<br />
if (anchor.getAttribute("href") &amp;&amp;<br />
anchor.getAttribute("rel") == "external")<br />
anchor.target = "_blank";<br />
}<br />
}<br />
window.onload = externalLinks;</code></p>
<p>All in all, it&#8217;s a great solution to a problem, that I feel, shouldn&#8217;t exist.  But that&#8217;s just me.</p>
<p><strong>2. Feeds Compliance</strong> &#8211; I listed my feeds on every page with contact information.  When I went to validate my code, I found the W3C really didn&#8217;t like my flickr feed.  The workaround:</p>
<p>I opened a FeedBurner account and ran my feeds through them.  Upon which, I also now have tracking for my RSS feeds.  I am still not totally convinced of the accuracy of FeedBurner, but I really appreciate their effort to provide this as a limited service for free.</p>
<p>This particular problem brings up the lack of effort from many of the cool &#8220;web 2.0&#8243; companies to bring their services up to standards.  While I understand they are focused on their service, it would be nice to see a little more love shown to the standards community.</p>
<p><strong>3. YouTube Embed</strong> &#8211; Yet to be solved.  James over at <a href="http://www.thegoodharvest.net" rel="external">The Good Harvest</a>, is tackling the problem.  More flash wizardry to come.</p>
<p><strong>4 Building good clean XHTML and CSS</strong> &#8211; More important than anything I have mentioned is to practice good coding.  Think about what you are doing before you do it.  I am not claiming to have perfect code, but I am claiming that is what I stive for.  If you care to take it there, I am more than open to suggestions on my own coding practices.  Always learning&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eleven3.com/video/building-it-strict-xhtml-compliance/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
