<?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"
	>

<channel>
	<title>Developer Tutorials' Webmaster Blog &#187; markup</title>
	<atom:link href="http://www.developertutorials.com/blog/tag/markup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.developertutorials.com/blog</link>
	<description>Keeping webmasters up-to-date on technology.</description>
	<pubDate>Tue, 02 Sep 2008 14:59:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>HTML 5 On It&#8217;s Way</title>
		<link>http://www.developertutorials.com/blog/general/html-5-on-its-way-209/</link>
		<comments>http://www.developertutorials.com/blog/general/html-5-on-its-way-209/#comments</comments>
		<pubDate>Fri, 30 May 2008 21:37:48 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[html]]></category>

		<category><![CDATA[markup]]></category>

		<category><![CDATA[semantics]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/general/html-5-on-its-way-209/</guid>
		<description><![CDATA[All languages need constant revision, updating and expansion.  As we move closer to a unified and cohesive semantic web, HTML is growing by the day to include new things.  The latest complete overhaul is currently being developed and many representatives from Apple (Safari), Mozilla (Firefox), Opera and Microsoft (Internet Explorer) are being included [...]]]></description>
			<content:encoded><![CDATA[<p>All languages need constant revision, updating and expansion.  As we move closer to a unified and cohesive semantic web, HTML is growing by the day to include new things.  The latest complete overhaul is currently being developed and many representatives from Apple (Safari), Mozilla (Firefox), Opera and Microsoft (Internet Explorer) are being included in talks.<br />
<span id="more-209"></span><br />
<a href="http://alistapart.com/articles/previewofhtml5">A List Apart</a> Takes a look at many of the new elements. </p>
<blockquote cite="http://alistapart.com/articles/previewofhtml5"><p>HTML 5 introduces a whole set of new elements that make it much easier to structure pages. Most HTML 4 pages include a variety of common structures, such as headers, footers and columns and today, it is fairly common to mark them up using div elements, giving each a descriptive id or class.  The use of div elements is largely because current versions of HTML 4 lack the necessary semantics for describing these parts more specifically. HTML 5 addresses this issue by introducing new elements for representing each of these different sections.</p></blockquote>
<p>HTML 4<br />
<img src="http://farm4.static.flickr.com/3120/2536586657_6016dabae6.jpg"></p>
<p>vs.</p>
<p>HTML 5<br />
<img src="http://farm3.static.flickr.com/2131/2537404690_9e3571360b.jpg"></p>
<p>It would seem that HTML5 is fully embracing semantic markup.  Here&#8217;s an example of how your actual document might look:</p>
<pre>
&lt;body&gt;
  &lt;header&gt;...&lt;/header&gt;
  &lt;nav&gt;...&lt;/nav&gt;
  &lt;article&gt;
    &lt;section&gt;
      ...
    &lt;/section&gt;
  &lt;/article&gt;
  &lt;aside&gt;...&lt;/aside&gt;
  &lt;footer&gt;...&lt;/footer&gt;
&lt;/body&gt;
</pre>
<p>All of this is extremely exciting and will make coding for the web much faster and much more accessible. </p>
<p>Read the entire article <a href="http://alistapart.com/articles/previewofhtml5">here</a>.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d209" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/general/html-5-on-its-way-209/&amp;title=HTML+5+On+It%26%238217%3Bs+Way" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/general/html-5-on-its-way-209/&amp;title=HTML+5+On+It%26%238217%3Bs+Way" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/general/html-5-on-its-way-209/&amp;title=HTML+5+On+It%26%238217%3Bs+Way" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/general/html-5-on-its-way-209/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Designing and Coding a Wordpress Theme From Scratch (Part 5)</title>
		<link>http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/</link>
		<comments>http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 04:48:59 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[cache]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[markup]]></category>

		<category><![CDATA[photoshop]]></category>

		<category><![CDATA[psd]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/</guid>
		<description><![CDATA[Going From Photoshop to XHTML to Wordpress Theme.  In this multi-part series I'll detail how to create and design a Wordpress theme in Photoshop and take it from just an idea to fully coded.
]]></description>
			<content:encoded><![CDATA[<p><a target="_blank" href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/">Image heavy websites</a> have one problem: load time.  So if you&#8217;re designing a Wordpress theme that relies heavily on images like one made in Photoshop, you want to do everything you can to increase speed.  a) You want the images to display as shortly after the text does as possible and b) you want to do everything to help users on slower connections.</p>
<p>One way to do this is with <a href="http://www.designcodeexecute.com/2008/04/09/javascript-preload-images-script/" target="_blank">javascript</a>, the other way is with <a href="http://www.netmechanic.com/news/vol6/css_no18.htm" target="_blank">CSS</a>.</p>
<p><span id="more-149"></span></p>
<p><b>Preloading Images with Javascript</b></p>
<p>Javascript is unfortunately abused all over the web.  It&#8217;s used for scripts that create pop-up ads, pop-under ads, and to change browser homepages.  So the only draw back to this approach is that some users have deliberately turned off javascript in their browsers to thwart abusers.  No big deal.  If the user has javascript turned off, the technique I&#8217;m about to share will be ignored and the page will load normally.</p>
<ol>
<li>So how is it done? In the folder that contains your index.html file and stylesheets, create a folder called &#8216;Scripts&#8217;. </li>
<li>Let&#8217;s create a blank document in the text editor and call it <strong>preload.js</strong></li>
<li>We&#8217;re going to create an array of calls for images that will start to load as soon as the head of the page loads.  List all the images you want to have &#8216;headstart&#8217; on loading here.  This can include images that are linked to on the page but that don&#8217;t appear on the page.  When dealing with a Photoshop design that is being marked up to XHTML you should place all the slices here.</li>
<li>Next you want to place the following code in the header section of your HTML document just after the &lt;title&gt; and &lt;meta&gt; tags.
<pre>
&lt;script type="text/javascript" src="scripts/preload.js"&gt; &lt;/script&gt;
</pre>
<p>This tells the HTML document to look for the script before the stylesheet and subsequently, to request the array of images the stylesheet needs to load.  Alternatively you could place the javascript inline but I prefer using external documents.
</li>
<li>The contents of the Javascript file should look like this:
<pre>
if (document.images)
{
preload_image = new Image();
img_path = new Array();	

   img1 = new Image();
   img2 = new Image();
   img3 = new Image();
   img4 = new Image();
   img5 = new Image();
   img6 = new Image();
   img7 = new Image();
   img8 = new Image();
   img9 = new Image();
   img10 = new Image();
   img11 = new Image();
   img12 = new Image();
   img1 = new Image();
   img1.src = "../images/yourimage_01.png";
   img2.src = "../images/yourimage_02.png";
   img3.src = "../images/yourimage_03.png";
   img4.src = "../images/yourimage_04.png";
   img5.src = "../images/yourimage_05.png";
   img6.src = "../images/yourimage_06.png";
   img7.src = "../images/yourimage_07.png";
   img8.src = "../images/yourimage_08.png";
   img9.src = "../images/yourimage_09.png";
   img10.src = "../images/yourimage_10.png";
   img11.src = "../images/yourimage_11.png";
   img12.src = "../images/yourimage_12.png";
   img13.src = "../image/yourimage_13.png";

for(var i = 0; i&lt;=img_path.length; i++)
preload_image.src = img_path[i];
}
</pre>
</li>
<li>That&#8217;s it.  You can use this to preload images for the next page, icons, or any number of things but the idea is to use it to call the array before they&#8217;re called elsewhere on the page.</li>
</ol>
<p><b>Preloading Images with CSS</b></p>
<p>Another method is to preload images in the stylesheet.  This method is fairly useless on the actual homepage but it can be used to preload all sorts of images on subsequent pages.  Lets look at the code:</p>
<pre>
     .hiddenPic {display:none;}
</pre>
<p>This class should be placed somewhere in your stylesheet.  You can place it inline in your html document and it would look like this:</p>
<pre>
     &lt;style type="text/css"&gt;
     .hiddenPic {display:none;}
     &lt;/style&gt;
</pre>
<p>Next, at the <strong>bottom</strong> of your html page just before the &lt;/body&gt; closing tag, we need to call all the images from the next page we want preloaded and apply the <strong>.hiddenPic</strong> class:</p>
<pre>
     &lt;img src="yourimage.jpg" alt="" title="" height="" width="" class="hiddenPic"&gt;

     &lt;img src="yourimage01.jpg" alt="" title="" height="" width="" class="hiddenPic"&gt;

     &lt;img src="yourimage02.jpg" alt="" title="" height="" width="" class="hiddenPic"&gt;

&lt;/body&gt;
</pre>
<p>How does it work?  Essentially you&#8217;re calling the images when the browser reads the page and hiding them before they are ever displayed with the <strong>display:none;</strong> line.  The idea is that the browser downloads the images and caches them anyways so that when the user clicks through to the next page the users browser will note that the images being requested have already been cached and won&#8217;t waste time downloading them again.</p>
<p>Now that load time has been reduced, in Part 6 we&#8217;ll get back to marking up our XHTML to PHP and developing our Wordpress theme.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d149" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+5%29" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+5%29" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+5%29" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/javascript/designing-and-coding-a-wordpress-theme-from-scratch-part-5-149/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Designing and Coding a Wordpress Theme From Scratch (Part 3)</title>
		<link>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/</link>
		<comments>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 18:07:57 +0000</pubDate>
		<dc:creator>JonGos</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[General]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Photoshop]]></category>

		<category><![CDATA[WordPress]]></category>

		<category><![CDATA[code]]></category>

		<category><![CDATA[css]]></category>

		<category><![CDATA[markup]]></category>

		<category><![CDATA[photoshop]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/</guid>
		<description><![CDATA[Going From Photoshop to XHTML to Wordpress Theme.  In this multi-part series I'll detail how to create and design a Wordpress theme in Photoshop and take it from just an idea to fully coded.
]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve just started our first Wordpress theme! In <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-1-143/" target="_blank">Part 1</a> and <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-2-144/" target="_blank">Part 2</a> we reviewed some techniques that will allow our design to be marked up to XHTML.  In this lesson you&#8217;ll learn exactly how to do this and why it isn&#8217;t exactly as easy as it seems.</p>
<p><b>Photoshop to XHTML in 24 Hours</b></p>
<p>So we&#8217;ve all seen those ads for websites that say they can &#8220;Photoshop to XHTML/CSS in X Ammount of time&#8221; right?  No?  well here&#8217;s <a>39 of them</a>.  What exactly are these service doing that you can&#8217;t as the theme designer?  Nothing.  If you feel so inclined, save yourself the fee (usually around $100 or so dollars) and do it yourself!</p>
<p><span id="more-146"></span></p>
<ul>
<li>1. Select <strong>File &gt; Save For Web and Devices</strong></li>
<p><img src="http://farm3.static.flickr.com/2042/2449793616_c384832f18_m.jpg"></p>
<li>2. Click the arrow in the top right to optimize your websites color and download time. I usually don&#8217;t optimize for anything slower than 56Kbps because I use another technique which you&#8217;ll find out about in <a href="">Part 4</a>.</li>
<p><img src="http://farm3.static.flickr.com/2245/2448968481_778ca9c6ae_m.jpg"></p>
<li>3. Under preset select whether you want to use PNG, JPEG, or GIF formats and the various quality settings for each.</li>
<li>4. Click &#8220;Save&#8221;.</li>
<li>5. A window will pop up.  Here You want to set <strong>Format</strong> to &#8220;HTML and Images&#8221;.  Under settings select <strong>Other</strong></li>
<p><img src="http://farm3.static.flickr.com/2119/2448968435_e2a0865c04.jpg"></p>
<li>6. You&#8217;re going to set four options.  For <strong>HTML</strong> you want to make sure &#8216;Output XHTML&#8217; is selected. For <strong>Slices </strong>you want to make sure &#8216;Generate CSS&#8217; is selected instead of &#8216;Generate Table&#8217;.  Skip the remaining two options Background and Saving Files, they aren&#8217;t particularly necessary.
<p><img src="http://farm3.static.flickr.com/2036/2448968389_e90527cc8a.jpg" alt="psd to xhtml">&gt;</li>
<li>7. Save the file, navigate to and open the resulting HTML file in your text editor.  You&#8217;ll notice that Photoshop CSS has annoyingly put all your images inline with your HTML, meaning it&#8217;s not in a separate stylesheet like it should be.</li>
</ul>
<p>In the <a href="http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-4-147/">next step</a> we&#8217;ll discuss how to go from inline XHTML to the two file (.html &#038; .css) standard that will be needed to mark up the design to php.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark" style="float:left;">
<div class="d146" style="overflow:hidden">
<div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+3%29" title="Add to&nbsp;Del.icio.us">Del.icio.us</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+3%29" title="Add to&nbsp;Digg This">Digg This</a></div><div id="socialstyles"><a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/&amp;title=Designing+and+Coding+a+Wordpress+Theme+From+Scratch+%28Part+3%29" title="Add to&nbsp;Stumble">Stumble</a></div></div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.developertutorials.com/blog/design/designing-and-coding-a-wordpress-theme-from-scratch-part-3-146/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
