<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:series="http://unfoldingneurons.com/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Simon W. Jackson - Web &amp; Graphic Design</title>
	
	<link>http://simonwjackson.com</link>
	<description>Designing beautiful web sites since 1995.</description>
	<lastBuildDate>Thu, 22 Sep 2011 19:56:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SimonWJackson" /><feedburner:info uri="simonwjackson" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>CSS3 101: What is CSS?</title>
		<link>http://feedproxy.google.com/~r/SimonWJackson/~3/exmt36vLs9Q/what-is-css</link>
		<comments>http://simonwjackson.com/what-is-css#comments</comments>
		<pubDate>Thu, 22 Sep 2011 08:12:18 +0000</pubDate>
		<dc:creator>Simon W. Jackson</dc:creator>
				<category><![CDATA[Classroom]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[lessons]]></category>
		<guid isPermaLink="false">http://simonwjackson.com/?p=68</guid>
		<description><![CDATA[Recently, I’ve had quite a few people ask me some entry level questions about CSS. Thinking back, I remember coming across some of these same questions myself as I was writing code. Learning some of these things in the beginning would have saved me countless hours of debugging. In an effort to give back to the community, I’ve decided to start a series of CSS tutorials called CSS 101.]]></description>
			<content:encoded><![CDATA[<p>Recently, I&#8217;ve had quite a few people ask me some entry level questions about CSS. Thinking back, I remember coming across some of these same questions myself as I was writing code. Learning some of the basics in the beginning would have saved me countless hours of debugging. Now with <strong>CSS3</strong> making its way into the mainstream, I&#8217;ve decided to start a series of CSS tutorials called <a href="/series/css3-101"><em>CSS3</em> 101</a>.</p>
<p><span id="more-68"></span></p>
<p>Before getting started, you should you have some basic knowledge of HTML5. If not, W3Schools has a great <a title="HTML5 Tutorial" href="http://www.w3schools.com/html5/default.asp">HTML5 Tutorial</a>.</p>
<h2>What is CSS?</h2>
<p>According to wikipedia:</p>
<blockquote><p><strong>Cascading Style Sheets</strong> (<strong>CSS</strong>) is a <a href="http://en.wikipedia.org/wiki/Style_sheet_language">style sheet language</a> used to describe the <a href="http://en.wikipedia.org/wiki/Presentation_semantics">presentation semantics</a> (the look and formatting) of a document written in a <a href="http://en.wikipedia.org/wiki/Markup_language">markup language</a>.</p></blockquote>
<p>In other words, CSS is the language that tells other documents, such as HTML, how to look and feel, where elements are placed, etc. Back in the stone age of web development, these definitions were placed directly in the HTML itself:</p>
<div class="codecolorer-container html4strict railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">font</span> <span style="color: #000066;">color</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#fe234a&quot;</span> <span style="color: #000066;">size</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #000066;">face</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;arial&quot;</span>&gt;</span>Hello World<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">font</span>&gt;</span></div></td></tr></tbody></table></div>
<p>This method causes a few problems:</p>
<ol>
<li><strong>Messy Code</strong>: As you can probably imagine from the example above, if this process is continued, It will undoubtedly lead to messy code in the long run. In addition, this extra code bloat adds to the overall file size of the HTML document, which can increase your <a title="Bandwidth" href="http://en.wikipedia.org/wiki/Bandwidth_(computing)">server bandwidth</a>. CSS simplifies this by being much more concise and descriptive:
<div class="codecolorer-container html4strict railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;bright&quot;</span>&gt;</span>Hello World!<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span></div></td></tr></tbody></table></div>
</li>
<li><strong>Difficult to update</strong>: For example: Lets say you have a website with 20 HTML documents. Using the old method of placing definitions directly into the document, would require you to make all changes individually across all 20 files! Using CSS will allow you to make the change once and have it reflect every <a title="How to attach a CSS file to an HTML document" href="#attach-css-to-html">document it&#8217;s attached to</a>.</li>
<li><strong>Separate logic from design</strong>: Sure, your website might look fantastic right now, but what about 5 years from now when it starts looking dated? Using CSS efficiently will help ease this transition in the future.</li>
</ol>
<h2>What CSS Isn&#8217;t</h2>
<ul>
<li><strong>CSS can not create content.</strong>CSS will manipulate content it&#8217;s attached to but can not create it. This is created in the HTML or XML file.</li>
<li><strong>CSS is not a programming or scripting language</strong>.You wont be able to assign variables or write advanced conditional statements. CSS acts like a template, which is why it&#8217;s so powerful.There are a few exceptions to this. If you are a little more advanced and would like to jump ahead, check out <a href="http://sass-lang.com">SASS</a> and <a href="http://lesscss.org/">LESS</a>.</li>
</ul>
<h2>What&#8217;s Next?</h2>
<p>The next lesson will cover the basic CSS semantics &amp; embedding VS. linking to documents.</p>
<p>Thanks for reading! We’ve covered a lot, but have still only scratched the surface of what’s possible with CSS. I hope this served as a helpful primer!</p>
<img src="http://feeds.feedburner.com/~r/SimonWJackson/~4/exmt36vLs9Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://simonwjackson.com/what-is-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<series:name><![CDATA[CSS3 101]]></series:name>
	<feedburner:origLink>http://simonwjackson.com/what-is-css</feedburner:origLink></item>
		<item>
		<title>HTML5 Skeleton Template</title>
		<link>http://feedproxy.google.com/~r/SimonWJackson/~3/tMqscbQkrbQ/html5-skeleton-template</link>
		<comments>http://simonwjackson.com/html5-skeleton-template#comments</comments>
		<pubDate>Mon, 29 Aug 2011 17:02:12 +0000</pubDate>
		<dc:creator>Simon W. Jackson</dc:creator>
				<category><![CDATA[Notebook]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[html5]]></category>
		<guid isPermaLink="false">http://simonwjackson.com/?p=77</guid>
		<description><![CDATA[These are the HTML5 skeletons I start out with on every new web design project. Please ...]]></description>
			<content:encoded><![CDATA[<p>These are the HTML5 skeletons I start out with on every new web design project. Please note: this page will be modified as my development requirements change. Enjoy!</p>
<p><span id="more-77"></span></p>
<h2>Plain and Simple</h2>
<div class="codecolorer-container html4strict railscasts" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00bbdd;">&lt;!DOCTYPE html&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en&quot;</span>&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;x-ua-compatible&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ie=edge&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;description&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">base</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;/&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;viewport&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;width=device-width, initial-scale=1.0&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;css/styles.css&quot;</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/jquery.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span> async defer&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js/script.js&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;utf-8&quot;</span> async defer&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span><br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span><br />
&nbsp; &nbsp; &nbsp; Hello World!<br />
&nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></div></td></tr></tbody></table></div>
<img src="http://feeds.feedburner.com/~r/SimonWJackson/~4/tMqscbQkrbQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://simonwjackson.com/html5-skeleton-template/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://simonwjackson.com/html5-skeleton-template</feedburner:origLink></item>
	</channel>
</rss>

