<?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 Shack &#187; introduction</title>
	<atom:link href="http://designshack.net/tag/introduction/feed" rel="self" type="application/rss+xml" />
	<link>http://designshack.net</link>
	<description>Inspiration, CSS Gallery &#38; Community News</description>
	<lastBuildDate>Thu, 09 Feb 2012 06:00:00 +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>A Designer&#8217;s Introduction to Programming</title>
		<link>http://designshack.net/articles/javascript/an-designers-introduction-to-programming/</link>
		<comments>http://designshack.net/articles/javascript/an-designers-introduction-to-programming/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 19:13:15 +0000</pubDate>
		<dc:creator>Joshua Johnson</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://designshack.net/?p=26023</guid>
		<description><![CDATA[Designers are often quite hesitant to venture beyond the realms of HTML and CSS into the territory of scripting and programming languages, and for good reason. Programming requires a very different set of skills than mocking up web pages. Further, there are so many different things to learn that most designers don&#8217;t even know where [...]]]></description>
			<content:encoded><![CDATA[<p>Designers are often quite hesitant to venture beyond the realms of HTML and CSS into the territory of scripting and programming languages, and for good reason. Programming requires a very different set of skills than mocking up web pages. Further, there are so many different things to learn that most designers don&#8217;t even know where to begin: JavaScript, PHP, Ruby, Rails, how can you possibly keep up? </p>
<p>However, in practice, programming turns out to be much less scary than designers imagine it to be. Today I&#8217;m going to show you how programming is a skill that you can learn once and then apply to each new language that you pick up. We&#8217;ll take a look at three different programming constructs in three different languages to see how similar they really are. If you&#8217;d like to get started in programming but don&#8217;t know a single thing about it, this article is for you.</p>
<p><span id="more-26023"></span><br />
<em>Like the article? Be sure to subscribe to our <a href="feed://feeds.feedburner.com/designshack">RSS feed</a> and follow us on <a href="http://twitter.com/designshack">Twitter</a> to stay up on recent content.</em></p>
<h2>Fear Not, You Just Might Like It</h2>
<p>This site is generally targeted towards designers, and from personal experience I know that approaching programming for the first time as a designer is extremely intimidating. Designers are visual thinkers, we thrive through creation and experimentation using our mind&#8217;s eye and an expert knowledge of the tools of our trade.</p>
<p>Generally, we&#8217;re the kind of people that hated math class and anything else where creativity didn&#8217;t seem to have an obvious foothold.</p>
<div class="pullquote-r">
&#8220;Generally, we&#8217;re the kind of people that hated math class and anything else where creativity didn&#8217;t seem to have an obvious foothold.&#8221;
</div>
<p></ br></p>
<p>Programmers are problem solvers. They love logic puzzles and tinkering with code for hours in the absolute absence of visuals of any kind. Keep in mind that these two categories of people aren&#8217;t mutually exclusive. If you fit both descriptions, you&#8217;ll likely absolutely love programming. </p>
<h3>Not HTML and CSS</h3>
<p>We&#8217;re quickly reaching a point where most web designers know at least a little bit about coding HTML and/or CSS. This experience and knowledge will indeed help you, but perhaps not as much as you might think. </p>
<p>HTML is a *markup language* and CSS is a *style sheet language*, they&#8217;re used primarily to format and insert fairly static content into pre-built pages. How you work with them is in all reality very different from wielding a *scripting language* or *object-oriented programming language*, which are the kind of hardcore programming tools you&#8217;ll find in use on the web today. </p>
<h2>The Big Secret About Programming</h2>
<p>That last part was the bad news, but fear not, there&#8217;s good news on the horizon. If you walk into a bookstore and wander over to the programming section, you&#8217;re likely to be completely intimidated. There are so many different things to learn! This intimidation is furthered when you happen to meet one of the super geniuses that seems to know pretty much all of the programming languages in existence. How in the world do people find the time to learn this stuff? Many beginners are so completely put off at this point that they give up before they ever even try.</p>
<div class="pullquote-r">
&#8220;Programming languages tend to be very similar. Many of them use the same building blocks and similar tool sets to achieve their goals.&#8221;
</div>
<p></ br></p>
<p>The big secret that you don&#8217;t know if you&#8217;ve never really jumped into programming is that programming languages tend to be very similar. Many of them use the same building blocks and similar tool sets to achieve their goals. </p>
<p>I learned this little secret in my first interaction with programming: a Java class in college (not to be confused with JavaScript). Though I myself was a strapping young lad, the class was largely filled with men in their 30s and 40s. Virtually all of them already had jobs in programming and had been at it for twenty years or more. They were simply employed in the use of other languages and attempting to expand their skill set, often at their employer&#8217;s encouragement and expense.</p>
<p>Walking into the class on the first day, none of us knew much, if anything, about Java. However, by the third class, these guys were breezing past me. I was writing horribly simple little code snippets based on the fundamentals that we had learned. These guys were taking the same fundamentals and building elaborate applications with all kinds of cool functions way beyond the requirements for the assignment. </p>
<div class="pullquote-r">
&#8220;Was I inept? It turns out, fortunately for me, that the answer wasn&#8217;t so simple.&#8221;
</div>
<p></ br></p>
<p>Was I inept? It turns out, fortunately for me, that the answer wasn&#8217;t so simple. The reality was that we were learning very different things. I was learning to program through the lens of Java, these guys already knew all about programming and merely needed a little help figuring out how to translate that knowledge into Java. I was a toddler learning to speak for the first time and they were multi-linguals picking up yet another language. </p>
<p>The point of this long story is to illustrate that, after you really get into programming or scripting with one language, the rest becomes much easier because you&#8217;ve dramatically reduced the learning curve. If you know how to code in PHP, the jump to Ruby is much smaller. </p>
<h3>The Building Blocks</h3>
<p>It&#8217;s easy for me to say that programming is built on reusable knowledge, but can I put that into practice? What are these so-called building blocks and how are they similar or different from language to language?</p>
<p>Great question! Let&#8217;s find out by taking a look at some of the most basic but most used programming constructs. Understanding these will jumpstart your programming education regardless of the path or language that you choose to pursue.</p>
<h2>Variables</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/prog101-1.jpg" alt="screenshot" width="510"/></div>
<p>Variables are a wonderful thing. If you&#8217;ve ever used <a href="http://lesscss.org/">LESS</a> or something similar then you&#8217;ve seen the wonders of variables and how they can save immense amount of time. I&#8217;m still not sure if they belong in CSS, but the programmer in me sure wants to see them there.</p>
<p>A variable is essentially a way to store information. You can store something as simple as a value, say 39, or something as complex as an entire array of data containing hundreds of values. Think of a variable as a box. Boxes themselves don&#8217;t seem all that important, it&#8217;s what&#8217;s inside that counts. However, boxes do make for a convenient way to store and access certain items. </p>
<h3>JavaScript Variables</h3>
<p>Let&#8217;s jump to an example. Since JavaScript is a likely first candidate for moving past HTML and CSS, we&#8217;ll start all of our examples there. Here&#8217;s how variables work in JavaScript:</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Creating a JavaScript Variable</span>
<span style="color: #003366; font-weight: bold;">var</span> contentWidth<span style="color: #339933;">;</span>
contentWidth <span style="color: #339933;">=</span> <span style="color: #CC0000;">496</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Using the Variable</span>
<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>contentWidth<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</div>
<p></ br></p>
<p>Here you can see exactly how variables are used in JavaScript. First, you &#8220;declare&#8221; a variable. This simply creates it or brings it into existence, when doing this you always want to name it something indicative of its contents. Next, you assign it a value (often these two steps are combined), in our case I threw in an arbitrary number. Remember that, &#8220;contentWidth&#8221; is our box, which now holds a value. Any time we want to access that box, we just use the variable name, so to end the example out I created an alert and inserted the variable. This will pop up a box with the value &#8220;496&#8243;. </p>
<p>This may seem useless here but imagine we had three hundred lines of code that referenced that variable frequently. Any time the value of that variable changes, our code still works perfectly because the variable name has stayed constant. Without variables, this would be impossible and much more code would result. </p>
<h3>PHP Variables</h3>
<p>Now that we have that solid foundation of information, learning variables in other languages becomes much easier. This time we&#8217;re not learning what variables are and how they work, only how to use them in other languages. </p>
<p>Here&#8217;s a look at how variables work in PHP:</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Creating a PHP Variable</span>
<span style="color: #000088;">$contentWidth</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">496</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Using the Variable</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$contentWidth</span><span style="color: #339933;">;</span></pre></div></div>

</div>
<p></ br></p>
<p>There&#8217;s a lot of similarity here. Notice the use of semicolons to denote the end of a statement and how comments use the same syntax. This time we declared our variable and assigned it a value in a single line. We can see that the syntax for this is nearly identical, with the important distinction that PHP uses a &#8220;$&#8221; at the beginning of a variable name. Note that the &#8220;echo&#8221; command merely prints something to the browser page.</p>
<h3>Ruby Variables</h3>
<p>Now let&#8217;s take a look at variables in Ruby. </p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#008000; font-style:italic;"># Creating a Ruby Variable</span>
contentWidth = <span style="color:#006666;">496</span>
&nbsp;
<span style="color:#008000; font-style:italic;"># Using the Variable</span>
<span style="color:#CC0066; font-weight:bold;">puts</span> contentWidth;</pre></div></div>

</div>
<p></ br></p>
<p>By now you can see that a lot of what&#8217;s involved in learning a new language is just figuring out its various quirks. For instance, JavaScript and PHP used semicolons at the end of a line, Ruby does not. Also, this time around comments are created with  &#8220;#&#8221; instead of &#8220;//&#8221; and we use &#8220;puts&#8221; to output our result. </p>
<h2>Loops</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/prog101-2.jpg" alt="screenshot" width="510"/></div>
<p>Another popular programming construct is a loop. With loops you can save yourself the trouble of repeating code again and again by automating the process you want to achieve. When creating a loop, you must be sure to declare the parameters of the loop, such as the conditions for when the loop will cease. You don&#8217;t want the actions continuing on infinitely so you must create a condition whereby the loop will be terminated. </p>
<h3>JavaScript Loops</h3>
<p>In any given language, there are usually multiple types of loops. Here&#8217;s one type in JavaScript, the &#8220;while&#8221; loop. In this example we set up a variable, then create a chunk of code that should execute again and again for as long as the variable is less than 50. Then within that block of code, we define the actions to be repeated. In this case we&#8217;re logging the value of the variable to the console, then increasing the variable&#8217;s value by one. Since the variable is increasing every time the code runs, it will eventually hit 50 and the loop will terminate. </p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// JavaScript &quot;while&quot; Loop</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> x <span style="color: #339933;">=</span> <span style="color: #CC0000;">25</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>x <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">50</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span>
	x<span style="color: #339933;">++;</span> <span style="color: #006600; font-style: italic;">// Increases the variable by one</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<p>This same thing could be achieved with a &#8220;for&#8221; loop. This version a little more succinct as is states the value of the variable to start, the condition under which the loop terminates and the action to take on the variable all in one line. </p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// JavaScript &quot;for&quot; Loop</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> x <span style="color: #339933;">=</span> <span style="color: #CC0000;">25</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>x<span style="color: #339933;">=</span><span style="color: #CC0000;">25</span><span style="color: #339933;">;</span>x<span style="color: #339933;">&lt;</span><span style="color: #CC0000;">50</span><span style="color: #339933;">;</span>x<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span>x<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>PHP Loops</h3>
<p>Once again we find that PHP is very similar to JavaScript. After reading through the examples above, you should be able to effortlessly grasp the PHP equivalent. Here once again we have a while loop and a for loop, each of which contains nearly identical syntax to their JavaScript brethren. </p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// PHP &quot;while&quot; Loop</span>
&nbsp;
<span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">25</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span> <span style="color: #339933;">&lt;</span> <span style="color: #cc66cc;">50</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$x</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$x</span><span style="color: #339933;">++;</span> <span style="color: #666666; font-style: italic;">// Increases the variable by one</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// PHP &quot;for&quot; Loop</span>
&nbsp;
<span style="color: #000088;">$x</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">25</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$x</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">25</span><span style="color: #339933;">;</span><span style="color: #000088;">$x</span><span style="color: #339933;">&lt;</span><span style="color: #cc66cc;">50</span><span style="color: #339933;">;</span><span style="color: #000088;">$x</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$x</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

</div>
<p></ br></p>
<h3>Ruby Loops</h3>
<p>Here are the &#8220;while&#8221; and &#8220;for&#8221; loops in Ruby. As you can begin to see, Ruby is much looser in its syntax than the other two languages we&#8217;re using. Not only are there no semicolons, the curly brackets aren&#8217;t present either. Also notice how different the &#8220;for&#8221; loop looks this time around. </p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#006600; font-weight:bold;">//</span> Ruby <span style="color:#996600;">&quot;while&quot;</span> <span style="color:#CC0066; font-weight:bold;">Loop</span>
&nbsp;
x = <span style="color:#006666;">25</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">while</span> x <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#006666;">50</span>
  <span style="color:#CC0066; font-weight:bold;">puts</span> x
  x<span style="color:#006600; font-weight:bold;">+</span>=<span style="color:#006666;">1</span> <span style="color:#008000; font-style:italic;"># Increases the variable by one</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

</div>
<p></ br></p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#006600; font-weight:bold;">//</span> Ruby <span style="color:#996600;">&quot;for&quot;</span> <span style="color:#CC0066; font-weight:bold;">Loop</span>
&nbsp;
<span style="color:#9966CC; font-weight:bold;">for</span> x <span style="color:#9966CC; font-weight:bold;">in</span> <span style="color:#006666;">25</span>..<span style="color:#006666;">50</span>
  <span style="color:#CC0066; font-weight:bold;">puts</span> x
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

</div>
<p></ br></p>
<h2>Functions</h2>
<div class="tutorialimage"><img class="alignNone size-full wp-image-1611" src="http://designshack.co.uk/wp-content/uploads/prog101-3.jpg" alt="screenshot" width="510"/></div>
<p>Functions are yet another programming construct created to save you time by avoiding repeating the same code. When you code an application, it will probably perform anywhere from one to thousands of tasks. Each task represents a chunk of commands. When we toss the commands into a function we can simply call that function instead of writing out that full code. In this way a function is a lot like a variable that performs a task or list of tasks.</p>
<h3>JavaScript Functions</h3>
<p>Let&#8217;s build a super basic function in JavaScript that takes any number passed to it and squares it. We start here with the word &#8220;function&#8221; then follow it up with a variable in parentheses. Then inside the function we perform various actions and return a value.</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Creating the Function</span>
<span style="color: #003366; font-weight: bold;">function</span> squared<span style="color: #009900;">&#40;</span>someNumber<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">return</span> someNumber <span style="color: #339933;">*</span> someNumber<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">// Using the Function</span>
console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span>squared<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">9</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</div>
<p></ br></p>
<p>When we use the function, we replace the parenthetical variable with any number we like and the code inside the function will be performed on that value. In the example above, the result returned would be 81.</p>
<h3>PHP Functions</h3>
<p>By now you&#8217;re so familiar with the JavaScript to PHP conversion that you should be able to do it all by yourself. Here&#8217;s the syntax:</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Creating the Function</span>
<span style="color: #000000; font-weight: bold;">function</span> squared<span style="color: #009900;">&#40;</span><span style="color: #000088;">$someNumber</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$someNumber</span> <span style="color: #339933;">*</span> <span style="color: #000088;">$someNumber</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// Using the Function</span>
<span style="color: #b1b100;">echo</span> squared<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</div>
<p></ br></p>
<h3>Ruby Methods</h3>
<p>Once again, Ruby is quite different. In fact, Ruby actually refers to this particular construct as a method, not a function. However, we can still quickly apply our knowledge of functions to decipher how this works.</p>
<div style="overflow: auto; background-color: #eeeeee;">

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#006600; font-weight:bold;">//</span> Creating the Function
<span style="color:#9966CC; font-weight:bold;">def</span> squared<span style="color:#006600; font-weight:bold;">&#40;</span>someNumber<span style="color:#006600; font-weight:bold;">&#41;</span>
   <span style="color:#0000FF; font-weight:bold;">return</span> someNumber <span style="color:#006600; font-weight:bold;">*</span> someNumber
<span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
<span style="color:#006600; font-weight:bold;">//</span> Using the Function
<span style="color:#CC0066; font-weight:bold;">puts</span> squared<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006666;">9</span><span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

</div>
<p></ br></p>
<p>As you can see, the Ruby method is performing the same task as the JavaScript function. It allows you to pass a number into the parameters, after which is squares that number and returns the value. </p>
<h2>Easy Right?</h2>
<p>By now you should be able to see the importance of understanding the practice of programming independently of any programming language. There is a shared structure and method of programming that you&#8217;ll find throughout the languages that you learn. Many of the differences are *semantic* and amount to slight syntax differences.</p>
<p>Don&#8217;t take this to mean that programming and scripting languages are all the same, they&#8217;re not. They all have a specific purpose that defines how and when you use them. It&#8217;s a lot like learning Adobe Illustrator and then jumping to InDesign. You&#8217;re dealing with two different things created for two different purposes, however, there&#8217;s enough similarity that an expert knowledge of one will help you learn your way around the other. </p>
<h2>Conclusion</h2>
<p>This discussion was not in any way meant to be exhaustive. You don&#8217;t now possess a complete fundamental knowledge of programming. Instead, you merely learned about programming in a way that hopefully makes it more approachable. Instead of seeing a mass of completely different languages that you have to learn, you should now see a collection of related practices in which the study of one actually expands your understanding of the others.</p>
<p>So where should you start? As I mentioned above, JavaScript is definitely the place for web designers to begin. Its application is immediately apparent, especially when combined with <a href="http://jquery.com/">jQuery</a>, to the HTML and CSS that you already know. From there the leap to PHP is much more manageable, which might lead you to study Ruby so you can master <a href="http://rubyonrails.org/">Ruby on Rails</a>; the possibilities are limitless!</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/javascript/an-designers-introduction-to-programming/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Introduction to CSS3 &#8211; Part 1: What Is It?</title>
		<link>http://designshack.net/articles/introduction-to-css3-part-1-what-is-it/</link>
		<comments>http://designshack.net/articles/introduction-to-css3-part-1-what-is-it/#comments</comments>
		<pubDate>Tue, 06 May 2008 16:30:04 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[basics]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[proposal]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=208</guid>
		<description><![CDATA[This article marks the first of several, providing an introduction to the new CSS3 standard which is set to take over from CSS2. We will be starting from the very beginning &#8211; taking you from not having even heard of CSS3, to feeling ready to hit it running as various features start to become more [...]]]></description>
			<content:encoded><![CDATA[<p>This article marks the first of several, providing an introduction to the new CSS3 standard which is set to take over from CSS2. We will be starting from the very beginning &#8211; taking you from not having even heard of CSS3, to feeling ready to hit it running as various features start to become more widely adopted.</p>
<h2>What is it?</h2>
<p>CSS3 offers a huge variety of new ways to create an impact with your designs, with quite a few important changes. This first tutorial will give you a very basic introduction to the new possibilities created by the standard.</p>
<h2>Modules</h2>
<p>The development of CSS3 is going to be split up into &#8216;modules&#8217;. The old specification was simply too large and complex to be updated as one, so it has been broken down into smaller pieces &#8211; with new ones also added. Some of these modules include:</p>
<ul>
<li>The Box Model</li>
<li>Lists Module</li>
<li>Hyperlink Presentation</li>
<li>Speech Module</li>
<li>Backgrounds and Borders</li>
<li>Text Effects</li>
<li>Multi-Column Layout</li>
</ul>
<p>
<a href="http://www.w3.org/Style/CSS/current-work" class="smallbox" target="_blank">View the full list of modules</a><br />
</p>
<h2>Timescale</h2>
<p>Several of the modules have now been completed, including SVG (Scalable Vector Graphics), Media Queries and Namespaces. The others are still being worked upon.</p>
<p>It is incredibly difficult to give a projected date when web browsers will adopt the new features of CSS3  &#8211; some new builds of Safari have already started to.</p>
<p>New features will be implemented gradually in different browsers, and it could still be a year or two before every module is widely adopted.</p>
<h2>How will CSS3 affect me?</h2>
<p>Hopefully, in a mainly positive way. CSS3 will obviously be completely backwards compatible, so it won&#8217;t be necessary to change existing designs to ensure they work &#8211; web browsers will always continue to support CSS2.</p>
<p>The main impact will be the ability to use new selectors and properties which are available. These will allow you to both achieve new design features (animation or gradients for instance), and achieve current design features in a much easier way (e.g. using columns).</p>
<p>Future articles in this series will each focus on a different module of the CSS3 specification, and the new features they will bring. The next one relates to <a href="http://designshack.net/tutorials/introduction-to-css3-part-2-borders">CSS3 borders</a>.</p>
<h2>Other posts in the series</h2>
<ul>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-1-what-is-it">Introduction to CSS3 &#8211; Part 1: What is it?</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-2-borders">Introduction to CSS3 &#8211; Part 2: Borders</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-3-text-effects">Introduction to CSS3 &#8211; Part 3: Text Effects</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-4-user-interface">Introduction to CSS3 &#8211; Part 4: User Interface</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-5-multiple-columns">Introduction to CSS3 &#8211; Part 5: Multiple Columns</a></li>
<li><a href="http://designshack.net/tutorials/introduction-to-css3-part-6-backgrounds">Introduction to CSS3 &#8211; Part 6: Backgrounds</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/introduction-to-css3-part-1-what-is-it/feed/</wfw:commentRss>
		<slash:comments>125</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails Intro</title>
		<link>http://designshack.net/articles/ruby-on-rails-intro/</link>
		<comments>http://designshack.net/articles/ruby-on-rails-intro/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 16:38:22 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=229</guid>
		<description><![CDATA[You’ve probably heard about Ruby on Rails by now, but it might not be something you have ever really got to grips with. A List Apart have published two great articles as an introduction to Ruby On Rails: Getting Started with Ruby on Rails Creating More Using Less Effort with Ruby on Rails They look [...]]]></description>
			<content:encoded><![CDATA[<p>You’ve probably heard about Ruby on Rails by now, but it might not be something you have ever really got to grips with. A List Apart have published two great articles as an introduction to Ruby On Rails:</p>
<p><a href="http://www.alistapart.com/articles/gettingstartedwithrubyonrails">Getting Started with Ruby on Rails</a></p>
<p><a href="http://www.alistapart.com/articles/creatingmoreusinglesseffortwithrubyonrails">Creating More Using Less Effort with Ruby on Rails</a></p>
<p>They look like an easy way to get started, aiming to to demystify Ruby on Rails and convince you that you can make the leap.</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/ruby-on-rails-intro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to CSS</title>
		<link>http://designshack.net/articles/introduction-to-css/</link>
		<comments>http://designshack.net/articles/introduction-to-css/#comments</comments>
		<pubDate>Tue, 05 Jun 2007 13:23:07 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[cascading]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[sheets]]></category>
		<category><![CDATA[style]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=457</guid>
		<description><![CDATA[For many people, Cascading Style Sheets (CSS) is a fairly alien topic. This tutorial helps to provide a comprehensive overview of CSS, allowing you to get started using it in your website. What is CSS? Where HTML is the language you use for designing the structure of a web page and adding the content, CSS [...]]]></description>
			<content:encoded><![CDATA[<p>For many people, Cascading Style Sheets (CSS) is a fairly alien topic. This tutorial helps to provide a comprehensive overview of CSS, allowing you to get started using it in your website.</p>
<h2>What is CSS?</h2>
<p>Where HTML is the language you use for designing the structure of a web page and adding the content, CSS is the language for adding styles, colours and layout options to the content you have written in HTML.</p>
<p>It allows you to define and create styles, which can either be linked to pre-existing tags such as <code><a></code> or <code><br />
<h1></code>, or completely new styles which you would reference by placing <code>
<div style="yourstylename"></div>
<p></code> around the content.</p>
<h2>How to include a style sheet</h2>
<p>The general practice for including a CSS file in your webpage is to place the following code in the <code><head></head></code> area of your page:</p>
<pre>
<link rel="stylesheet" type="text/css" href="style.css" /></pre>
<p>The pathname (style.css) would need changing to the name and location of your CSS file.</p>
<h2>The basic website</h2>
<p>Here is the code of a simple website, ready to be styled with CSS. If you follow through the example and explanation, it should really help you when you come to create your own CSS styled web page.</p>
<pre>
<html>
   <head>
<link rel="stylesheet" type="text/css" href="style.css" />

   </head>
   <body>
<h1>Design Shack</h1>

Welcome to our website showcasing CSS and XHTML designs
<div class="box">
         This content will be in a CSS styled box
      </div>

   </body>
</html>
</pre>
<p>At the moment, this website will look <a href="/tutorialexamples/introductiontocss/nostyle.html" target="new window">something like this</a>. Very basic, and not too pretty. Let&#8217;s go ahead and create a CSS file to link to this page, defining some styles.</p>
<h2>The basic style sheet</h2>
<pre>body {
font-family: Verdana, Arial;
font-size: 11px;
color:#000;
background: #FFF;
}
h1 {
font-family: Arial, Verdana, Serif;
color: #99723b;
text-size: 18px;
}
.box {
padding: 10px;
border: 5px solid green;
width: 300px;
background: #f0f0f0;
}</pre>
<p>The website now <a href="/tutorialexamples/introductiontocss/style.html" target="new window">looks much better</a>, with more colour, layout ideas and more attractive fonts.</p>
<p>Most of the code used above in the CSS example is very self explanatory. The body section applies to everything within the <code><body></code> HTML tag, h1 to everything inside a <code><br />
<h1></code> tag, and .box to anything within the <code>
<div class="box"></div>
<p></code> tags. The dot before box denotes this as a custom style, not a standard one such as body or h1.</p>
<h2>Why is CSS important?</h2>
<p>Most of the effects shown above can be achieved by using <code><font></code> tags in your design, or tables. The great thing about CSS is that it separates design from layout, and keeps your HTML code easy to read and understand. Pages load quicker, search engines have an easier time indexing your site and everyone benefits.</p>
<p>It also reduces the repetition of using lots of font tags, and if you wanted to change the look of all the headings on your website, you need only alter one CSS file rather than every single page.</p>
<h2>Where to go from here</h2>
<p>Start experimenting! Set up your own page in a similar way to above, try your own styles and see just how easy it is to achieve stunning visual effects with CSS.</p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/introduction-to-css/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Introduction to HTML &#8211; Part 2</title>
		<link>http://designshack.net/articles/introduction-to-html-part-2/</link>
		<comments>http://designshack.net/articles/introduction-to-html-part-2/#comments</comments>
		<pubDate>Fri, 04 May 2007 13:28:40 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[beginner]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[hypertext]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=467</guid>
		<description><![CDATA[HTML (Hyper Text Markup Language) is the core of designing websites. Part two of this introduction covers the Hyperlinks, Pictures and Lists. The first part of this tutorial dealt with the difference between HTML and CSS, a simple HTML page, and Paragraphs/Line Breaks/Headings. The second section will discuss Hyperlinks, Pictures and Lists. Hyperlinks HTML uses [...]]]></description>
			<content:encoded><![CDATA[<p>HTML (Hyper Text Markup Language) is the core of designing websites. Part two of this introduction covers the Hyperlinks, Pictures and Lists.</p>
<p>The <a href="/tutorials/introduction-to-html-part-1">first part</a> of this tutorial dealt with the difference between HTML and CSS, a simple HTML page, and Paragraphs/Line Breaks/Headings. The second section will discuss Hyperlinks, Pictures and Lists.</p>
<h2>Hyperlinks</h2>
<p>HTML uses a concept called hyperlinks to link one HTML page to another. The code for these is straight forward:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;page2.html&quot;</span>&gt;</span>Go to Page 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></td></tr></table></div>

<p>The <code>page2.html</code> part is the file which you would like to link to. The <code>Go to Page 2</code> part is the text which the visitor will click on to follow the link. Generally, a website has a navigation bar &#8211; close to the top of the page &#8211; which is made up of a collection of hyperlinks to allow visitors to navigate through the website. Some more tutorials cover this in our <a href="/tutorials/category/navigation/">navigation</a> category.</p>
<h2>Images and Pictures</h2>
<p>Pretty pictures are a vital part of a website, and graphical content can draw in users and provide extra information. The tag to add a picture is very straight forward, but you must remember two important things. You need to note which folder you put the picture and link to it correctly, and all image filenames are case sensitive. To link to a file called <code>flower.jpg</code> in a directory (folder) called <code>pictures</code>, you would use the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pictures/flower.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Flower&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></pre></td></tr></table></div>

<p>The <code>src</code> part shows the folder and filename of the image, and the <code>alt</code> part gives a description of the picture for people who aren&#8217;t able to view images in their web browser.</p>
<h2>Lists</h2>
<p>HTML can use two different types of lists. These are bulleted, or &#8216;unordered&#8217; lists and numbered, or &#8216;ordered&#8217; lists. These is a different piece of code to display each one, but in essence they are identical. One will result in a bullet being displayed next to each item, the other a number going up by one each time. The code you would use is:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>List Item 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>List Item 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;</span>List Item 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></td></tr></table></div>

<p>The <code>ul</code> part states this is an unordered list, and the <code>li</code> part denotes each item in the list. You can probably guess which part you would change if you want a numbered, ordered list &#8211; you simply use <code>ol</code> in place of <code>ul</code>. Lists are very easy to use in HTML, and can also be combined with CSS to create navigation menus which look great. The final part of this tutorial will look at using tables and forms in HTML, for displaying tabular data or taking input from the visitor by means of a form.</p>
<p><a href="/tutorials/introduction-to-html-part-3">Introduction to HTML Part 3 &#8211; Tables and Forms</a></p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/introduction-to-html-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Introduction to HTML &#8211; Part 1</title>
		<link>http://designshack.net/articles/introduction-to-html-part-1/</link>
		<comments>http://designshack.net/articles/introduction-to-html-part-1/#comments</comments>
		<pubDate>Tue, 01 May 2007 13:30:13 +0000</pubDate>
		<dc:creator>David Appleyard</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[beginner]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[hypertext]]></category>
		<category><![CDATA[introduction]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=470</guid>
		<description><![CDATA[HTML (Hyper Text Markup Language) is the core of designing websites. Part one of this introduction covers the difference between HTML and CSS, a simple HTML page, and Paragraphs/Line Breaks/Headings. HTML and CSS &#8211; The difference Think of HTML as the structure of the website you are making. It will contain the text, images and [...]]]></description>
			<content:encoded><![CDATA[<p>HTML (Hyper Text Markup Language) is the core of designing websites. Part one of this introduction covers the difference between HTML and CSS, a simple HTML page, and Paragraphs/Line Breaks/Headings.</p>
<h2>HTML and CSS &#8211; The difference</h2>
<p>Think of HTML as the <b>structure</b> of the website you are making. It will contain the text, images and links &#8211; all put in the correct order &#8211; to compose the page that you want to display. CSS is the <b>look and feel</b> of the page. In your CSS you define the colours, fonts, backgrounds and borders surrounding the content you have in your HTML file. We explain below how to attach your CSS file to your HTML file, but read our <a href="/tutorials/category/cssbasics/">CSS tutorials</a> for more information on that topic.</p>
<h2>A simple HTML page</h2>
<p>The best way to learn is by doing, so the following are a few examples of HTML in action. This is, at it&#8217;s simplest, a HTML page:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>My Website<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
      <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;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;style.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
      Website Text
   <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></td></tr></table></div>

<p>That&#8217;s it &#8211; it&#8217;s much more straight forward than you would expect. HTML works on a system of tags, with each one surrounded by  brackets. Any tag that you open must be closed. This can be done as above with a seperate opening and closing tag (i.e. <code>body</body></code>) or using one tag such as below, for a line break, <code>br</code>. Here is a brief description of the tags used in the above example:</p>
<p><code>html</code> &#8211; This tells your web browser that you want to display a HTML page &#8211; everything inside those tags is HTML.</p>
<p><code>head</code> &#8211; The &#8216;head&#8217; is a section where you can show the title of the document and provide information about what the page contains.</p>
<p><code>title</code> &#8211; The title is self explanatory, and displays in the title bar of your web browser window.</p>
<p><code>link rel="stylesheet" type="text/css" href="style.css" /</code> &#8211; This links the CSS file (style.css) to your HTML document.</p>
<p><code>body</code> &#8211; The &#8216;body&#8217; is the main section. Anything inside the body tag will display in your web browser.</p>
<p>This won&#8217;t really do much good though, as it will display a blank page with &#8216;Website Text&#8217; inside it. The following will explain how to get a little more advanced:</p>
<h2>Paragraphs, Line Breaks and Headings</h2>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>My Website<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Main Heading<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
         Welcome to my website, full of information
      <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Second Heading<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
      <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
         Here is some more information about my website, going into
         further detail about what you can look at and how you can navigate
         around.<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>
         If you would like to contact me, you can do so from our contact page.      
      <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
   <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></td></tr></table></div>

<p>This is a slightly more advanced example which introduces the idea of defining headings, using the <code>h1</code> tags, putting <code>p</code> around paragraphs, and using <code>br</code> where you just want a normal line break. Having one page is OK, but generally you would want more than one page, with the ability to link them together&#8230;</p>
<p><a href="/tutorials/introduction-to-html-part-2">Introduction to HTML Part 2 &#8211; Links, Pictures and Lists</a></p>
]]></content:encoded>
			<wfw:commentRss>http://designshack.net/articles/introduction-to-html-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 481/553 objects using disk: basic

Served from: designshack.net @ 2012-02-09 22:40:03 -->
