<?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>Design &#38; Development Blog &#124; Jared Lunde &#187; html</title>
	<atom:link href="http://www.jaredlunde.com/blog/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jaredlunde.com/blog</link>
	<description>A logo design blog and web development blog by designer and developer Jared Lunde.</description>
	<lastBuildDate>Sat, 04 Sep 2010 02:53:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Smart Layouts with PHP and HTML in Web Design</title>
		<link>http://www.jaredlunde.com/blog/smart-layouts-with-php-html/</link>
		<comments>http://www.jaredlunde.com/blog/smart-layouts-with-php-html/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 00:13:25 +0000</pubDate>
		<dc:creator>Jared Lunde</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[html layouts]]></category>
		<category><![CDATA[html markup]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php includes]]></category>

		<guid isPermaLink="false">http://www.jaredlunde.com/blog/?p=140</guid>
		<description><![CDATA[Anyone with knowledge of HTML can do this and trust me it will save you loads of time in the long run.  The main idea behind this structure is that anything that is going to be on more than one page in your website is going to be called through a php include.  The reasoning behind it is that if you ever plan on updating the design or structure of your site, you'll be able to do so much quicker through this method because instead of updating each page individually, you'll only have to update one file.  It is also a wonderful solution because of how clean your markup will look.]]></description>
			<content:encoded><![CDATA[<p>Difficulty level: <strong>Novice</strong></p>
<p>Honestly anyone with knowledge of HTML can do this and trust me it will save you loads of time in the long run.  The main idea behind this structure is that anything that is going to be on more than one page in your website is going to be called through a php include.  The reasoning behind it is that if you ever plan on updating the design or structure of your site, you&#8217;ll be able to do so much quicker through this method because instead of updating each page individually, you&#8217;ll only have to update one file.  It is also a wonderful solution because of how clean your markup will look.</p>
<p>The first thing we want to do is map out the areas that we are going to be using on every page on our site.  Let&#8217;s start with the information between our &lt;head&gt; tags.</p>
<p><strong>&lt;head&gt; &#8211; include name: &#8220;head-constants.php&#8221;</strong><br />
Likely culprits in this section include your content type, favicon, stylesheets, javascript and possibly RSS feeds:<br />
<code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;</code><br />
<code>&lt;link rel="stylesheet" href="/global.css" /&gt;</code><br />
<code>&lt;script type="text/javascript" src="/js/global.js"&gt;</script></code><br />
<code>&lt;link rel="shortcut icon" href="/images/favicon.ico" /&gt;</code><br />
<code>&lt;link rel="alternate" type="application/rss+xml" title="Development Blog RSS" href="http://www.jaredlunde.com/blog/feed/" /&gt;</code></p>
<p>Next let&#8217;s think about the &lt;body&gt; of our document.  Since I like to keep similar page structure on all of my sites for easier user navigation, I&#8217;m going to include a file that has the &lt;body&gt; tag within it. This file will be required directly after the &lt;/head&gt; tag.</p>
<p><strong>&lt;body&gt; &#8211; include name: &#8220;body-top.php&#8221;</strong><br />
<code>&lt;body&gt;</code><br />
<code>&lt;div class="main"&gt;</code><br />
<code>&lt;div class="content"&gt;</code></p>
<p>Now that I have my main page structure set in body-top.php, I&#8217;ll want to include a file within body-top.php that takes care of the header portion of my website. </p>
<p><strong>Header &amp; Navigation &#8211; include name: &#8220;header.php&#8221;</strong><br />
Within header.php, we&#8217;ll keep our markup for our logo, navigation, search bar, etc.  Anything that will be in the header of every page on your site.</p>
<p>If you have a sidebar that is constant on your entire site, it&#8217;d be a good idea to include that as well, but for the sake of length I&#8217;m only going to include a footer in this example.</p>
<p><strong>Footer &#8211; include name: &#8220;footer.php&#8221;</strong><br />
The footer is where we will close our body, html and set structure tags.  You may also want to include a footer navigation or copyright information in this file as we did with header.php.<br />
<code>&lt;/div&gt;</code><br />
<code>&lt;/div&gt;</code><br />
<code>&lt;/body&gt;</code><br />
<code>&lt;/html&gt;</code></p>
<p>So what does this look like when it is all pieced together into a document?<br />
<code><br />
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Hello World!&lt;/title&gt;<br />
&lt;meta name="description" content="An example of a well-structured HTML layout" /&gt;<br />
</code><br />
<code><br />
<strong>&lt;?php require('head-constants.php'); ?&gt;</strong><br />
</code><br />
<code><br />
&lt;/head&gt;<br />
</code><br />
<code><br />
<strong>&lt;?php require('body-top.php'); ?&gt;</strong><br />
</code><br />
<code><br />
Here is the rest of our body content.<br />
</code><br />
<code><br />
<strong>&lt;?php require('footer.php'); ?&gt;</strong><br />
</code></p>
<p>It&#8217;s looks clean and pretty doesn&#8217;t it?  What&#8217;s great is that we can now spend 10 minutes updating all of our pages instead of 10 hours or having to deal with the horror of a massive find/replace.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jaredlunde.com/blog/smart-layouts-with-php-html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
