<?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; html</title>
	<atom:link href="http://freeyourdesign.com/tag/html/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>CSS Two Classes for one Item</title>
		<link>http://freeyourdesign.com/css/css-two-classes-for-one-item/</link>
		<comments>http://freeyourdesign.com/css/css-two-classes-for-one-item/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 20:20:03 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[css tip]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=55</guid>
		<description><![CDATA[Using Two Classes on one item in CSS. Here's a quick CSS Tip you can use if you need to style an item with two(or more) classes. Sometime you might need to make something stand out a little more than the rest of the elements using the same CSS Class. You could throw a span [...]]]></description>
			<content:encoded><![CDATA[<p>
<img style="border:none;" class="left" src="http://freeyourdesign.com/images/cssbadge.gif" alt="css tips and tricks" />Using Two Classes on one item in CSS.</p>
<p>Here's a quick CSS Tip you can use if you need to style an item with two(or more) classes.</p>
<p>Sometime you might need to make something stand out a little more than the rest of the elements using the same CSS Class. You could throw a span tag around it or you can uses a second CSS Class. This way if you need to use this style again you aren't constantly having to type out the whole span tag.</p>
<p>It's actually pretty simple&#8230;<br />
The HTML</p>
<pre>&lt;div class="one two"&gt;This text has TWO classes.&lt;/div&gt;</pre>
<p>The CSS<br />
.one<br />
{<br />
color: #ff0000;<br />
}<br />
.two<br />
{<br />
font-size: 1.5em;<br />
}</p>
<p>and here is the result:</p>
<div class="one two">This text has TWO classes.</div>
<p>A simple but very useful CSS Tip.</p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=55&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-two-classes-for-one-item/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Custom Search Field or Textfield</title>
		<link>http://freeyourdesign.com/css/css-custom-search-field-or-textfield/</link>
		<comments>http://freeyourdesign.com/css/css-custom-search-field-or-textfield/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 11:47:42 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=41</guid>
		<description><![CDATA[Tired of those normal old text field boxes? Well, we are going to create our own custom text field. You can use it on a form or for your search field on your blog. We will start out by simply using CSS to customize the color of the text field's background and border. It's simple, [...]]]></description>
			<content:encoded><![CDATA[<p>Tired of those normal old text field boxes? Well, we are going to create our own custom text field. You can use it on a form or for your search field on your blog. We will start out by simply using CSS to customize the color of the text field's background and border. It's simple, but it can make a big difference and help your search field or form fit in with the design of your site.<br />
<span id="more-41"></span></p>
<h3>Simple Text Field Styling with CSS</h3>
<p>We will start with the HTML. Setup you basic shell for a HTML file and add the <strong>form</strong> and <strong>input</strong> tags in between the body tags.</p>
<pre>&lt;html&gt;
&lt;head&gt;

&lt;title&gt;<span class="text">CSS Custom Text Field</span>&lt;/title&gt;

&lt;link href="<span class="text">style.css</span>" type="<span class="text">text/css</span>" rel="<span class="text">stylesheet</span>" /&gt;

&lt;/head&gt;

&lt;body&gt;
&lt;form&gt;
&lt;input type="<span class="text">text</span>" name="<span class="text">field</span>" class="<span class="text">textInput</span>" /&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Notice that in the <strong>input</strong> tag we are using a <strong>type</strong> of <strong>field</strong> &#8211; which creates a text field. The name can be whatever you would like. Then we add <strong>class="textInput"</strong>. This connects us to the class <strong>.textInput</strong> in our <strong>CSS file</strong>. The name of the class can be whatever you want.</p>
<p>Now for the CSS.</p>
<pre><span class="text">/* CSS Document */</span>
.textInput
{
border: 1px solid #ff0000;
background: #555555;
color: #ffffff;
font-size: 1.1em;
}</pre>
<p><strong>border</strong> &#8211; used to change the style of the border around the text field. Here I changed it to a red color. You can use border to change the thickness, border style (like dashed or dotted), and the color.</p>
<p><strong>background</strong> &#8211; changes the background color of the text field (we will use an image later). The default background is white.</p>
<p><strong>color</strong> &#8211; changes the color of the font. The default is black. I changed it to white.</p>
<p><strong>font-size</strong> &#8211; changes the size of the font which will increase/decrease the size of the text field.</p>
<p>Obviously, you can use other properties to customize the text field. These are some of the more commonly used.</p>
<p><a href="http://freeyourdesign.com/images/csstf/ti.html" target="blank" >The HTML</a><br />
<a href="http://freeyourdesign.com/images/csstf/style.css" target="blank" >The CSS</a></p>
<form>
<input class="textInput1" name="field" type="text" />
</form>
<p></p>
<h3>CSS with Image Text Field Customization</h3>
<p>For even more customization you can add a background image behind the text field. We need to add a <strong>div</strong> and <strong>class</strong> around the <strong>input</strong> tag in the HTML.</p>
<pre>&lt;form&gt;
&lt;div class="<span class="text">fieldHolder</span>"&gt;
&lt;input type="<span class="text">text</span>" name="<span class="text">field</span>" class="<span class="text">textInput</span>" /&gt;
&lt;/div&gt;
&lt;/form&gt;</pre>
<p>This new class <strong>fieldHolder</strong> will hold the text field and the background image we want to use. We will also be changing up <strong>textInput</strong>.</p>
<pre>
.fieldHolder
{
	width: 182px;
	height: 27px;
	background: url(tfbg2.gif) no-repeat;
	float: left;
}

.textInput2
{
	width: 170px;
	height: 22px;
	background: none;
	border: none;
	color: #000000;
	margin-top: 5px;
	margin-left: 5px;
}
</pre>
<p>First off, here is the image I am using &#8211; it needs to be saved to the same folder as you HTML and CSS file.<br />
<img src="http://freeyourdesign.com/images/csstf/tfbg2.gif" alt="bg" style="border:none;" /><br />
(right-click save as/save image as)</p>
<p>Back to the CSS.<br />
<strong>.fieldHolder</strong><br />
<strong>width</strong> &#8211; this is the width of the image we are using.<br />
<strong>height</strong> &#8211; this is the height of the image we are using.<br />
<strong>background</strong> &#8211; linking to the background image and no-repeat.<br />
<strong>float</strong> &#8211; left, this is optional. It is needed if you want to line up forms side by side (if you do this you might need to add margin-right to space out the fields).</p>
<p><strong>.textInput</strong> &#8211; styles for the text field<br />
<strong>width</strong> &#8211; width of our text field.<br />
<strong>height</strong> &#8211; height of our text field.<br />
<strong>background</strong> &#8211; no background &#8211; we want to use the .fileHolder background.<br />
<strong>border</strong> &#8211; no border.<br />
<strong>color</strong> &#8211; color of our font/text.<br />
<strong>margin-top</strong> &#8211; this is important and deals with getting the cursor to show up inside the 'text field' area in our background image. Because we just made an image we need to tell the cursor were to go. This could be different depending on the image you use.<br />
<strong>margin-left</strong> &#8211; same as above &#8211; only position the cursor left or right.</p>
<p><a href="http://freeyourdesign.com/images/csstf/ti.html" target="blank" >The HTML</a><br />
<a href="http://freeyourdesign.com/images/csstf/style.css" target="blank" >The CSS</a></p>
<form>
<div class="fieldHolder2">
<input type="text" name="field" class="textInput2" />
	</div>
</form>
<p>The good thing about encasing the text field inside of fieldHolder is that you can adjust the position of the text field by changing the margins inside of fieldHolder and not have to worry about the cursor position. Once it is set within .textInput you shouldn't have to mess with it.</p>
<p>You can pretty much use whatever background image you can come up with. You will just have to adjust the <strong>margin-top</strong> and <strong>margin-left</strong> inside of the <strong>.textInput</strong> class to position the cursor correctly.</p>
<form>
<div class="fieldHolder3">
<input type="text" name="field" class="textInput3" />
	</div>
</form>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=41&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-custom-search-field-or-textfield/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>CSS Gradient Background Fade</title>
		<link>http://freeyourdesign.com/css/css-gradient-background-fade/</link>
		<comments>http://freeyourdesign.com/css/css-gradient-background-fade/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 11:41:22 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/?p=36</guid>
		<description><![CDATA[A quick and simple way to use a gradient background for you web site. Make the gradient look like it is fading out with no weird lines &#8211; just smoothness. It's really quite easy to do using CSS to edit the body property of the HTML document. We will start off with the HTML. So, [...]]]></description>
			<content:encoded><![CDATA[<p>A quick and simple way to use a gradient background for you web site. Make the gradient look like it is fading out with no weird lines &#8211; just smoothness. It's really quite easy to do using CSS to edit the body property of the HTML document.</p>
<p>We will start off with the HTML. So, open a new document &#8211; I'll be saving mine as fade.html. Get the basic HTML shell written out and go ahead and add a link to a stylesheet &#8211; style.css. Now here is how we will layout the page for presentation purposes.</p>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;<span class="text">Gradient Background Fade</span>&lt;/title&gt;
<span class="text">link to stylesheet</span>
&lt;link href="style.css" rel="stylesheet" type="text/css" media="all" /&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div id="main"&gt;<span class="text"> main container</span>
&lt;p&gt;<span class="text">Place holder text</span>&lt;/p&gt;

&lt;div id="leftSide"&gt;<span class="text">left demonstration </span>
&lt;/div&gt;

&lt;div id="rightSide"&gt; <span class="text"> right demonstration </span>
&lt;h1&gt;<span class="text">Right Section</span>&lt;/h1&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p><span style="font-size: 0.7em">Note: if you copy and paste this you need to take out the 'main container', 'left demonstration', 'right demonstration' text &#8211; they are not to be in the code they are just comments I made.</span></p>
<p>Just a quick layout to show a couple uses of the gradient fade. Before we get to the CSS we need to make(or get) an image for the background. You can use Photoshop to create a simple gradient</p>
<p>In Photoshop create a new file &#8211; I'll make mine 10px wide by 400px high.<br />
Pick the colors you want to use for your gradient &#8211; Take note of whatever the bottom color of the gradient is &#8211; we will need it later. If you double click on the color in the Tools pallet you can copy the hexadecimal number (# followed by six digits). Fill your file with the gradient and save it. Or right-click and save the images I used.<br />
<img src="http://freeyourdesign.com/images/fade/img/bg3.gif" alt="gradient" /> <img src="http://freeyourdesign.com/images/fade/img/bg.gif" alt="gradient" /> <img src="http://freeyourdesign.com/images/fade/img/rightbg.gif" alt="gradient" /></p>
<p>Now to the CSS</p>
<pre>body
{
<span class="text">/*the color here #2c2721 was the bottom color
of my gradient image - a seamless fade*/</span>
background: #2c2721 url(img/bg3.gif) repeat-x;
}

<span class="text">/*just a container to hold things*/</span>
#main
{
	margin: auto;
	width: 700px;
	height: 600px;
	background: #ffffff;
}

#main p
{
	padding: 10px;
}

<span class="text">/*the area to the right with a gradient fade*/</span>
#rightSide
{
	float: right;
	margin-right: 10px;
	height: 500px;
	width: 200px;
        <span class="text">/*#ffffff is the bottom color in gradient*/</span>
	background: #ffffff url(img/rightbg.gif) repeat-x;
}

#rightSide h1
{
	color: #fff;
	margin-left: 5px;
}

<span class="text">/*left area with fade example*/</span>
#leftSide
{
	float: left;
	height: 500px;
	width: 200px;
        <span class="text">/*#ffffff is bottom color in gradient*/</span>
	background: #ffffff url(img/bg.gif) repeat-x;
	margin-left: 10px;
}
</pre>
<p>All the extra CSS is just formatting to show the examples. The <strong>background:</strong> is the property we need to worry about to make the gradient fade work. Use <strong>repeat-x</strong> to make it show up all the way across the page, but not repeat down the page.</p>
<p><a href="http://freeyourdesign.com/images/fade/fade.html" target="blank">The HTML</a><br />
<a href="http://freeyourdesign.com/images/fade/style.css" target="blank">The CSS</a></p>
<p style="text-align: center"><a href="http://freeyourdesign.com/images/fade/fade.zip"><img src="http://freeyourdesign.com/images/dload.gif" alt="download" style="border: medium none " /></a><br />
Download HTML, CSS, and Images</p>
<p>Not the prettiest example, but you get the idea &#8211; pick the colors you want and make it look good.<br />
<img src="http://freeyourdesign.com/images/fade/img/example.gif" alt="example" /></p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=36&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-gradient-background-fade/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>CSS Horizontal Menu</title>
		<link>http://freeyourdesign.com/css/css-horizontal-menu/</link>
		<comments>http://freeyourdesign.com/css/css-horizontal-menu/#comments</comments>
		<pubDate>Thu, 21 Feb 2008 12:51:56 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[css menu]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/css/css-horizontal-menu/</guid>
		<description><![CDATA[Let's use CSS to make a Horizontal Menu. We will be using and styling an unordered list for our menu. There's not a lot to it and the code has comments by each line &#8211; so just follow along and you'll have your own menu in no time. So, make a new .css file and [...]]]></description>
			<content:encoded><![CDATA[<p>Let's use CSS to make a Horizontal Menu. We will be using and styling an unordered list for our menu. There's not a lot to it and the code has comments by each line &#8211; so just follow along and you'll have your own menu in no time.<br />
So, make a new .css file and name it style.css &#8211; You can use notepad and save the file as .css instead of .txt</p>
<h3>Main Container</h3>
<p>We start off with our main styling container. In it we will setup styles like the width of our menu &#8211; the background color &#8211; font size &#8211; and tell it we don't want any bullets next to our list items.</p>
<pre>
<span class="text">/* main container - ul id="menu" */
</span>#menu
{
	margin: 0; <span class="text">/* reset the margins */</span>
	padding: 0; <span class="text">/* reset the padding */</span>
	width: auto; <span class="text">/* this size depends on your menu */</span>
	float: left; <span class="text">/* line things up */</span>
	font-size: 1.4em; <span class="text">/* increase the font size a bit */</span>
	background: #656565; <span class="text">/* any background color you want */</span>
	list-style: none; <span class="text">/* no bullets on our list items */</span>
}</pre>
<h3>The List Items</h3>
<p>Now we will style the list items. If you have items in your menu that aren't linked then this is where you would add any extra formatting for those. Most of the time everything in a menu is linked so all we need to do for our menu is tell it to display our items horizontally.</p>
<pre>
<span class="text">/* list elements */</span>
#menu li
{
	display: inline; <span class="text">/* make it horizontal */</span>
}</pre>
<h3>Our Links</h3>
<p>Let's style our links. This is where we put in formatting like the color of our links &#8211; text decorations &#8211; and anything else you want. The padding here is important and is used to give extra space around the words &#8211; without it the menu would take the height of just slightly more than the text. The a:visited is added to make the links stay the same color even if the user has already visited a link.</p>
<pre>
<span class="text">/* style our links */</span>
#menu li a:link, #menu li a:visited
{
	float: left; <span class="text">/* line things up */</span>
	color: #ffffff; <span class="text">/* the color of our linked items */</span>
	padding: 10px 10px; <span class="text">/* spread it out */</span>
	text-decoration: none; <span class="text">/* no underline */</span><span class="text">/* white border to the right of link</span>
	*/
	border-right: 1px solid #ffffff;
}</pre>
<h3>Link Hover</h3>
<p>Now we format how the link will look when our mouse hovers over it.</p>
<pre>
<span class="text">/* style link hover */</span>
<span class="text">/* .active_link class - optional -</span>
styles the current pages link */
#menu li a:hover, #menu li a:active, #menu .active_link
{
	text-decoration: none; <span class="text">/* no underline */</span>
<span class="text">	/* color to change to when we hover over link */</span>
	background: #009900;
}</pre>
<h3>Clear The Left Margin</h3>
<p>We had float: left above so we need to clear out the left margin so the rest of our page items will fall under our menu instead of to the right of it.</p>
<pre>
<span class="text">/* optional - but a good class to have in every stylesheet */</span>
<span class="text">/* we had float:left; above so in order to clear out the</span>
left margin and allow elements on our page to start under
our menu we should clear the left margin after we creat the menu
*/
.clearLeft
{
	clear: left;
}</pre>
<h3>The HTML</h3>
<p>Open a new HTML file and add a link to our style sheet somewhere within the &lt;head&gt;&lt;/head&gt; tags.</p>
<pre>
&lt;head&gt;
&lt;link href="sytle.css" rel="stylesheet" type="text/css"
media="screen" / &gt;
&lt;/head&gt;</pre>
<p>Within the &lt;body&gt; tags we will setup our menu. Remember we are using an unordered list for our menu.</p>
<pre><span class="text">&lt;!-- use an unordered list --&gt;</span>
&lt;ul id="menu"&gt;
	<span class="text">&lt;!-- each link goes in a list element --&gt;
	&lt;!-- class active_link would be moved to the link of
		whatever page you are on --&gt;
	&lt;!-- so if you if this was the About Us page you would
		move the class="active_link"
		within the About Us a href --&gt;</span>
	&lt;li&gt;&lt;a href="csshzmenu.html" class="active_link"&gt;<span class="text">Home</span>&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;<span class="text">About Us</span>&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;<span class="text">Link 3</span>&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href="#"&gt;<span class="text">Link 4</span>&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
<span class="text">&lt;-- clear out left margin -
       see stylesheet for more info --&gt;</span>
&lt;div class="clearLeft"&gt;&lt;/div&gt;</pre>
<p>There you have it &#8211; customize it to your liking and add it to your site. Here are the files for download (right-click save as)<br />
<a href="http://freeyourdesign.com/images/files/hzmenu/csshzmenu.html">THE HTML</a><br />
<a href="http://freeyourdesign.com/images/files/hzmenu/style.css">THE CSS</a></p>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=23&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/css/css-horizontal-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resources &#8211; HTML Block Level Elements</title>
		<link>http://freeyourdesign.com/resources/resources-html-block-level-elements/</link>
		<comments>http://freeyourdesign.com/resources/resources-html-block-level-elements/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 19:50:27 +0000</pubDate>
		<dc:creator>fyd</dc:creator>
				<category><![CDATA[resources]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://freeyourdesign.com/resources/resources-html-block-level-elements/</guid>
		<description><![CDATA[HTML Block-Level Elements Here is a quick run down of some HTML block-level elements &#8211; some are linked to previous articles here at freeyourdesign.com &#60;address&#62; &#60;/address&#62; Used for contact information - italicizes text &#60;blockquote&#62; &#60;/blockquote&#62; Used for long quotation - indents text left and right &#60;dd&#62; &#60;/dd&#62; definition in definition list &#60;div&#62; &#60;/div&#62; Used to [...]]]></description>
			<content:encoded><![CDATA[<h3>HTML Block-Level Elements</h3>
<p>Here is a quick run down of some HTML block-level elements &#8211; some are linked to previous articles here at freeyourdesign.com</p>
<pre>&lt;address&gt; &lt;/address&gt; <span class="text">

   Used for contact information - italicizes text</span>

&lt;blockquote&gt; &lt;/blockquote&gt;

<span class="text">   Used for long quotation - indents text left and right</span>

&lt;dd&gt; &lt;/dd&gt;

<span class="text">   <a href="http://freeyourdesign.com/the-basics/the-basics-list-creation/">definition in definition list</a></span>

&lt;div&gt; &lt;/div&gt;

<span class="text">   Used to create generic block-level element</span>

&lt;dl&gt; &lt;/dl&gt;

<span class="text">   <a href="http://freeyourdesign.com/the-basics/the-basics-list-creation/">definition list</a></span>

&lt;dt&gt; &lt;/dt&gt;

<span class="text">   <a href="http://freeyourdesign.com/the-basics/the-basics-list-creation/">term in definition list</a></span>

&lt;h#&gt; &lt;/h#&gt;

<span class="text">   <a href="http://freeyourdesign.com/the-basics/the-basics-html-headings/">Headings - # is 1 through 6</a></span>

&lt;li&gt; &lt;/li&gt;

<span class="text">   <a href="http://freeyourdesign.com/the-basics/the-basics-list-creation/">Element in an ordered or unordered list</a></span>

&lt;ol&gt; &lt;/ol&gt;

<span class="text">   <a href="http://freeyourdesign.com/the-basics/the-basics-list-creation/">Ordered List</a></span>

&lt;p&gt; &lt;/p&gt;

<span class="text">   <a href="http://freeyourdesign.com/the-basics/the-basics-html-hello-world/">Paragraph</a></span>

&lt;ul&gt; &lt;/ul&gt;

<span class="text">   <a href="http://freeyourdesign.com/the-basics/the-basics-list-creation/">Unordered List</a></span></pre>
<img src="http://freeyourdesign.com/?ak_action=api_record_view&id=13&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://freeyourdesign.com/resources/resources-html-block-level-elements/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>

