<?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>Newbie Website Design &#187; My First Website</title>
	<atom:link href="http://www.newbiewebsitedesign.com/category/my-first-website/feed" rel="self" type="application/rss+xml" />
	<link>http://www.newbiewebsitedesign.com</link>
	<description></description>
	<lastBuildDate>Fri, 23 Oct 2009 23:40:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Learning some shorthand CSS (MFW#7)</title>
		<link>http://www.newbiewebsitedesign.com/learning-some-shorthand-css</link>
		<comments>http://www.newbiewebsitedesign.com/learning-some-shorthand-css#comments</comments>
		<pubDate>Sun, 13 Sep 2009 03:02:16 +0000</pubDate>
		<dc:creator>David Radtke - Admin</dc:creator>
				<category><![CDATA[HTML / CSS]]></category>
		<category><![CDATA[My First Website]]></category>

		<guid isPermaLink="false">http://www.newbiewebsitedesign.com/?p=1718</guid>
		<description><![CDATA[&#8220;My First Website&#8221; series navigation: first post &#8212; whole series
In the last post in this series we centered our web page, added some padding and margins, and put a border around it all. But, in order to do so, it took about 13 lines of CSS code. Ouch! Most people, after seeing that much coding, [...]]]></description>
			<content:encoded><![CDATA[<p><span class="seriesnavi">&#8220;My First Website&#8221; series navigation: <a href="/getting-started-my-first-website">first post</a> &#8212; <a href="/category/my-first-website">whole series</a></span><br />
<br/><img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/08/mfw7.jpg" alt="mfw7" title="mfw7" width="144" height="123" class="leftphoto" />In the last post in this series we centered our web page, added some padding and margins, and put a border around it all. But, in order to do so, it took about 13 lines of CSS code. Ouch! Most people, after seeing that much coding, would give up the idea of hand-coding a website and run to a WYSIWYG visual editor.</p>
<p>Never fear, there are actually a few ways to take that obnoxiously long CSS code and shrink it down to only 4 lines! In this post, you&#8217;ll learn how to miniaturize your CSS code and &mdash; as promised &mdash; talk about some spacing anomalies.</p>
<p><span id="more-1718"></span></p>
<h2>Recap: the full CSS code</h2>
<p>Here&#8217;s the full CSS code for our &#8220;style.css&#8221; file we ended up with in the last post:</p>
<div class="codesnippet">
#pagewrap {<br />
&nbsp;&nbsp;&nbsp;&nbsp;width: 800px;<br/><br />
&nbsp;&nbsp;&nbsp;&nbsp;border-top: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-right: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-bottom: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-left: 1px solid #000000;<br/><br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-left: auto;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-right: auto;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-top: 30px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-bottom: 30px;<br/><br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-top: 50px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-right: 50px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-bottom: 50px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-left: 50px;<br />
}
</div>
<p>We won&#8217;t be making the &#8220;width&#8221; declaration any shorter because we can&#8217;t (so I won&#8217;t be including it in the following examples) but everything else can! Here we go&#8230;</p>
<h2>The quick border code</h2>
<p>We can quickly replace all four lines of the CSS code that makes the square border with this simple shorthand line of code:</p>
<div class="codesnippet">
&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid #000000;
</div>
<p>If we don&#8217;t specify top, right, bottom, or left in the border <strong>property</strong>, then a complete square border will be created.</p>
<h2>Easy padding</h2>
<p>The padding code can be shorted to one line:</p>
<div class="codesnippet">
&nbsp;&nbsp;&nbsp;&nbsp;padding: 50px;
</div>
<p>Just like the border property above, this will add 50 pixels of padding all around.</p>
<h2>Minimized margin</h2>
<p>Differing from the padding and border code, the margin code is a little longer:</p>
<div class="codesnippet">
&nbsp;&nbsp;&nbsp;&nbsp;margin: 30px auto 30px auto;
</div>
<p>What does it all mean? Read on&#8230;</p>
<h2>Tick-tock, think like a clock</h2>
<p>The four <strong>values</strong> in the margin declaration list the margin distances in this order: top, right, bottom, left. The easy way to remember this is to imagine a clock:<br />
<center><br />
<img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/08/clock.jpg" alt="clock" title="clock" width="227" height="164" class="alignnone size-full wp-image-1722" /><br />
</center><br />
Here&#8217;s a little more detail:<br />
<center><br />
<img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/08/margin.jpg" alt="margin" title="margin" width="503" height="121" class="alignnone size-full wp-image-1723" /><br />
</center></p>
<p>Each value can be different. For example: <strong>margin: 10px 50px 25px 30px;</strong> is perfectly fine. Also, padding can be written this way if each value is different.</p>
<h2>A little shorter</h2>
<p>The margin declaration can be shortened even further:</p>
<div class="codesnippet">
&nbsp;&nbsp;&nbsp;&nbsp;margin: 30px auto;
</div>
<p>In this case, the first value of &#8220;30px&#8221; is for the top and bottom. The second value of &#8220;auto&#8221; is for left and right. You can use this shorthand for padding as well.</p>
<h2>The final cleanup</h2>
<p>We can now replace all of that lengthy CSS code for the #pagewrap with the following:</p>
<div class="codesnippet">
#pagewrap {<br />
&nbsp;&nbsp;&nbsp;&nbsp;width: 800px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin: 30px auto;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding: 50px;<br />
}
</div>
<p>If you haven&#8217;t done so already, update your &#8220;style.css&#8221; file to the above code. You can then look at your &#8220;index.html&#8221; file in your browser. If all went well, you shouldn&#8217;t see any difference!</p>
<h2>Some spacing anomalies</h2>
<p>We declared that the padding should be 50 pixels all around. But if you look carefully you&#8217;ll notice that the padding at the top and the bottom look larger than on the sides (i.e. there is a greater distance between the top border and the &#8220;A Level 1 Heading&#8221; than there is between the left border and the text.) Here&#8217;s the web page to check out:</p>
<p><a href="/mfw-examples/post-6-4.html">View the web page</a></p>
<p>The reason is the <strong>&lt;h1&gt;</strong> heading and the <strong>&lt;p&gt;</strong> paragraphs have their own margins and padding. Both of these come from your browser&#8217;s default style sheet. You can change them by making your own style declarations in your &#8220;style.css&#8221; file. Let&#8217;s do that now by adding the following code:</p>
<div class="codesnippet">
h1 {<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin: 0;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding: 0 0 10px 0;<br />
}
</div>
<p>This CSS code will remove the margins on the <strong>&lt;h1&gt;</strong> heading and add 10px of padding at the bottom to give us some space between the heading and the first paragraph.</p>
<p><a href="/mfw-examples/post-7-1.html">View the result</a></p>
<p>While this is closer to what we want, it&#8217;s still not perfect. There is still the issue of <strong>line-height</strong> that is adding some extra space above our heading and the issue of extra padding after the last paragraph. But since we&#8217;ve covered a lot of ground today, let&#8217;s cover those topics in a later post, shall we? <img src='http://www.newbiewebsitedesign.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h2>Your homeowork</h2>
<p>As always, take some time to play around with the values for the padding and the margins. If you&#8217;re feeling adventurous, add some CSS to the h3 heading.</p>
<p>In the next post we&#8217;ll take a look at dividing up our web page even further by creating a separate header section for our website&#8217;s title and adding a little background color as well.</p>
<p>See you then! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.newbiewebsitedesign.com/learning-some-shorthand-css/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Margins, padding, and borders oh my! Plus centering a website with CSS (MFW#6)</title>
		<link>http://www.newbiewebsitedesign.com/margins-padding-borders-centering-website-with-css</link>
		<comments>http://www.newbiewebsitedesign.com/margins-padding-borders-centering-website-with-css#comments</comments>
		<pubDate>Mon, 03 Aug 2009 05:26:56 +0000</pubDate>
		<dc:creator>David Radtke - Admin</dc:creator>
				<category><![CDATA[HTML / CSS]]></category>
		<category><![CDATA[My First Website]]></category>

		<guid isPermaLink="false">http://www.newbiewebsitedesign.com/?p=1529</guid>
		<description><![CDATA[&#8220;My First Website&#8221; series navigation: first post &#8212; whole series
In this post of the &#8220;My First Website&#8221; series, we&#8217;re not going to touch the HTML of our website at all! Instead, we will focus only on the CSS. Specifically, how to add margins, padding, and borders. In addition, we are going to take our web [...]]]></description>
			<content:encoded><![CDATA[<p><span class="seriesnavi">&#8220;My First Website&#8221; series navigation: <a href="/getting-started-my-first-website">first post</a> &#8212; <a href="/category/my-first-website">whole series</a></span><br />
<br/><img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/08/mpb.jpg" alt="mpb" width="118" height="139" class="leftphoto" />In this post of the &#8220;My First Website&#8221; series, we&#8217;re not going to touch the HTML of our website at all! Instead, we will focus only on the <a href="/cascading-style-sheets-css">CSS</a>. Specifically, how to add margins, padding, and borders. In addition, we are going to take our web page (which was stuck hard and fast to the left side of the browser window) and center it using some simple CSS.</p>
<p>If you haven&#8217;t done so already, fire up Notepad (Windows) or TextEdit (Mac), open the document called &#8220;style.css&#8221;, and get your &#8220;index.html&#8221; loaded up in your browser to view your results as you go through this tutorial&#8230;</p>
<p><span id="more-1529"></span></p>
<h2>Adding a border using CSS</h2>
<p>The first thing we&#8217;re going to do to our &#8220;style.css&#8221; file is to add a border to #pagewrap. Here is what you should have written already for the #pagewrap id:</p>
<div class="codesnippet">
#pagewrap {<br />
&nbsp;&nbsp;&nbsp;&nbsp;width: 800px;<br />
}
</div>
<p>Next, we&#8217;re going to add four more lines of code to create a border around our page. Take a look at what your #pagewrap should look like with the new code:</p>
<div class="codesnippet">
#pagewrap {<br />
&nbsp;&nbsp;&nbsp;&nbsp;width: 800px;<br/><br />
&nbsp;&nbsp;&nbsp;&nbsp;border-top: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-right: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-bottom: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-left: 1px solid #000000;<br />
}
</div>
<p>The &#8220;border-???&#8221; determines where the border will appear: top, right, bottom, or left. The &#8220;1px&#8221; means that the border will be 1 pixel in width. The &#8220;solid&#8221; means that the border will be a solid line (there are a few more styles of borders that I&#8217;ll get to in a minute.) And the #000000 is the <a href="/what-are-web-safe-hex-colors-html-chart">hex color code</a> for pure black.</p>
<p>Save your &#8220;style.css&#8221; file, fire up your browser, and view the file called &#8220;index.html&#8221; in your browser to see the result. It should look like this:</p>
<p><a href="/mfw-examples/post-6-1.html">View the result</a></p>
<h2>Different kinds of CSS borders</h2>
<p>There are actually nine different kinds of borders you can create using CSS, but four of the five require a different kind of code than what is listed above (and, in my opinion, look horrible) and one we we&#8217;ll get into in a later post. So, for now, here is a list of the most-often used borders that can be created with the above code:</p>
<ul>
<li><strong>solid</strong></li>
<li><strong>dotted</strong></li>
<li><strong>dashed</strong></li>
<li><strong>double</strong></li>
</ul>
<p>Here&#8217;s what they look like:</p>
<p><span style="border: 1px solid #000000; padding: 8px;">A solid border.</span><br />
<br/><br />
<span style="border: 1px dotted #000000; padding: 8px;">A dotted border.</span><br />
<br/><br />
<span style="border: 1px dashed #000000; padding: 8px;">A dashed border.</span><br />
<br/><br />
<span style="border: 3px double #000000; padding: 8px;">A double border.</span><br/><br />
(NOTE: The double border requires a minimum of 3px to display &mdash; 1px for one line, 1px for the other line, and 1px of white space between the two.)</p>
<h2>Adding margins and centering our website with CSS</h2>
<p>Let&#8217;s get our web page centered in the browser window. It&#8217;s quite easy, actually. Just add these two lines of CSS code after the border code:</p>
<div class="codesnippet">
&nbsp;&nbsp;&nbsp;&nbsp;margin-left: auto;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-right: auto;
</div>
<p>As before, save your &#8220;style.css&#8221; and reload the &#8220;index.html&#8221; file in your browser to see the results. It should look like this:</p>
<p><a href="/mfw-examples/post-6-2.html">View the result</a></p>
<p>The &#8220;auto&#8221; means &#8220;automatic&#8221;, so the browser will automatically adjust the left-right margins of our web page. If you resize your browser window, the position of the web page will adjust accordingly.</p>
<p>Next, let&#8217;s put a little distance between the top and bottom of our web page and the browser window. Depending on your browser, there might already be a little space. This is because all browsers have quite a few default CSS settings. But when you create your own CSS, it will override the default settings. Add these two lines of code:</p>
<div class="codesnippet">
&nbsp;&nbsp;&nbsp;&nbsp;margin-top: 30px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-bottom: 30px;
</div>
<p>And here&#8217;s the result:</p>
<p><a href="/mfw-examples/post-6-3.html">View the result</a></p>
<h2>Adding padding</h2>
<p>Finally we&#8217;re going to add some padding. The concept of padding is a little strange when you first begin using it. All it does is add some space between your content and the border. The strange part comes from how it changes the size of our #pagewrap.</p>
<p>We declared that our #pagewrap is to be 800px (pixels) wide. Adding the margins didn&#8217;t change its width &mdash; it&#8217;s still 800px wide. But when we add padding, the actual size of the page WILL change. The content will still be 800px wide, but the padding will add more pixels around the content.</p>
<p>Add this code to your CSS:</p>
<div class="codesnippet">
&nbsp;&nbsp;&nbsp;&nbsp;padding-top: 50px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-right: 50px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-bottom: 50px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-left: 50px;
</div>
<p>Here&#8217;s the result:</p>
<p><a href="/mfw-examples/post-6-4.html">View the result</a></p>
<h2>Adding it all up</h2>
<p>Time to do the math. As I said above, margins don&#8217;t change the size of the page itself. But then we added 50px of padding all around. That means we now have an extra 50px of width on the left and an extra 50px of width on the right making our web page 900px wide.</p>
<p>But wait! Did you for get that we added a 1px border around the whole thing? Now we have to add 1px of width from the left side and one 1px of width from the right side.</p>
<p>The grand total is 902px wide!</p>
<p>Keep this in mind when you set the width of something using CSS. Margins don&#8217;t change the width, but adding a border or padding WILL!</p>
<h2>A GREAT way to view the CSS box model!</h2>
<p>Here&#8217;s a website that has a wonderful interactive representation of the CSS box model to help you understand all about margins, borders, padding, and more. Make sure to move the &#8220;perspective&#8221; slider at the bottom to see the full effect!</p>
<p><a href="http://redmelon.net/tstme/box_model/">>> The CSS box model <<</a></p>
<h2>The full CSS code</h2>
<p>This is what your &#8220;style.css&#8221; file should look like now:</p>
<div class="codesnippet">
#pagewrap {<br />
&nbsp;&nbsp;&nbsp;&nbsp;width: 800px;<br/><br />
&nbsp;&nbsp;&nbsp;&nbsp;border-top: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-right: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-bottom: 1px solid #000000;<br />
&nbsp;&nbsp;&nbsp;&nbsp;border-left: 1px solid #000000;<br/><br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-left: auto;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-right: auto;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-top: 30px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-bottom: 30px;<br/><br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-top: 50px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-right: 50px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-bottom: 50px;<br />
&nbsp;&nbsp;&nbsp;&nbsp;padding-left: 50px;<br />
}
</div>
<p><em>That&#8217;s a lot for just one pagewrap!</em></p>
<p>But, there actually is an easier way to write this so that it only takes up 4 lines instead of 13! (I&#8217;ll show you how in the next post in this series.) Besides, if I show you the short hand method first, then you might not know about the CSS code above (it is used quite often.)</p>
<h2>Your homework</h2>
<p>We covered a lot of material in this post (and thank goodness our web page is actually starting to look like a real page!) Go ahead an play with some of the numbers. Make your borders thicker, remove one or more of them, or change their style. Add more padding or take away some. Play with the width of #pagewrap to see what happens.</p>
<p><a href="/learning-some-shorthand-css">In the next post</a>, I&#8217;ll talk about the shorthand way to write all of the above CSS code as well as discuss some of the spacing issues you may have already caught (i.e. did you notice that there appears to be more padding on the top than on the sides? In the next post, you&#8217;ll discover the reason!)</p>
<p>Until next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newbiewebsitedesign.com/margins-padding-borders-centering-website-with-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding some CSS to our website (MFW#5)</title>
		<link>http://www.newbiewebsitedesign.com/adding-css-to-a-website</link>
		<comments>http://www.newbiewebsitedesign.com/adding-css-to-a-website#comments</comments>
		<pubDate>Tue, 28 Jul 2009 12:22:00 +0000</pubDate>
		<dc:creator>David Radtke - Admin</dc:creator>
				<category><![CDATA[HTML / CSS]]></category>
		<category><![CDATA[My First Website]]></category>

		<guid isPermaLink="false">http://www.newbiewebsitedesign.com/?p=1320</guid>
		<description><![CDATA[&#8220;My First Website&#8221; series navigation: first post &#8212; whole series
It&#8217;s time for the moment you&#8217;ve all been waiting for: adding CSS to our website! In the previous post in this series we finally were able to get some very basic content on our first website. Unfortunately, as far as websites go, it&#8217;s pretty lame &#8212; [...]]]></description>
			<content:encoded><![CDATA[<p><span class="seriesnavi">&#8220;My First Website&#8221; series navigation: <a href="/getting-started-my-first-website">first post</a> &#8212; <a href="/category/my-first-website">whole series</a></span><br />
<br/><img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/07/css-baby.jpg" alt="css-baby" title="css-baby" width="118" height="139" class="leftphoto" />It&#8217;s time for the moment you&#8217;ve all been waiting for: adding CSS to our website! In the <a href="/filling-out-webpage-with-html">previous post</a> in this series we finally were able to get some very basic content on our first website. Unfortunately, as far as websites go, it&#8217;s pretty lame &mdash; no styling, no colors, and what we got was one long <strong>liquid layout</strong> (a layout whose width varies with the width of the browser window.)</p>
<p>So roll up your sleeves, get Notepad, TextEdit, or your favorite text-digesting software ready to go, because we&#8217;re gonna add some CSS!</p>
<p><span id="more-1320"></span></p>
<h2>Adding an External Style Sheet</h2>
<p>The first thing we need to do is start a blank document in either Notepad or TextEdit. You&#8217;re going to name this file &#8220;style.css&#8221; (without the quotes) and save it in the same folder with the &#8220;index.html&#8221; file you created in the previous post. (Design Projects – My First Website – website.)</p>
<p>The naming of this file isn&#8217;t really that important. You can call it &#8220;mainsheet.css&#8221; or &#8220;stylesheet.css&#8221; or even &#8220;frankie.css&#8221; if that&#8217;s your preference. The only thing you MUST have is the &#8220;.css&#8221; at the end. Also, don&#8217;t use spaces or upper-case letters. Instead of spaces, you can use a dash ( &#8211; ) or an underscore ( _ ). For example: &#8220;style_version1.css&#8221; Make sure to save it as a UTF-8 as you learned in the <a href="/filling-out-webpage-with-html">previous post</a>.</p>
<h2>Linking your web page to the external CSS file</h2>
<p>Next, we&#8217;re going to link our web page to the CSS file we just created. We do so using this line of mark up:</p>
<div class="codesnippet">
&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot;&gt;
</div>
<p>Now, open your &#8220;index.html&#8221; and add that line of mark up anywhere between the <strong>&lt;head&gt; &lt;/head&gt;</strong> tags. Like this: (I made it red to make it easier to spot.)</p>
<div class="codesnippet">
&lt;head&gt;<br />
&lt;title&gt;My First Website&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;<br />
<span style="color: #CC0000; font-weight: bold;">&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot;&gt;</span><br />
&lt;/head&gt;<br/>
</div>
<h2>Wrapping our web page</h2>
<p>It&#8217;s time to add our first &#8220;box&#8221; to our web page. This box will encompass or &#8220;wrap&#8221; the whole page itself. We will do so by adding <strong>&lt;div&gt; &lt;/div&gt;</strong> tags. But before we do that, we need to name our <strong>&lt;div&gt;</strong> so we can use our CSS file to change how it will appear.</p>
<p>To name this <strong>&lt;div&gt;</strong>, we&#8217;re going to give it a unique <strong>id</strong>. &#8220;Id&#8221;s can have any name at all, just make sure it is descriptive enough to you so you know what is does. For example, this <strong>&lt;div&gt;</strong> is going to wrap our web page, so let&#8217;s give it an id with the name of &#8220;pagewrap&#8221;. And we write it like this:</p>
<div class="codesnippet">
&lt;div id=&quot;pagewrap&quot;&gt;
</div>
<p>Now add both the opening tag and the closing tag to your &#8220;index.html&#8221; file. See below (to make it shorter, I left out all of the content you created in the <a href="/filling-out-webpage-with-html">previous post</a>.)</p>
<div class="codesnippet">
&lt;body&gt;<br/><br />
&lt;div id=&quot;pagewrap&quot;&gt;<br/><br />
&lt;h1&gt;A Level 1 Heading&lt;/h1&gt;<br />
(Here&#8217;s all the content from before)<br/><br />
 &lt;/div&gt;<br />
&lt;/body&gt;
</div>
<p>Save your &#8220;index.html&#8221; file.</p>
<h2>Finally! Some CSS!</h2>
<p>Go back to your &#8220;style.css&#8221; file and enter (or copy and paste) the following:</p>
<div class="codesnippet">
#pagewrap {<br />
&nbsp;&nbsp;&nbsp;&nbsp;width: 800px;<br />
}
</div>
<p>What this does is declare that the id called &#8220;pagewrap&#8221; (the # sign means &#8220;id&#8221; in CSS lingo) will have a width of 800px (the &#8220;px&#8221; means pixels.) The opening and closing curly brackets &mdash; { }  &mdash; must surround the CSS code and don&#8217;t forget the semicolon at the end of the line!</p>
<p>Save your &#8220;style.css&#8221; file.</p>
<h2>Take a look</h2>
<p>If all went well, then when you view your &#8220;index.html&#8221; file in your browser (remember how to do that?) It should look like this:</p>
<p><a href="/mfw-examples/post-5.html">View the web page</a></p>
<p>If your web page looks like the one above then congratulations! If not, go back an check all of the code and mark up for mistakes. Here is the full mark up of the &#8220;index.html&#8221; file for you to compare against:</p>
<div class="codesnippet">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;<br />
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br/><br />
&lt;head&gt;<br />
&lt;title&gt;My First Website&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;<br />
&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot; type=&quot;text/css&quot;&gt;<br />
&lt;/head&gt;<br/><br />
&lt;body&gt;<br/><br />
&lt;div id=&quot;pagewrap&quot;&gt;<br/><br />
&lt;h1&gt;A Level 1 Heading&lt;/h1&gt;<br/><br />
&lt;p&gt;Morbi non erat non ipsum pharetra tempus. Donec orci. Proin in ante. Pellentesque sit amet purus. Cras egestas diam sed ante. Etiam imperdiet urna sit amet risus. Donec ornare arcu id erat.&lt;/p&gt;<br/><br />
&lt;p&gt;Aliquam et nisl vel ligula consectetuer suscipit. Morbi euismod enim eget neque. Donec sagittis massa. Vestibulum quis augue sit amet ipsum laoreet pretium. Nulla facilisi. Duis tincidunt, felis et luctus placerat, ipsum libero vestibulum sem, vitae elementum wisi ipsum a metus.&lt;/p&gt;<br/><br />
&lt;h3&gt;A Level 3 Heading&lt;/h3&gt;<br/><br />
&lt;p&gt;Morbi non erat non ipsum pharetra tempus. Donec orci. Proin in ante. Pellentesque sit amet purus. Cras egestas diam sed ante. Etiam imperdiet urna sit amet risus. Donec ornare arcu id erat.&lt;/p&gt;<br/><br />
&lt;p&gt;Aliquam et nisl vel ligula consectetuer suscipit. Morbi euismod enim eget neque. Donec sagittis massa. Vestibulum quis augue sit amet ipsum laoreet pretium. Nulla facilisi. Duis tincidunt, felis et luctus placerat, ipsum libero vestibulum sem, vitae elementum wisi ipsum a metus.&lt;/p&gt;<br/><br />
&lt;/div&gt;<br/><br />
&lt;/body&gt;
</div>
<h2>Conclusion</h2>
<p>We&#8217;ve now taken our <strong>liquid layout</strong> (a layout that changes width with the browser window) and made it into a <strong>fixed-width layout</strong> (a layout whose width is unaffected by the width of the browser window). Still it&#8217;s not much to look at, but we&#8217;re getting there!</p>
<p>In the next post titled <a href="/margins-padding-borders-centering-website-with-css">Margins, padding, and borders oh my! Plus centering a website with CSS</a> I&#8217;ll introduce you to the gory details of the CSS box model by adding some padding, some margins, and even a border to surround our web page.</p>
<p>Until next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newbiewebsitedesign.com/adding-css-to-a-website/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Filling out our webpage with HTML (MFW#4)</title>
		<link>http://www.newbiewebsitedesign.com/filling-out-webpage-with-html</link>
		<comments>http://www.newbiewebsitedesign.com/filling-out-webpage-with-html#comments</comments>
		<pubDate>Thu, 16 Jul 2009 01:37:07 +0000</pubDate>
		<dc:creator>David Radtke - Admin</dc:creator>
				<category><![CDATA[HTML / CSS]]></category>
		<category><![CDATA[My First Website]]></category>

		<guid isPermaLink="false">http://www.newbiewebsitedesign.com/?p=1015</guid>
		<description><![CDATA[&#8220;My First Website&#8221; series navigation: first post &#8212; whole series

In this installment of My First Website, we&#8217;ll build upon the simple web page we created in the previous post in the series. You&#8217;ll learn about headings and how to create them as well as dividing up your content into paragraphs. Yes, slowly but surely we [...]]]></description>
			<content:encoded><![CDATA[<p><span class="seriesnavi">&#8220;My First Website&#8221; series navigation: <a href="/getting-started-my-first-website">first post</a> &#8212; <a href="/category/my-first-website">whole series</a></span><br />
<br/><br />
<img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/07/mfw4.jpg" alt="HTML headings and paragraphs" title="HTML headings and paragraphs" width="118" height="139" class="leftphoto" />In this installment of My First Website, we&#8217;ll build upon the simple web page we created in the <a href="/first-web-page-html-examples">previous post in the series</a>. You&#8217;ll learn about headings and how to create them as well as dividing up your content into paragraphs. Yes, slowly but surely we are getting into more of the &#8220;meat and potatoes&#8221; of HTML!</p>
<p>But before we can tuck in our napkin and dine on some HTML goodness, let&#8217;s get your web page ready to be viewed on your own browser. And it&#8217;s very easy to do.</p>
<p>Let&#8217;s begin&#8230;</p>
<p><span id="more-1015"></span></p>
<div class="clear"></div>
<h2>Getting ready</h2>
<p>The first thing you need to do is to take the mark up you learned in &#8220;My first Website #3&#8243;, copy and paste it into a new document in either NotePad (Windows) of TextEdit (Mac), and then save it. Here&#8217;s that mark up if you missed it:</p>
<div class="codesnippet">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;<br />
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br/><br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br/><br />
&lt;head&gt;<br />
&lt;title&gt;My First Website&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;<br />
&lt;/head&gt;<br/><br />
&lt;body&gt;<br />
&lt;p&gt;Here is some sample text that will appear in your browser.&lt;/p&gt;<br />
&lt;/body&gt;<br/><br />
&lt;/html&gt;
</div>
<p>Now you need to save it. But you have to make sure to save it in a special way. The webpage itself is encoded using <em>UTF-8</em> so you need to save the file using UTF-8. Take a gander below&#8230;</p>
<h3>NotePad:</h3>
<p>After copying and pasting the above mark up, choose &#8220;Save As&#8230;&#8221; from the file menu in NotePad. Then, in the &#8220;Encoding&#8221; drop down menu choose UTF-8. Enter the filename as <strong>index.html</strong>. Finally, save it the folder called &#8220;website&#8221; that you created in &#8220;<a href="/getting-started-my-first-website">My First Website #1</a>&#8220;. (Design Projects &#8211; My First Website &#8211; website.) Done!</p>
<h3>TextEdit:</h3>
<p>First, make sure that your new document is a <em>plain text</em> document. Look in the &#8220;Format&#8221; menu at the top. If you see &#8220;Make Rich Text&#8221; then your document is already in plain text. If you see &#8220;Make Plain Text&#8221; in the menu, choose that. </p>
<p>After copying and pasting the above mark up, choose &#8220;Save As&#8230;&#8221; from the file menu in TextEdit. Then, in the &#8220;Encoding&#8221; drop down menu choose UTF-8. Enter the filename as <strong>index.html</strong>. Finally, save it the folder called &#8220;website&#8221; that you created in &#8220;<a href="/getting-started-my-first-website">My First Website #1</a>&#8220;. (Design Projects &#8211; My First Website &#8211; website.) Done!<br/><br/></p>
<h2>Viewing &#8216;index.html&#8217; in your browser</h2>
<p>It&#8217;s very easy to see what this webpage will look like without the need to have it <a href="/what-is-hosting-a-website">hosted</a> somewhere. All you have to do is start up your favorite flavor of browser (FireFox, Safari, Internet Explorer, etc.), go to the &#8220;File&#8221; menu, choose &#8220;Open File&#8230;&#8221; and then find the <strong>index.html</strong> document that you just created. Tada! You should be able to see our rather scanty webpage.</p>
<p>Now let&#8217;s spice it up a little!</p>
<h2>Add a heading</h2>
<p>Right after the opening <strong>&lt;body&gt;</strong> tag, we&#8217;re going to add a level 1 heading. It&#8217;s made using these opening and closing tags: <strong>&lt;h1&gt; &lt;/h1&gt;</strong>. Let&#8217;s put one in! (To save space in this and subsequent posts, I&#8217;m not going to repeat the full markup. Ok?)</p>
<div class="codesnippet">
&lt;body&gt;<br/><br />
&lt;h1&gt;A Level 1 Heading&lt;/h1&gt;<br />
&lt;p&gt;Here is some sample text that will appear in your browser.&lt;/p&gt;<br/><br />
&lt;/body&gt;
</div>
<p>Don&#8217;t worry about the empty lines in-between the tags. I could put 100 empty lines and the result would be the same. Why? Because if you want empty lines, you have to tell the browser using HTML!</p>
<p>View the result: <a href="/mfw-examples/post-4-1.html">Level 1 Heading</a></p>
<h2>Add some more paragraphs</h2>
<p>Next, using some <a href="/what-is-lorem-ipsum-why-should-you-use-it">Lorem Ipsum</a>, we&#8217;ll add a few paragraphs with the <strong>&lt;p&gt; &lt;/p&gt;</strong> paragraph tags. (By all means, please copy and paste the text below, I would never expect you to type out Lorem Ipsum!)</p>
<div class="codesnippet">
&lt;body&gt;<br/><br />
&lt;h1&gt;A Level 1 Heading&lt;/h1&gt;<br/><br />
&lt;p&gt;Morbi non erat non ipsum pharetra tempus. Donec orci. Proin in ante. Pellentesque sit amet purus. Cras egestas diam sed ante. Etiam imperdiet urna sit amet risus. Donec ornare arcu id erat.&lt;/p&gt;<br/><br />
&lt;p&gt;Aliquam et nisl vel ligula consectetuer suscipit. Morbi euismod enim eget neque. Donec sagittis massa. Vestibulum quis augue sit amet ipsum laoreet pretium. Nulla facilisi. Duis tincidunt, felis et luctus placerat, ipsum libero vestibulum sem, vitae elementum wisi ipsum a metus.&lt;/p&gt;<br/><br />
&lt;/body&gt;
</div>
<p>View the result: <a href="/mfw-examples/post-4-2.html">Two Paragraphs</a></p>
<h2>Add a subheading and more paragraphs</h2>
<p>Headings have 6 levels: 1 being the largest and 6 being the smallest. You write them this way:</p>
<p><strong>&lt;h1&gt; &lt;/h1&gt;</strong><br />
<strong>&lt;h2&gt; &lt;/h2&gt;</strong><br />
<strong>&lt;h3&gt; &lt;/h3&gt;</strong><br />
<strong>&lt;h4&gt; &lt;/h4&gt;</strong><br />
<strong>&lt;h5&gt; &lt;/h5&gt;</strong><br />
<strong>&lt;h6&gt; &lt;/h6&gt;</strong></p>
<p>View an example here: <a href="/mfw-examples/post-4-3.html">Headings list</a></p>
<p>Each browser will size them differently unless you use some CSS to change how they appear. You can mix and match any number of levels and even use the same level many times on a single webpage &mdash; there aren&#8217;t any rules. So, let&#8217;s add a subheading using an <strong>&lt;h3&gt; &lt;/h3&gt;</strong> tag along with some more paragraphs:</p>
<div class="codesnippet">
&lt;body&gt;<br/><br />
&lt;h1&gt;A Level 1 Heading&lt;/h1&gt;<br/><br />
&lt;p&gt;Morbi non erat non ipsum pharetra tempus. Donec orci. Proin in ante. Pellentesque sit amet purus. Cras egestas diam sed ante. Etiam imperdiet urna sit amet risus. Donec ornare arcu id erat.&lt;/p&gt;<br/><br />
&lt;p&gt;Aliquam et nisl vel ligula consectetuer suscipit. Morbi euismod enim eget neque. Donec sagittis massa. Vestibulum quis augue sit amet ipsum laoreet pretium. Nulla facilisi. Duis tincidunt, felis et luctus placerat, ipsum libero vestibulum sem, vitae elementum wisi ipsum a metus.&lt;/p&gt;<br/><br />
&lt;h3&gt;A Level 3 Heading&lt;/h3&gt;<br/><br />
&lt;p&gt;Morbi non erat non ipsum pharetra tempus. Donec orci. Proin in ante. Pellentesque sit amet purus. Cras egestas diam sed ante. Etiam imperdiet urna sit amet risus. Donec ornare arcu id erat.&lt;/p&gt;<br/><br />
&lt;p&gt;Aliquam et nisl vel ligula consectetuer suscipit. Morbi euismod enim eget neque. Donec sagittis massa. Vestibulum quis augue sit amet ipsum laoreet pretium. Nulla facilisi. Duis tincidunt, felis et luctus placerat, ipsum libero vestibulum sem, vitae elementum wisi ipsum a metus.&lt;/p&gt;<br/><br />
&lt;/body&gt;
</div>
<p>View the result: <a href="/mfw-examples/post-4-4.html">Subheading</a></p>
<h2>Your homework</h2>
<p>Have some fun playing around with the 6 different levels of headings as well as adding more paragraphs. I know that our website still doesn&#8217;t look like much, but we&#8217;re getting there!</p>
<p>In the next post we&#8217;ll finally take a look at <a href="/adding-css-to-a-website">adding CSS to our web page</a>. See you then!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newbiewebsitedesign.com/filling-out-webpage-with-html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>First web page with HTML (MFW#3)</title>
		<link>http://www.newbiewebsitedesign.com/first-web-page-html-examples</link>
		<comments>http://www.newbiewebsitedesign.com/first-web-page-html-examples#comments</comments>
		<pubDate>Fri, 03 Jul 2009 02:13:18 +0000</pubDate>
		<dc:creator>David Radtke - Admin</dc:creator>
				<category><![CDATA[HTML / CSS]]></category>
		<category><![CDATA[My First Website]]></category>

		<guid isPermaLink="false">http://www.newbiewebsitedesign.com/?p=608</guid>
		<description><![CDATA[&#8220;My First Website&#8221; series navigation: first post &#8212; whole series

Now it&#8217;s time to make our first web page with HTML! This, of course, is going to be a very, very basic web page. But it&#8217;s important to understand exactly what the HTML of a basic web page looks like and how each HTML element and [...]]]></description>
			<content:encoded><![CDATA[<p><span class="seriesnavi">&#8220;My First Website&#8221; series navigation: <a href="/getting-started-my-first-website">first post</a> &#8212; <a href="/category/my-first-website">whole series</a></span><br />
<br/><br />
<img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/07/MFW-post-3.jpg" alt="My First Website 3" title="My First Website 3" width="118" height="139" class="leftphoto" />Now it&#8217;s time to make our first web page with HTML! This, of course, is going to be a very, very basic web page. But it&#8217;s important to understand exactly what the HTML of a basic web page looks like and how each HTML <strong>element</strong> and <strong>tag</strong> function.</p>
<p>So let&#8217;s dive right in, cut to the chase, get to the point, (and any other expressions that you know of that make good transitions in writing&#8230; <img src='http://www.newbiewebsitedesign.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
<h2>All HTML web pages MUST have these</h2>
<p>All web pages must contain certain &#8220;elements&#8221; or &#8220;items&#8221; that allow browsers to recognize them as being web pages. As you may have experienced, your browser can <strong>render</strong> (display on your screen) many kinds of files such as single images, .PDF files, audio-only pages, and a multitude of others. So, in order for your browser to know that your web page really IS a web page, it must contain the following:</p>
<p><span id="more-608"></span></p>
<ul>
<li>a <em>doctype</em></li>
<li>an &lt;html&gt; tag</li>
<li>a &lt;head&gt; tag</li>
<li>a &lt;title&gt; tag</li>
<li>a &lt;body&gt; tag</li>
</ul>
<p>Let&#8217;s take a closer look at each of these so we can finally feel intelligent about HTML website design!</p>
<h2>The doctype (Document Type Declaration)</h2>
<p>The <strong>Document Type Declaration</strong> or <strong>doctype</strong> for short, basically says <em>&#8220;Yo browser! This is a web page. It&#8217;s written in XHTML. Render it this way. Got it?&#8221;</em> Since there are many different types of files that a browser can render and just as many types of HTML and XHTML, the doctype is a must-have.</p>
<p>The position of the doctype is very important. It absolutely, positively must be located at the very top of your web page since your browser can&#8217;t do anything with your web page file until it knows exactly what it is.</p>
<p>Here is what the complex doctype looks like:</p>
<div class="codesnippet">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;<br />
 &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
</div>
<p>Don&#8217;t worry about trying to memorize this jumble of HTML code. Most professional website designers do what I do: just copy and paste it to the top of every web page.</p>
<h2>The &lt;html&gt; element</h2>
<p>Now that the browser has a clue about what kind of file our web page is, we need to give it some HTML! If you read the post on what is HTML (you can <a href="/what-is-html-and-xhtml">read it here</a>) then you know that all tags must have an opening and a closing. The opening tag says <em>&#8220;begin here&#8221;</em> and the closing tag says <em>&#8220;end here&#8221;</em>. Following is the &lt;html&gt; that you need for your web page:</p>
<div class="codesnippet">
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
</div>
<p>Again, don&#8217;t worry about memorizing this, just copy and paste.</p>
<h2>The &lt;head&gt; element</h2>
<p>The <strong>head</strong> element is where you store information about your web page. Some information may include the web page&#8217;s title, a description of your web page (used by search engines), a keyword list (also used by search engines), a link to your <a href="/cascading-style-sheets-css">CSS file</a>, and others. For the time being, we will only concentrate on two of these: the <strong>title tag</strong> and the <strong>charaset meta element</strong>.</p>
<h2>The &lt;title&gt; element</h2>
<p>The title element tells the browser the name of your web page. This name appears in many places:</p>
<ul>
<li>At the top of the browser window</li>
<li>In the Windows Taskbar or the Mac Dock</li>
<li>In the Favorites or Bookmarks menu of your browser</li>
<li>In the search engine results page (the page you see when searching on Google, Yahoo, etc.) </li>
</ul>
<p>Because the title tag can give vital information about your web page, it&#8217;s important to make it more detailed than just &#8220;Home&#8221;. (More on proper title tag construction in future posts.)</p>
<h2>The charaset meta element</h2>
<p>There are actually many ways to display text on a computer, and each way has its own <strong>encoding</strong>. The <strong>meta element</strong> of <strong>charaset</strong> (which is short for <em>character set</em>) tells the browser to read your text as &#8220;UTF-8&#8243;. <strong>UTF-8</strong> is a globally recognized encoding for text that all browsers can read &mdash; perfect!</p>
<p>As a newbie to website design, it really isn&#8217;t important to fully understand text encoding. Just make sure to use the code listed below and all will be fine. Speaking of which, here is the complete head section of your web page:</p>
<div class="codesnippet">
&lt;head&gt;<br />
&lt;title&gt;My First Website&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;<br />
&lt;/head&gt;
</div>
<h2>Where it all happens: the &lt;body&gt; element</h2>
<p>This is it! In-between the &lt;body&gt;&lt;/body&gt; tags is where you put all of the actual content (text, images, and other goodies) that will be visible to your website&#8217;s visitors. Since this is our first example of a web page, let&#8217;s keep it simple by only using the <strong>paragraph</strong> tags: &lt;p&gt; &lt;/p&gt;</p>
<div class="codesnippet">
&lt;body&gt;<br />
&lt;p&gt;Here is some sample text that will appear in your browser.&lt;/p&gt;<br />
&lt;/body&gt;
</div>
<h2>One last thing</h2>
<p>I&#8217;d like to show you the whole HTML markup for this web page, but I can&#8217;t just yet. There is one last thing. We still have to put the closing &lt;/html&gt; tag at the bottom of the page!</p>
<div class="codesnippet">
&lt;/html&gt;
</div>
<h2>Putting it all together</h2>
<p>Now we&#8217;re done! Here is the complete markup for our very first (and very simple) web page:</p>
<div class="codesnippet">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;<br />
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;<br/><br />
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br/><br />
&lt;head&gt;<br />
&lt;title&gt;My First Website&lt;/title&gt;<br />
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=UTF-8&quot; /&gt;<br />
&lt;/head&gt;<br/><br />
&lt;body&gt;<br />
&lt;p&gt;Here is some sample text that will appear in your browser.&lt;/p&gt;<br />
&lt;/body&gt;<br/><br />
&lt;/html&gt;
</div>
<p><a href="/mfw-examples/post-3.html">View the actual web page</a></p>
<p>Note: after clicking on the above link, right-click on that web page and choose &#8220;View Source&#8221; to see the HTML markup. It&#8217;s the same as what we created above! </p>
<h2>Conclusion</h2>
<p>Yes, I do realize that this is by far the most basic web page in the world &mdash; no color, no images, no links, and pathetic text to read &mdash; but it is necessary to understand what makes up an HTML web page before moving into the really cool stuff.</p>
<p><a href="/filling-out-webpage-with-html">In the next installment</a> in the &#8220;My First Website&#8221; series, we&#8217;ll start playing around with the &lt;body&gt; element to add some headings and text.</p>
<p>Until next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newbiewebsitedesign.com/first-web-page-html-examples/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting your design toolbox ready (MFW#2)</title>
		<link>http://www.newbiewebsitedesign.com/getting-your-toolbox-ready-mfw2</link>
		<comments>http://www.newbiewebsitedesign.com/getting-your-toolbox-ready-mfw2#comments</comments>
		<pubDate>Tue, 23 Jun 2009 13:12:24 +0000</pubDate>
		<dc:creator>David Radtke - Admin</dc:creator>
				<category><![CDATA[My First Website]]></category>
		<category><![CDATA[Website Design Tools]]></category>

		<guid isPermaLink="false">http://www.newbiewebsitedesign.com/?p=405</guid>
		<description><![CDATA[&#8220;My First Website&#8221; series navigation: first post &#8212; whole series
Hopefully by now you have followed the instructions in part 1 and got your folders all set up and ready to go. Now it&#8217;s time to collect the software that you will need to build your very first website from scratch.
There are only two programs that [...]]]></description>
			<content:encoded><![CDATA[<p><span class="seriesnavi">&#8220;My First Website&#8221; series navigation: <a href="/getting-started-my-first-website">first post</a> &#8212; <a href="/category/my-first-website">whole series</a></span></p>
<p><a href="http://www.newbiewebsitedesign.com/getting-your-toolbox-ready-mfw2/tool-box-2" rel="attachment wp-att-1004"><img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/06/tool-box1.jpg" alt="The website designer&#039;s toolbox" title="The website designer&#039;s toolbox" width="118" height="139" class="leftphoto" /></a>Hopefully by now you have followed the instructions in <a href="/getting-started-my-first-website">part 1</a> and got your folders all set up and ready to go. Now it&#8217;s time to collect the software that you will need to build your very first website from scratch.</p>
<p>There are only two programs that you must have at the beginning. One of them you already have on your computer. In fact, you are probably using it right now to view this website (provided that you aren&#8217;t reading this using an RSS reader.) Unfortunately, that particular piece of software may be old and in disparate need of an update.</p>
<p>The second little software gem is what you will need to actually enter all of the HTML and CSS goodness that you are going to learn. But don&#8217;t worry, you already have this software on your computer, too (but you can get something even better on the Internet for free!)</p>
<p>Let&#8217;s get going&#8230;</p>
<p><span id="more-405"></span></p>
<h2>Bad browser &#8211; good browser</h2>
<p>I&#8217;m sure it&#8217;s obvious that a browser is needed to view the website you will be making. But <em>what browser</em> you use is of great importance. Now, I&#8217;m not going to get into a &#8220;Firefox is better than Internet Explorer&#8221; or &#8220;Safari is better than Firefox&#8221; sort of debate. The fact is all three are very good browsers. <strong>But you must update to the latest version of your favorite!</strong></p>
<p>If you are using Internet Explorer 6, then you will be in for some major headaches. Internet Explorer 6 (IE6) is old, outdated, and is only about 50% compatible with the latest web standards. If you doubt that last statement, then go to <a href="http://www.google.com">Google</a> or <a href="http://www.yahoo.com">Yahoo</a> and enter &#8220;IE 6 CSS bugs&#8221; (be prepared to stare in awe at how many results come up.)</p>
<p>Internet Explorer 7 is only about 75% compliant with current standards.</p>
<p>Your best bet if you are an IE fan is to get the latest version, Internet Explorer 8. It IS standards compliant &mdash; about 6 years late, but who am I to judge the world&#8217;s largest software maker? (<a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Grab it here</a>.)</p>
<p>Firefox is a great browser. It has Mac, Windows, or Linux operating system versions, a clear, clean interface, easy to use, and power features. But what most designers like the most is that the Mozilla foundation (who make Firefox) work quite hard to keep it up-to-date with the latest standards. (<a href="http://www.mozilla.com">Grab it here</a>.)</p>
<p>Apple&#8217;s Safari is also gem of a browser. It also comes in Mac and Windows flavors, has a bunch of goodies that the others don&#8217;t have as well as being up-to-date. (<a href="http://www.apple.com/safari/download/">Grab it here</a>.)</p>
<h2>Text editing software you already have</h2>
<p>Obviously if we are going to hand-code a website then we need a text editor. Here&#8217;s what you already have on your computer:</p>
<p><strong>Windows:</strong> <em>Notepad</em><br/>(Find it in here: Start Menu&mdash;All Programs&mdash;Accessories)</p>
<p><strong>Mac:</strong> <em>Text Edit</em><br/>(You&#8217;ll find it in your Applications folder)</p>
<p>Both will work just fine, but they lack the cool features of the free downloads that you can find on the Internet. Let&#8217;s look at those next.</p>
<h2>Free text editing software</h2>
<p>Now we&#8217;re getting somewhere! Here are two free programs that have a bunch of useful features that make hand-coding a website an even more pleasurable experience. Both have the ability to show more than one document at a time in the same window (perfect for switching between the future pages of your first website) as well as syntax coloring (the software automatically adds color to the HTML and CSS so it&#8217;s easier to see.) One is for Windows and one is for the Mac.</p>
<p><strong>Windows:</strong> <a href="http://www.flos-freeware.ch/notepad2.html">NotePad2</a><br />
<strong>Mac:</strong> <a href="http://www.barebones.com/products/TextWrangler/download.html">Text Wrangler</a></p>
<h2>What about graphic software?</h2>
<p>I know that most newbie website designers are anxious to start making really cool graphics for their websites. But for this series, I&#8217;m going to hold off introducing those techniques for as long as possible. Here are my reasons:</p>
<p><em>Reason #1:</em><br />
Too many newbies focus all of their attention on trying to make such graphics before they learn exactly when, where, and how to place them on a website.</p>
<p><em>Reason #2:</em><br />
With such a focus on making graphics, newbies fail to learn all of the really cool things you can do with HTML and CSS. What&#8217;s great about using HTML and CSS to accomplish these cool feats of websites magic is that because they are code-based, your web pages will load extremely fast.</p>
<p><em>Reason #3:</em><br />
The best graphic software is just too damn expensive. Photoshop costs about $700 and it&#8217;s cheaper (yet powerful) little brother, Photoshop Elements, is about $70. Sure, you could use cheaper software. But since Photoshop and Photoshop Elements are pretty much the standards, why settle for less?</p>
<h2>Your assignment</h2>
<p>Now that you know what you need to get your first website off the ground, go ahead and update your browser (and maybe even try a different one), download some free software, and have a little fun with them all.</p>
<p>In <a href="/first-web-page-html-examples">the next article in the series</a>, you&#8217;ll get your pizza-greased fingers around some actual HTML!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newbiewebsitedesign.com/getting-your-toolbox-ready-mfw2/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Getting Started &#8211; My First Website (MFW#1)</title>
		<link>http://www.newbiewebsitedesign.com/getting-started-my-first-website</link>
		<comments>http://www.newbiewebsitedesign.com/getting-started-my-first-website#comments</comments>
		<pubDate>Sun, 21 Jun 2009 06:20:40 +0000</pubDate>
		<dc:creator>David Radtke - Admin</dc:creator>
				<category><![CDATA[My First Website]]></category>

		<guid isPermaLink="false">http://www.newbiewebsitedesign.com/?p=279</guid>
		<description><![CDATA[I realize that in the previous post I sort of bad-mouthed WYSIWYG visual editors and atop my soapbox I preached the virtues of hand-coding websites.
Well, that&#8217;s all fine and dandy if you already know how to hand-code a website. But for those of you who have no idea what HTML is and think that CSS [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/06/first-logo.jpg" alt="My First Website" title="My First Website" width="118" height="139" class="leftphoto" />I realize that in the <a href="/wysiwyg-or-not-to-wysiwyg">previous post</a> I sort of bad-mouthed WYSIWYG visual editors and atop my soapbox I preached the virtues of hand-coding websites.</p>
<p>Well, that&#8217;s all fine and dandy if you already know how to hand-code a website. But for those of you who have no idea what <strong><a href="/what-is-html-and-xhtml">HTML</a></strong> is and think that <strong><a href="/cascading-style-sheets-css">CSS</a></strong> is just another version of the popular TV show <em>Crime Scene Investigation</em>, hand-coding a website can seem as simple as learning Chinese.</p>
<p>Newbie Website Design wouldn&#8217;t be much of a blog if I never actually helped newbies. Since I aim to please, I&#8217;d like to introduce to you a new series of articles dedicated to teaching you how to build a website from scratch. You&#8217;ll learn everything you need to master the very important fundamentals and transform good techniques into solid habits.</p>
<p>Without further ado, let&#8217;s get your folder system prepared for the good stuff to follow:<br />
<span id="more-279"></span></p>
<h2>Getting organized</h2>
<p>I know that this might not be as glamorous as getting your hands dirty entering HTML into your text editor, but it is very important to get your folders created and organized first. The first folder you should make is a master folder where you can keep all of your Newbie Website Design projects (and others as well). You can use upper-case letters or lower-case letters or any combination thereof for these initial folders. Later on, the case of newer folders will be important (and I&#8217;ll let you know when and where.)</p>
<p>Create a folder called &#8220;Design Projects&#8221;. You can place it anywhere you want on your hard drive, but for simplicity&#8217;s sake you can put it on your desktop.<br />
<img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/06/folder1.jpg" alt="folder" title="folder" width="150" height="104" class="alignnone size-full wp-image-305" /><br/><br/></p>
<p>Inside that folder create another folder called &#8220;My First Website&#8221;. This will be the main folder that holds everything you need for this project.<br />
<img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/06/design1.jpg" alt="design" title="design" width="312" height="225" class="alignnone size-full wp-image-304" /><br/><br/></p>
<p>Next, open up the &#8220;My First Website&#8221; folder and add two more folders: &#8220;production&#8221; and &#8220;website&#8221;. Inside the &#8220;production&#8221; folder we will put all mock-ups we create in Photoshop or some other graphic program. Inside the &#8220;website&#8221; folder we will put all of those wonderful hand-coded website files. (Note: during most of this series we won&#8217;t be making any graphics. But near the end of the series we will!)<br />
<img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/06/first1.jpg" alt="first" title="first" width="450" height="220" class="alignnone size-full wp-image-303" /><br/><br/></p>
<p>Finally, inside the &#8220;website&#8221; folder add one final folder, an &#8220;images&#8221; folder. When we get to making and adding images and graphics to our website those files will go in here.<br />
<img src="http://www.newbiewebsitedesign.com/wp-content/uploads/2009/06/images1.jpg" alt="images" title="images" width="315" height="222" class="alignnone size-full wp-image-302" /><br />
<br/><br/></p>
<p>Here&#8217;s how the hierarchy should flow:<br />
<strong>Design Projects &#8211; My First Website &#8211; production</strong> and <strong>website &#8211; images</strong> (inside the <strong>website</strong> folder only)</p>
<p>Like I said before, this initial stage is as exciting as watching snails race on dry pavement. But unlike cheering on competing invertebrates, this first step really is important.</p>
<p>In the <a href="/getting-your-toolbox-ready-mfw2">next post in the series</a> we&#8217;ll talk about what kind of software you need to get your first website off the ground. The good news is that you already have everything you need on your computer!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.newbiewebsitedesign.com/getting-started-my-first-website/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
