<?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>freeyourdesign &#187; the basics</title>
	<atom:link href="http://freeyourdesign.com/tag/the-basics/feed/" rel="self" type="application/rss+xml" />
	<link>http://freeyourdesign.com</link>
	<description>break free by learning</description>
	<lastBuildDate>Wed, 06 Oct 2010 19:32:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>The Basics &#8211; Learning CSS &#8211; Where Styles Go</title>
		<link>http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/</link>
		<comments>http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/#comments</comments>
		<pubDate>Mon, 04 Feb 2008 17:57:40 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[the basics]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/</guid>
		<description><![CDATA[CSS &#8211; Cascading Style Sheets &#8211; it's what you use these days to 'style' your Web pages. CSS is used to change font colors, and backgrounds, borders, format lists, links, etc. It is also used to arrange elements on the page and form certain page layouts. It use to be that Tables or Frames were [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/"><img src="http://freeyourdesign.com/images/flag1.gif" class="left" alt="flag" /></a>CSS &#8211; Cascading Style Sheets &#8211; it's what you use these days to 'style' your Web pages. CSS is used to change font colors, and backgrounds, borders, format lists, links, etc. It is also used to arrange elements on the page and form certain page layouts.</p>
<p>It use to be that Tables or Frames were used when making a layout for a Web page, but now CSS is the way to go. Tables really are no longer the accepted way to create web layouts. Every thing can be done with CSS and with cleaner and less code. Plus, CSS makes it very easy to format all the pages in your site. Actually, that's the main purpose of CSS.</p>
<p><span id="more-19"></span></p>
<h3>Where Does CSS Go</h3>
<p>There are three ways to add CSS to your Web page.</p>
<p>CSS can be put into a separate, or external .css file, and be linked to via a statement in the head section of your HTML page</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Learning CSS&lt;/title&gt;
&lt;link rel="stylesheet" type="text/css" href="styles.css" /&gt;
&lt;/head&gt;
&lt;body&gt;
...</pre>
<p>You can also have an embedded,  or internal, style sheet which is put right into the head section of the HTML page</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Learning CSS&lt;/title&gt;
&lt;style type="text/css"&gt;
your styles go here
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
...</pre>
<p>Or you can use inline styles. These are used inside the body of HTML to style a single element.</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Learning CSS&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p style="color:#999999; border: 1px solid #000000;"&gt;
Some paragraph text
&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>We will learn what color and border do later.</p>
<p>You can actually use all three of these methods in a single page. Sometimes you will have elements on a page that you want to be styled differently than all the other pages. That's where the embedded and inline styles can come into play. If you are using all three, you have to pay attention to the order you set things up. So, usually you put in your <strong>external</strong> style sheet link first. Then you do your <strong>embedded</strong> style sheet. Finally, you can add <strong>inline</strong> styles to elements. Basically, the <strong>inline</strong> style will have the <strong>highest</strong> priority &#8211; or it will override anything in the external or embedded style sheet. The <strong>embedded</strong> style sheet will have priority over the external style sheet as long as it is after the link to the external style sheet.</p>
<p>So, now we know where the styles go &#8211; next time we will learn about the syntax of CSS.</p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=19&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/the-basics/the-basics-learning-css-where-styles-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Basics &#8211; List Creation</title>
		<link>http://freeyourdesign.com/the-basics/the-basics-list-creation/</link>
		<comments>http://freeyourdesign.com/the-basics/the-basics-list-creation/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 18:11:34 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[the basics]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/the-basics/the-basics-list-creation/</guid>
		<description><![CDATA[Another block-level element that is used often is the list. We will be going over three types of lists. Ordered Lists are used for items that you want to appear in sequential order &#8211; each item will have a number before it. Unordered Lists are used when the order of items isn't as important &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://freeyourdesign.com/the-basics/the-basics-list-creation/"><img src="http://freeyourdesign.com/images/bridgeup.gif" alt="lists" class="left" /></a>Another block-level element that is used often is the list. We will be going over three types of lists. <strong>Ordered Lists</strong> are used for items that you want to appear in sequential order &#8211; each item will have a number before it. <strong>Unordered Lists</strong> are used when the order of items isn't as important &#8211; each item will have a bullet in front of it. Finally, <strong>Definition Lists</strong> which are used when defining a term. Let's get started.</p>
<p><span id="more-12"></span></p>
<h3>Ordered Lists</h3>
<p>Here is the code to create an ordered list:</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">Ordered List</span>&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;ol&gt;<span class="dis"> - starting ordered list</span>
&lt;li&gt;<span class="text">List Item 1</span>&lt;/li&gt;<span class="dis"> - list element</span>
&lt;li&gt;<span class="text">List Item 2</span>&lt;/li&gt;
&lt;li&gt;<span class="text">List Item 3</span>&lt;/li&gt;
&lt;li&gt;<span class="text">Last List Item</span>&lt;/li&gt;
&lt;/ol&gt;<span class="dis"> - ending ordered list</span>

&lt;/body&gt;
&lt;/html&gt;</pre>
<p><a href="http://freeyourdesign.com/images/files/ollist.html" target="_blank">results</a></p>
<p>So as you can see, we start an <strong>ordered list</strong> with <strong>&lt;ol&gt;</strong> and end it with <strong>&lt;/ol&gt;</strong>. Each item you want to be in the list is surrounded by <strong>&lt;li&gt;</strong> and <strong>&lt;/li&gt;</strong>. And like I said earlier there is a number in front of each item in the list.</p>
<h3>Unordered Lists</h3>
<p>Here is the code to create an unordered list:</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">Unordered List</span>&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;ul&gt;<span class="dis"> - starting unordered list</span>
&lt;li&gt;<span class="text">List Item 1</span>&lt;/li&gt;<span class="dis"> - list element</span>
&lt;li&gt;<span class="text">List Item 2</span>&lt;/li&gt;
&lt;li&gt;<span class="text">List Item 3</span>&lt;/li&gt;
&lt;li&gt;<span class="text">Last List Item</span>&lt;/li&gt;
&lt;/ul&gt;<span class="dis"> - ending unordered list</span>

&lt;/body&gt;
&lt;/html&gt;</pre>
<p><a href="http://freeyourdesign.com/images/files/ullist.html" target="_blank">results</a></p>
<p>The setup is very similar to the ordered list except here we start with <strong>&lt;ul&gt;</strong> and end it with <strong>&lt;/ul&gt;</strong>. Again, each item you want to be in the list is surrounded by <strong>&lt;li&gt;</strong> and <strong>&lt;/li&gt;</strong>. And like I said earlier there is a bullet in front of each item in the list.</p>
<h3>Definition Lists</h3>
<p>Here is the code to create a definition list:</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">Definition List</span>&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;dl&gt;<span class="dis"> - starting definition list</span>
&lt;dt&gt;<span class="text">Term 1</span>&lt;/dt&gt;<span class="dis"> - term to define</span>
&lt;dd&gt;<span class="text">The definition of term 1</span>&lt;/li&gt;
&lt;dt&gt;<span class="text">Term 2</span>&lt;/dt&gt;
&lt;dd&gt;<span class="text">The definition of term 2</span>&lt;/dd&gt;
&lt;/dl&gt;<span class="dis"> - ending definition list</span>

&lt;/body&gt;
&lt;/html&gt;</pre>
<p><a href="http://freeyourdesign.com/images/files/dllist.html" target="_blank">results</a></p>
<p>Definition lists are started similarly to the other two &#8211; we start with <strong>&lt;dl&gt;</strong> and end it with <strong>&lt;/dl&gt;</strong>. The rest is a little different though. The term you would like to define is surrounded by <strong>&lt;dt&gt;</strong> and <strong>&lt;/dt&gt;</strong>. Then the next thing you do is place the definition of that term between <strong>&lt;dd&gt;</strong> and <strong>&lt;/dd&gt;</strong>. As you can see in the results, the definition is indented.</p>
<p>There you have it. Lists are pretty easy, but are used quite often. The best thing to do is to practice them. You can even nest lists within each other. I'll leave you with a nested list example.</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">Nested Lists</span>&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;ol&gt;<span class="dis"> - starting ordered list</span>
&lt;li&gt;<span class="text">Numbered Item 1</span><span class="dis"> - open first ordered list element</span>
	&lt;ul&gt;<span class="dis"> - starting unordered list</span>
		&lt;li&gt;<span class="text">nested bullet 1</span>&lt;/li&gt;
		&lt;li&gt;<span class="text">nested bullet 2</span>&lt;/li&gt;
	&lt;/ul&gt;<span class="dis"> - ending unordered list</span>
&lt;/li&gt;<span class="dis"> - close first ordered list element</span>
&lt;li&gt;<span class="text">Numbered Item 2</span>
	&lt;ul&gt;
		&lt;li&gt;<span class="text">nested bullet 1</span>&lt;/li&gt;
		&lt;li&gt;<span class="text">nested bullet 2</span>&lt;/li&gt;
	&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;<span class="dis"> - ending ordered list</span>
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><a href="http://freeyourdesign.com/images/files/nested.html" target="_blank">results</a></p>
<p>It's a lot easier to indent your code when doing lists &#8211; it just makes it easier to read and follow, and remember it won't show up that way in the browser. When doing a nested list just remember to watch when you close your &lt;li&gt; tags.</p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=12&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/the-basics/the-basics-list-creation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Basics &#8211; HTML Headings</title>
		<link>http://freeyourdesign.com/the-basics/the-basics-html-headings/</link>
		<comments>http://freeyourdesign.com/the-basics/the-basics-html-headings/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 17:33:50 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[the basics]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/the-basics/the-basics-html-headings/</guid>
		<description><![CDATA[So, we've learned how to setup the basic shell for an HTML document and add a little text. Now we can get into a little more of the formatting for our site's content. I briefly mentioned block-level elements in the previous basics post when we used the &#60;p&#62; tag. Specifically, a block-level element displays our [...]]]></description>
			<content:encoded><![CDATA[<p><a href="#"><img src="http://freeyourdesign.com/images/shine.gif" class="left" alt="headings" /></a>So, we've learned how to setup the <a href="http://freeyourdesign.com/the-basics/the-basics-html-hello-world/">basic shell for an HTML document</a> and add a little text. Now we can get into a little more of the formatting for our site's content. I briefly mentioned block-level elements in the previous basics post when we used the &lt;p&gt; tag. Specifically, a <strong>block-level element</strong> displays our content in a separate section within the page. So, basically it's just setting it off from other items or blocks. The elements we will be using today just happen to be block-level elements. You will see how they separate from other sections of content. Enough with the chit-chat let's get going.</p>
<p><span id="more-10"></span></p>
<h1 style="margin-left: 30px">Heading Elements!</h1>
<p>As you can see the heading elements will make your text really stand out from the normal content. We use <strong>&lt;h#&gt;content&lt;/h#&gt;</strong> to create headings &#8211; where # is a number 1 through 6. &lt;h1&gt; is the largest heading while &lt;h6&gt; is the smallest. So let's make some headings:</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">Some Headings</span>&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;<span class="text">Some placeholder text to show how block-level
 elements separate</span>&lt;/p&gt;
&lt;h1&gt;<span class="text">h1 Heading</span>&lt;/h1&gt;
&lt;h2&gt;<span class="text">h2 Heading</span>&lt;/h2&gt;
&lt;h3&gt;<span class="text">h3 Heading</span>&lt;/h3&gt;
&lt;h4&gt;<span class="text">h4 Heading</span>&lt;/h4&gt;
&lt;h5&gt;<span class="text">h5 Heading</span>&lt;/h5&gt;
&lt;h6&gt;<span class="text">h6 Heading</span>&lt;/h6&gt;
&lt;p&gt;<span class="text">Some placeholder text to show how block-level
 elements separate</span>&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><a href="http://freeyourdesign.com/images/files/headings.html" target="_blank">My results</a><br />
So, there they are &#8211; a little more diversity to your normal text. Notice how they separate from each other. There is extra room between each heading and each one starts on its own line. Which brings me to a side note:</p>
<p>HTML <strong>ignores</strong> white space. What's white space? It's just like it sounds &#8211; empty spaces between text, elements, tags, etc. For example, if you hold down the space bar between say the H and the e it will only read <strong>one space</strong>. So, just hitting the enter button at the end of a line does not mean it will look the same in the browser.</p>
<pre>
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">Some Headings</span>&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;<span class="text">Some                  placeholder text to show
how block-level
 elements separate</span>&lt;/p&gt;
&lt;h1&gt;<span class="text">h1                 Heading</span>&lt;/h1&gt;
&lt;h2&gt;<span class="text">h2 He         ading</span>&lt;/h2&gt;
&lt;h3&gt;<span class="text">h3
Heading</span>&lt;/h3&gt;
&lt;p&gt;<span class="text">Some placeholder
text to show how block-level
 elements separate</span>&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><a href="http://freeyourdesign.com/images/files/headings2.html" target="_blank">results</a><br />
Even with all those extra spaces and returns HTML only counts one of the spaces and doesn't pay attention to the line returns.</p>
<p>Another word on <strong>block-level elements</strong> &#8211; You are not suppose to place block-level elements inside other block-level elements. For example, &lt;p&gt;&lt;h1&gt;Hello&lt;/h1&gt;&lt;/p&gt; is not valid. Yes, it will still show up in an Internet browser but it is still not good practice and won't validate(will learn more about validation in the future).</p>
<p>That's it for now&#8230;</p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=10&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/the-basics/the-basics-html-headings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Basics &#8211; HTML Hello World</title>
		<link>http://freeyourdesign.com/the-basics/the-basics-html-hello-world/</link>
		<comments>http://freeyourdesign.com/the-basics/the-basics-html-hello-world/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 23:32:52 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[the basics]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/uncategorized/the-basics-html-hello-world/</guid>
		<description><![CDATA[If you're looking to get started learning HTML the good old 'Hello World' is a fine place to start. I'll take you through the simple steps of setting up a very basic HTML web page. We will just display a simple line of text saying&#8230; Hello World! So, let's get started. Here is what you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://freeyourdesign.com/uncategorized/the-basics-html-hello-world/"><img src="http://freeyourdesign.com/images/flag1.gif" class="left" /></a>If you're looking to get started learning HTML the good old 'Hello World' is a fine place to start. I'll take you through the simple steps of setting up a very basic HTML web page. We will just display a simple line of text saying&#8230; Hello World!</p>
<p>So, let's get started. Here is what you need:</p>
<ul>
<li>Text Editor &#8211; I'll be using NotePad</li>
<li>Internet Browser &#8211; Firefox for me, but Internet Explorer is fine</li>
</ul>
<p>You don't need much &#8211; here we go&#8230;</p>
<p><span id="more-8"></span></p>
<h3>File setup</h3>
<p>First of all, open up <strong>NotePad</strong><br />
Goto <strong>File-&gt;Save As&#8230;</strong> Pick where you want to save your file and in the <strong>File name:</strong> box type in the name you want and a .html &#8211; I'm using <strong>hello.html</strong><br />
The .html tells the computer the file will be used in an Internet browser other wise it would just be a text file.</p>
<h3>Some HTML</h3>
<p>Now we'll get started into the HTML. First, we are going to create the basic shell that you need for a web page. Here is the code just type it into NotePad(just the blue text) &#8211; I'll explain it next:</p>
<pre>&lt;html&gt;<span class="dis"> - marks the start of an HTML document</span>
&lt;head&gt;<span class="dis"> - contains info about the document</span>
&lt;title&gt;&lt;/title&gt;<span class="dis"> - page title shows in browsers title bar</span>
&lt;/head&gt;<span class="dis"> - head section has ended</span>
&lt;body&gt;<span class="dis"> - where the content is displayed</span>
&lt;/body&gt;<span class="dis"> - body section has ended</span>
&lt;/html&gt;<span class="dis"> - end of HTML document</span></pre>
<p>So, that is the basic shell for any HTML page (technically the title doesn't have to be there). Of course, if you look at it in your browser you aren't going to see anything yet. But before we get into our content lets talk a little bit more about that code we just typed in.</p>
<p>Those 'things' you just typed in are <strong>tags</strong>. Now a days tags in HTML will always be closed because that is the standard(more on that in the future). There are <strong>two-sided tags</strong>. What two-sided means is that each tag has an opening tag and a closing tag. &lt;&gt;&lt;/&gt; The / indicates the second or closing tag. And there are <strong>one-sided tags</strong> which close inside itself. It looks like this &lt; /&gt; &#8211; the / shows that the one-sided tag has been closed. We don't have to worry about that just yet.</p>
<p>We call what the word inside the tag an <strong>element</strong>. So it's &lt;element&gt;&lt;/element&gt; &#8211; Then there are <strong>empty elements</strong> which are basically one-sided tags &lt;element /&gt;</p>
<p>Let's do two more things to our code &#8211; add a title and output some text &#8211; so we can finally see the results of our work.</p>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">My First HTML Page</span>&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;<span class="text">Hello World!</span>&lt;/p&gt; <span class="dis"> - our text in a paragraph tag</span>
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Alright &#8211; after you save the file &#8211; the title 'My First HTML Page' will show up in the bar at the very top of your web browser and you should see the text 'Hello World!' in your browser. <a href="http://freeyourdesign.com/images/files/hello.html">My results</a></p>
<p>The new tag we used here was the <strong>&lt;p&gt;&lt;/p&gt;</strong> tag or the paragraph tag. It is what we call a <strong>block-level element</strong>. The paragraph tag tells the browser to start a new line with a blank space above it &#8211; so it helps separate blocks of text. Notice we put the text inside the &lt;body&gt;&lt;/body&gt; tag. This is where we will put anything we want to display in the browser window.</p>
<p>I think that's a good place to stop for now. In the future we will get into headings, images, color, css properties, and code needed for things like validation.</p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=8&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/the-basics/the-basics-html-hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

