<?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>Web Design Lessons</title>
	<atom:link href="http://www.webdesign-lessons.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.webdesign-lessons.com</link>
	<description>html, css, web design tutorials. Learn how to build websites from start to finish.</description>
	<lastBuildDate>Mon, 22 Dec 2008 13:43:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Use Images as Links with HTML</title>
		<link>http://www.webdesign-lessons.com/?p=67</link>
		<comments>http://www.webdesign-lessons.com/?p=67#comments</comments>
		<pubDate>Mon, 22 Dec 2008 03:40:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML Lessons / Tutorials]]></category>

		<guid isPermaLink="false">http://www.webdesign-lessons.com/?p=67</guid>
		<description><![CDATA[In a previous HTML lesson, we learned how to create text anchors (or links). In another previous lesson, we learned how to add images to your HTML page. If you do not know how to do either of these, please read those lessons before moving on to this one (don&#8217;t worry, they&#8217;re very short). From [...]]]></description>
			<content:encoded><![CDATA[<p>In <a title="how to code html links" href="http://www.webdesign-lessons.com/?p=61" target="_self">a previous HTML lesson</a>, we learned how to create text anchors (or links). In <a href="http://www.webdesign-lessons.com/?p=73">another previous lesson</a>, we learned how to add images to your HTML page. If you do not know how to do either of these, please read those lessons before moving on to this one (don&#8217;t worry, they&#8217;re very short). From creating a regular text link and adding an image to a web page to making your images link is a very short jump, so let&#8217;s dive in!</p>
<p>Follow the same folder guidelines as in <a href="http://www.webdesign-lessons.com/?p=73">the adding images post</a>, unless you&#8217;re using an absolute to a remote image.</p>
<p>Code:<br />
<code>&lt;a href="http://www.webdesign-lessons.com"&gt;<br />
&lt;img src="your-image-filename.jpg" alt="my messy boy!" /&gt;<br />
&lt;/a&gt;</code></p>
<p>Output:<br />
<a href="http://www.webdesign-lessons.com"><img src="http://photos-c.ak.fbcdn.net/photos-ak-snc1/v314/208/13/1485302847/n1485302847_11674_8428.jpg" alt="my messy boy!" style="width: 400px;" /></a></p>
<p>The Breakdown:<br />
You have created an anchor (or link) just like you learned in the <a href="http://www.webdesign-lessons.com/?p=61">HTML links lesson</a>. You have created an image just like you learned in the <a href="http://www.webdesign-lessons.com/?p=73">HTML images lesson</a>. The only thing that you have done differently is <em>nested</em> your image element inside of your anchor element, which tells the browser to use the image as a link. It&#8217;s really that simple!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesign-lessons.com/?feed=rss2&amp;p=67</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add Images to an HTML Page</title>
		<link>http://www.webdesign-lessons.com/?p=73</link>
		<comments>http://www.webdesign-lessons.com/?p=73#comments</comments>
		<pubDate>Mon, 22 Dec 2008 03:37:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML Lessons / Tutorials]]></category>

		<guid isPermaLink="false">http://www.webdesign-lessons.com/?p=73</guid>
		<description><![CDATA[First, create a folder on your desktop and name it whatever you want. This is where you will hold all of your files for this lesson. Now you will need to find the image that you want to use. Copy the image that you selected into the newly created folder. When you create your HTML [...]]]></description>
			<content:encoded><![CDATA[<p>First, create a folder on your desktop and name it whatever you want. This is where you will hold all of your files for this lesson. Now you will need to find the image that you want to use. Copy the image that you selected into the newly created folder. When you create your HTML page, save it into this folder also. Now, create an HTML page including this code:</p>
<p>Code:<br />
<code>&lt;img src="your-image-filename.jpg" alt="my messy boy!"&gt;</code></p>
<p>Output:<br />
<img src="http://photos-c.ak.fbcdn.net/photos-ak-snc1/v314/208/13/1485302847/n1485302847_11674_8428.jpg" alt="my messy boy!" style="width: 400px;" /></p>
<p>The Breakdown:<br />
The first thing that we should take note of is that your image element is <em>self-closing</em>, meaning that, unlike something like a <tt>p</tt> element, which uses and opening (<tt>&lt;p&gt;</tt>) and closing (<tt>&lt;/p&gt;</tt>) tags, an image element uses just one tag that closes itself with a &#8216;/&#8217; at the end. Think about it this way&#8230; when you create a paragraph, you need to first tell the paragraph that you are starting a paragraph, then type all of the content for the paragraph, and then tell the browser that the paragraph is over. With an image, all that you need to do is tell the browser that you want a particular image placed on the page, so there is no need to open and close it &#8211; it stands on its own.</p>
<p>Now, how did we tell the browser which image we wanted to place? The answer is the <tt>src</tt> attribute. We simply set the src attribute to the location of the image. Since we saved our HTML page and image in the same folder, we need only to specify the name of the image. If instead we created a folder named &#8220;my_folder&#8221;, and saved our HTML file in there, then created a folder called &#8220;images&#8221; inside of the &#8220;my_folder&#8221; folder, then our src would be &#8220;images/image.jpg&#8221;.</p>
<p>You can also specify an <em>absolute</em> image src by entering the full URL of the image, for example:<br />
<code>&lt;img src="http://www.webdesign-lessons.com/images/your-image-filename.jpg" alt="my messy boy!"&gt;</code><br />
This is useful when the image is not on the same website as the HTML file.</p>
<p>Lastly, let&#8217;s talk about the <tt>alt</tt> attribute. The purpose of this attribute is to tell the browser what to show in case the image can&#8217;t be found (maybe it was accidentally deleted or moved). It is also useful for text-only browsers. Alt attributes are also read by search engines, but most importantly, alt attributes are read by <em>screen readers</em> which read the content of a website out loud for the visually impaired, so make sure that you include alt tags for relevant images that describe what the image represents for those who can&#8217;t see it.</p>
<p>I bet you didn&#8217;t that there was that much involved in just adding an image! We covered a lot of ground here, though, and I&#8217;m sure that you&#8217;re super-excited that you can now add more than boring old text to your web pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesign-lessons.com/?feed=rss2&amp;p=73</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Code HTML Links to Other Pages</title>
		<link>http://www.webdesign-lessons.com/?p=61</link>
		<comments>http://www.webdesign-lessons.com/?p=61#comments</comments>
		<pubDate>Mon, 22 Dec 2008 02:07:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML Lessons / Tutorials]]></category>

		<guid isPermaLink="false">http://www.webdesign-lessons.com/?p=61</guid>
		<description><![CDATA[A link in a website is an element that you can click on that will take you to another page or file. Most of the time you will link a bit of text to another web page. By default, these links are blue, underlined text &#8211; I&#8217;m sure that you&#8217;ve seen them. Let&#8217;s create our [...]]]></description>
			<content:encoded><![CDATA[<p>A link in a website is an element that you can click on that will take you to another page or file. Most of the time you will link a bit of text to another web page. By default, these links are blue, underlined text &#8211; I&#8217;m sure that you&#8217;ve seen them. Let&#8217;s create our own!</p>
<p>First, you will need to create an HTML page that you will be adding your link into. If you don&#8217;t know how to do this, see the <a title="HTML tutorial basic" href="http://www.webdesign-lessons.com/?p=7" target="_self">HTML Basic lesson</a>.</p>
<p>Now, where are you supposed to add all of the content for your page? That&#8217;s right, between the <tt>body</tt> tags. Here is the code to add:</p>
<p><code>&lt;a href="http://www.webdesign-lessons.com"&gt;Web Design Lessons!&lt;/a&gt;</code></p>
<p>Output:</p>
<p><a href="http://www.webdesign-lessons.com">Web Design Lessons!</a></p>
<p>When you click your link it should take you to the homepage of this website. Now, let&#8217;s break it down. This element is called a <tt>link</tt> element or an <tt>anchor</tt> element (hence the &#8216;a&#8217;). Most web designers will simply refer to this as an &#8216;a&#8217; element, though. This, like almost all other elements, requires an opening tag (<tt>&lt;a href="http://www.webdesign-lessons.com"&gt;</tt>), and a closing tag (<tt>&lt;/a&gt;</tt>). The content between the two tags is what will appear on the page, which you can click to navigate to the link. </p>
<p><tt>href</tt> is what is called an <em>attribute</em>. Different elements have different attributes depending on their functions. Since an anchor element needs to take the user somewhere, we need to tell it where to go. We put that URL in between the quotes after <tt>href=</tt>. The URL is the <em>value</em> of the attribute. It is important to put your attribute values in quotes, so that the browser doesn&#8217;t think that you&#8217;re trying to create another attribute.</p>
<p>That&#8217;s it! Congratulations, you can now create multiple pages and allow your users to move between them!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesign-lessons.com/?feed=rss2&amp;p=61</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Basics</title>
		<link>http://www.webdesign-lessons.com/?p=44</link>
		<comments>http://www.webdesign-lessons.com/?p=44#comments</comments>
		<pubDate>Thu, 23 Oct 2008 15:00:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS Lessons / Tutorials]]></category>

		<guid isPermaLink="false">http://www.webdesign-lessons.com/?p=44</guid>
		<description><![CDATA[What is CSS?
CSS stands for Cascading Style Sheets, because a CSS file defines visual styles for elements within an HTML page. A style defined for a an element is inherited by any elements that are nested within that element (hence, cascading). 
Using CSS
Did you do your homework from the HTML Basics Lesson? If so, your [...]]]></description>
			<content:encoded><![CDATA[<h3>What is CSS?</h3>
<p>CSS stands for Cascading Style Sheets, because a CSS file defines visual styles for elements within an HTML page. A style defined for a an element is inherited by any elements that are nested within that element (hence, cascading). </p>
<h3>Using CSS</h3>
<p>Did you do your homework from <a href="http://www.webdesign-lessons.com/?p=7">the HTML Basics Lesson</a>? If so, your code should look like this:</p>
<p><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;<br />
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;<br />
&lt;title&gt;<br />
My First HTML Page!&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;p&gt;<br />
This is my first HTML page. I know how to make words &lt;em&gt;italic&lt;/em&gt; and &lt;strong&gt;bold&lt;/strong&gt;...<br />
&lt;/p&gt;<br />
&lt;p&gt;<br />
and create seperate paragraphs.<br />
&lt;/p&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
</code></p>
<p>Let&#8217;s build on this page with some CSS. Create a new file called styles.css in the same folder that your HTML document is. In this file, paste the following code:</p>
<p><code>body {<br />
background-color: #000000;<br />
font-family: Arial, Helvetica, sans-serif;<br />
color: #FFFFFF;<br />
}<br />
p {<br />
background-color: #424242;<br />
padding: 10px;<br />
border-width: 1px;<br />
border-style: solid;<br />
border-color: #FFFFFF;<br />
}</code></p>
<p>Now, go back to your HTML document and add this line right before the closing <tt>head</tt> tag:</p>
<p><code>&lt;link rel="stylesheet" type="text/css" href="styles.css" /&gt;</code></p>
<h3>The Breakdown</h3>
<p>There are a couple of things to note here before we look at the result. First, let&#8217;s talk about the CSS code. We began by typing <tt>body {</tt>, which is how we tell the browser that we are now going to define some styles for the body element and everything within it. We set the background color, the fonts to use, and the color of the text. If you&#8217;re confused by the way our colors look, that&#8217;s because they are <em>hex values</em>. Hex values are a way of defining precise colors for the web. #000000 means black, and #FFFFFF means white. Don&#8217;t worry, you don&#8217;t have to memorize all of the possible hex values, we will go over some tools for getting them in a later lesson. Also, you can see that we defined a few different fonts. The browser will start at the beginning of the list and if the viewer of the HTML page has that font, it will be used. If they don&#8217;t have that font, it will move on to the next one. The last one is &#8220;sans-serif&#8221; which tells the browser that if it gets to that, just use whatever the default sans-serif font is on the viewer&#8217;s machine.</p>
<p>Next, we closed the <tt>body</tt> styles with a right curly brace ( } ), and began some styles for the <tt>p</tt> element. We also set a background color here, as well as some other styles. Padding puts space between the contents of the element and the edges of it, for example:</p>
<p><a href="http://www.webdesign-lessons.com/wp-content/uploads/2008/10/picture-10.png"><img class="size-medium wp-image-48" title="picture-10" src="http://www.webdesign-lessons.com/wp-content/uploads/2008/10/picture-10.png" alt="no padding" width="32" height="25" /></a>no padding</p>
<p><a href="http://www.webdesign-lessons.com/wp-content/uploads/2008/10/picture-9.png"><img class="size-full wp-image-50" title="picture-9" src="http://www.webdesign-lessons.com/wp-content/uploads/2008/10/picture-9.png" alt="with 10px padding" width="38" height="32" /></a>with 10px padding</p>
<p>We also defined a few styles for the border. It will be one pixel wide, white, and solid (as opposed to dash, dotted, double, groove, inset, or hidden).</p>
<p>Another thing that you may have noticed is that we did not include a closing tag to the <tt>link</tt> element, where we linked to your stylesheet in the HTML page. This is because the <tt>link</tt> element is a <em>self-closing element</em>, which is written slightly differently. Instead of including a closing tag, we simply added a slash before the greater than symbol: <tt>&lt;link ... <strong>/&gt;</strong></tt></p>
<h3>Here is what your page should look like now:</h3>
<p><tt><a href="http://www.webdesign-lessons.com/wp-content/uploads/2008/10/picture-11.png"><img class="alignnone size-full wp-image-55" title="picture-11" src="http://www.webdesign-lessons.com/wp-content/uploads/2008/10/picture-11.png" alt="" width="500" height="235" /></a></tt></p>
<p>There are many more styles in CSS. Here is a link to a complete reference of them: <a href="http://www.w3schools.com/CSS/CSS_reference.asp">CSS Reference</a></p>
<h3>Homework</h3>
<p>Experiment with some different styles, and for now you can also use this website to get the hex values of many different colors: <a href="http://www.colorschemer.com/online.html">Hex Value Color Chooser</a></p>
<p>Happy coding, and see you next lesson!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesign-lessons.com/?feed=rss2&amp;p=44</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HTML Basics</title>
		<link>http://www.webdesign-lessons.com/?p=7</link>
		<comments>http://www.webdesign-lessons.com/?p=7#comments</comments>
		<pubDate>Wed, 22 Oct 2008 16:20:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML Lessons / Tutorials]]></category>

		<guid isPermaLink="false">http://www.webdesign-lessons.com/?p=7</guid>
		<description><![CDATA[What is HTML?
HTML is the language that the web is written in. It puts all of the information that you see on a website into a structure that your browser can understand. It also internally links to resources that enhance that information, such as CSS files for visual styling and JavaScript for logic and interactivity.
What [...]]]></description>
			<content:encoded><![CDATA[<h3>What is HTML?</h3>
<p>HTML is the language that the web is written in. It puts all of the information that you see on a website into a structure that your browser can understand. It also internally links to resources that enhance that information, such as CSS files for visual styling and JavaScript for logic and interactivity.</p>
<h3>What does HTML look like?</h3>
<p>The atomic building blocks of HTML are called <em>tags</em>. A tag always begins with a less than symbol (&lt;) and ends with a greater than symbol. In between goes the type of tag. For example, the &lt;strong&gt; tag is a very commonly used tag to create bold text elements. Each opening tag generally requires a closing tag, to tell the browser when your element ends.</p>
<p>Code:</p>
<p><code>&lt;strong&gt;I am a bold sentence!&lt;/strong&gt;</code></p>
<p>Output:</p>
<p><strong>I am a bold sentence!</strong></p>
<h3>What you need to write HTML</h3>
<p>To write HTML and create websites, you don&#8217;t need much. For now, if you are using windows, notepad will be sufficient, but if you would like something a more advanced, check out <a href="http://www.chami.com/HTML-Kit/">HTMLKit</a>. For Mac users, TextEdit is fine, for a more advanced editor, check out <a href="http://www.barebones.com/products/textwrangler/">TextWrangler</a>.</p>
<h3>Your First HTML Page</h3>
<p>Fire up the text editor of your choice, as we just discussed, and create a new file. Enter the following:</p>
<p><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;<br />
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;<br />
&lt;title&gt;<br />
&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p>This is the basic structure that we begin with for an HTML page. I will give you a quick explanation of its parts.</p>
<p><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;<br />
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;</code></p>
<p>This piece of code tells the browser what kind of page it is loading and how to parse it by referencing what is called its <em>DTD</em> or Document Type Declaration. We are using XHTML 1.0 Strict because this is the most progressive doctype out there right now.</p>
<p><code>&lt;head&gt;<br />
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;</code></p>
<p>This gives the browser further instructions about text encoding and begins the <tt>&lt;head&gt;</tt> element. The <tt>head</tt> element of a document is where you put a lot of code that does not need to be visible to the user, but that the browser uses to make your website work properly. It is also where the <tt>title</tt> element lives:</p>
<p><code>&lt;title&gt;<br />
&lt;/title&gt;<br />
&lt;/head&gt;</code></p>
<p>The <tt>title</tt> element is the name of the page. This is what shows up at the top of the browser window and the link that comes up on search engines when your page is listed. The <tt>title</tt> element is very important for letting users know where they are on the website, as well as helping search engines index your website properly. We have also closed the <tt>head</tt> element here.</p>
<p><code>&lt;body&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</code></p>
<p>
Here, we create the <tt>body</tt> element, and close the <tt>html</tt> element. The <tt>body</tt> is where everything that you want to be visible to the user goes. We will be primarily concerned with this area of the document.
</p>
<h3>Homework</h3>
<p>You are going to use this basic page structure to create your own HTML page. You will use the <tt>strong</tt>, <tt>em</tt> (italic), and <tt>p</tt> (paragraph) elements in order to create a page that resembles the following:</p>
<p><img src="http://www.webdesign-lessons.com/wp-content/uploads/2008/10/picture-63.png" width="548" height="282" alt="Picture 6.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdesign-lessons.com/?feed=rss2&amp;p=7</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
