<?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>Attackr.com &#187; Developer Portal for web designers, developers and programmers</title>
	<atom:link href="http://www.attackr.com/tag/valid-xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.attackr.com</link>
	<description>Come To Share, Come To Learn</description>
	<lastBuildDate>Tue, 20 Dec 2011 13:09:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Why Most Sites Don&#8217;t Bother With Web Standards</title>
		<link>http://www.attackr.com/why-most-sites-dont-bother-with-web-standards/</link>
		<comments>http://www.attackr.com/why-most-sites-dont-bother-with-web-standards/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 10:00:58 +0000</pubDate>
		<dc:creator>Karen</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Valid (X)HTML]]></category>

		<guid isPermaLink="false">http://www.attackr.com/?p=185</guid>
		<description><![CDATA[If you are a coder, and you are proud to write valid XHTML and CSS based sites, you&#8217;ve probably noticed many big sites like Google.com, Yahoo.com, etc, don&#8217;t have valid code and in fact have warnings, and the odd error, according to the results I get when I use my HTML Tidy Firefox add-on. So [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a coder, and you are proud to write valid XHTML and CSS based sites, you&#8217;ve probably noticed many big sites like Google.com, Yahoo.com, etc, don&#8217;t have valid code and in fact have warnings, and the odd error, according to the results I get when I use my HTML Tidy Firefox add-on.</p>
<p>So why is that? You would think that the developers for those sites are top-notch and well-versed in current web standards. And the answer is, the average visitor to these sites don&#8217;t give a fig about web standards and are not viewing source code when they are browsing, searching the web, or whatever. Those web giants know that the single most important thing on the web is to provide what people are looking for and that is information. </p>
<p>Content is far more important then whether HTML code is perfectly formatted. The average site visitor doesn&#8217;t know and doesn&#8217;t care about perfect code.  Web designers who code according to web standards are appreciated by some, I&#8217;m sure , but they are really only judged by their peers. Web designers and their clients need only worry about how to please the target market of the web site. Nothing else matters.</p>
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li><a href='http://www.attackr.com/structuring-your-html-code/' title='Structuring your HTML code'>Structuring your HTML code</a></li>
<li><a href='http://www.attackr.com/avoid-these-common-xhtml-errors/' title='Avoid These Common XHTML Errors'>Avoid These Common XHTML Errors</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.attackr.com/why-most-sites-dont-bother-with-web-standards/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Structuring your HTML code</title>
		<link>http://www.attackr.com/structuring-your-html-code/</link>
		<comments>http://www.attackr.com/structuring-your-html-code/#comments</comments>
		<pubDate>Sun, 17 Jun 2007 21:19:15 +0000</pubDate>
		<dc:creator>niemi</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Valid (X)HTML]]></category>

		<guid isPermaLink="false">http://www.attackr.com/structuring-your-html-code/</guid>
		<description><![CDATA[We talk a lot about semantic and valid HTML. What people tend to forget are the structure of their HTML code. If you take a look at the source code of ten random sites, chances are that nine of them are very messy €“ source code-wise. Is it worth spending time on structuring it probably? [...]]]></description>
			<content:encoded><![CDATA[<p>We talk a lot about semantic and valid HTML. What people tend to forget are the structure of their HTML code. If you take a look at the source code of ten random sites, chances are that nine of them are very messy €“ source code-wise.</p>
<p>Is it worth spending time on structuring it probably? After all it doesn&#8217;t affect anything. Spiders don&#8217;t care and general users won&#8217;t notice as they won&#8217;t check your source code, most people don&#8217;t even know what that is.</p>
<p>In general, if you can say that no-one is going to look at your source code, then structuring is meaningless. But you will be surprised how often your source code could be viewed. <span id="more-86"></span></p>
<p>You really should structure your HTML code if you can answer yes to one of following questions:</p>
<p>1.	Did I make the site for a person/company that is going to update the content themselves directly in the HTML?</p>
<p>2.	Did I make the site to promote my skills a web designer, maybe as a part of a portfolio?</p>
<p><strong>Alright, but how do I structure the HTML?</strong></p>
<p>First of all, get rid of your favorite code-editor. The way they show the code tend not to match the way it is looks after it has been interpreted by the browser. Open your .html/htm in Windows Notepad, and clean it up.</p>
<p>Keep related code without any breaks and with the same left margin. Either use breaks to separate different groups of code, or better, descriptive comments. Related code could be the code within the HEAD tags. You could categorize your header by grouping it up with HTML comments. Separate links to .js from links to .css and separate META tags from .js and .css.</p>
<p>Example of <a href="http://niemi.it">good</a> HTML structure.<br />
Example of <a href="http://kreativpotens.dk">bad</a> HTML structure.<br />
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li><a href='http://www.attackr.com/avoid-these-common-xhtml-errors/' title='Avoid These Common XHTML Errors'>Avoid These Common XHTML Errors</a></li>
<li><a href='http://www.attackr.com/why-most-sites-dont-bother-with-web-standards/' title='Why Most Sites Don&#8217;t Bother With Web Standards'>Why Most Sites Don&#8217;t Bother With Web Standards</a></li>
<li><a href='http://www.attackr.com/web-design-for-the-beginner/' title='Web Design For The Beginner'>Web Design For The Beginner</a></li>
<li><a href='http://www.attackr.com/combining-flash-with-htmlcss/' title='Combining flash with HTML/CSS'>Combining flash with HTML/CSS</a></li>
<li><a href='http://www.attackr.com/your-first-website/' title='Your first website'>Your first website</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.attackr.com/structuring-your-html-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Avoid These Common XHTML Errors</title>
		<link>http://www.attackr.com/avoid-these-common-xhtml-errors/</link>
		<comments>http://www.attackr.com/avoid-these-common-xhtml-errors/#comments</comments>
		<pubDate>Fri, 18 Aug 2006 19:54:49 +0000</pubDate>
		<dc:creator>Karen</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Valid (X)HTML]]></category>

		<guid isPermaLink="false">http://www.attackr.com/avoid-these-common-xhtml-errors/</guid>
		<description><![CDATA[Many visitors to my site have downloaded my XHTML templates and then email me to show me how they are using my work.

Some are less-experienced coders or do not really know how XHTML differs from HTML.

Here are the most common errors I've come across...]]></description>
			<content:encoded><![CDATA[<p>Many visitors to my site have downloaded my XHTML templates and then email me to show me how they are using my work.</p>
<p>Some are less-experienced coders or do not really know how XHTML differs from HTML.</p>
<p>Here are the most common errors I&#8217;ve come across:</p>
<ol>
<li>Not closing empty elements</li>
<ul>
<li>Wrong: &lt;br&gt;</li>
<li>Right: &lt;br <strong>/</strong>&gt;</li>
</ul>
<li>Not closing non-empty elements</li>
<ul>
<li>Wrong: &lt;p&gt;This is a paragraph.&lt;p&gt; This is another paragraph.</li>
<li>Right: &lt;p&gt;This is a paragraph.&lt;/p&gt; <strong>&lt;p&gt;</strong>This is a second paragraph.<strong>&lt;/p&gt;</strong></li>
</ul>
<li>Improperly nesting elements</li>
<ul>
<li>Wrong: &lt;em&gt;<strong>&lt;strong&gt;</strong>This is random text.&lt;/em&gt;<strong>&lt;/strong&gt;</strong></li>
<li>Right: &lt;em&gt;<strong>&lt;strong&gt;</strong>This is random text.<strong>&lt;/strong&gt;</strong>&lt;/em&gt;</li>
</ul>
<li>Nesting block-level elements within inline elements</li>
<ul>
<li>Wrong: <strong> &lt;em&gt;</strong> &lt;h2&gt;About Us&lt;/h2&gt;&lt;/em&gt;</li>
<li>Right: &lt;h2&gt;<strong>&lt;em&gt;</strong>About Us&lt;/em&gt;&lt;/h2&gt;</li>
</ul>
<li>No alternate text for images (using the alt attribute, which helps make pages accessible for devices that do not load images or screen-readers for the blind)</li>
<ul>
<li>Wrong: &lt;img xsrc=&quot;images/logo.jpg&quot; /&gt;</li>
<li>Right: &lt;img xsrc=&quot;/images/logo.jpg&quot;<br />
<strong>alt=&quot;Company Logo&quot;</strong> /&gt;</li>
</ul>
<li>Not putting quotation marks around attribute values</li>
<ul>
<li>Wrong: &lt;td colspan=2&gt;</li>
<li>Right: &lt;td colspan=<strong>&quot;2&quot;</strong>&gt;</li>
</ul>
<li>Using the ampersand outside of entities (use &amp;amp; to display the ampersand character)</li>
<ul>
<li>Wrong: &lt;title&gt;Love &amp; Marriage&lt;/title&gt;</li>
<li>Right: &lt;title&gt;Love <strong>&amp;amp;</strong> Marriage&lt;/title&gt;</li>
</ul>
<li>Using uppercase tag names and/or tag attributes</li>
<ul>
<li>Wrong: &lt;<strong>BODY</strong>&gt;&lt;P&gt;My Web Site&lt;/P&gt;&lt;/BODY&gt;</li>
<li>Correct: &lt;<strong>body</strong>&gt;&lt;p&gt;My Web Site&lt;/p&gt;&lt;/body&gt;</li>
</ul>
</ol>
<p>By making sure you don&#8217;t make the above mistakes, you are well on your way to having an XHTML website that will validate.<br />
<h3 class='related_post_title'>Related Posts:</h3>
<ul class='related_post'>
<li><a href='http://www.attackr.com/structuring-your-html-code/' title='Structuring your HTML code'>Structuring your HTML code</a></li>
<li><a href='http://www.attackr.com/the-right-tool-for-the-job/' title='The Right Tool For The Job'>The Right Tool For The Job</a></li>
<li><a href='http://www.attackr.com/tableless-web-designs-why-i-switched/' title='Tableless Web Designs: Why I Switched'>Tableless Web Designs: Why I Switched</a></li>
<li><a href='http://www.attackr.com/why-most-sites-dont-bother-with-web-standards/' title='Why Most Sites Don&#8217;t Bother With Web Standards'>Why Most Sites Don&#8217;t Bother With Web Standards</a></li>
<li><a href='http://www.attackr.com/web-design-for-the-beginner/' title='Web Design For The Beginner'>Web Design For The Beginner</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.attackr.com/avoid-these-common-xhtml-errors/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
