<?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>NPSites.com &#187; Lessons</title>
	<atom:link href="http://www.npsites.com/category/lessons/feed" rel="self" type="application/rss+xml" />
	<link>http://www.npsites.com</link>
	<description>NPSites.com</description>
	<lastBuildDate>Wed, 25 Jan 2012 00:38:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Lesson 1 &#8211; What Is HTML</title>
		<link>http://www.npsites.com/5/lesson-1-what-is-html.html</link>
		<comments>http://www.npsites.com/5/lesson-1-what-is-html.html#comments</comments>
		<pubDate>Sat, 20 Dec 2008 20:57:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://htmlguide.npsites.com/?p=5</guid>
		<description><![CDATA[Lesson 1 - What Is HTML HTML means HyperText Markup Language it is the code that Webpages are made out of. In our series of lessons we will cover how to build a webpage by putting together a number of HTML elements to control layout, formatting and to add items like images and multimedia. Elements are [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Lesson 1 - What Is HTML</strong></p>
<p>HTML means HyperText Markup Language it is the code that Webpages are made out of.</p>
<p>In our series of lessons we will cover how to build a webpage by putting together a number of HTML elements to control layout, formatting and to add items like images and multimedia.</p>
<p>Elements are objects that make up a page.<br />
Many elements have a &lt;starting&gt; tag and an &lt;/ending&gt; tag but some like the Image Tag &lt;img&gt; only use a single tag. You can think of elements as containers that you put things in. They store items just like you would in a refrigerator.</p>
<p>Think of your Refrigerator as the WebPage and inside you have many containers or Elements to store items.</p>
<p>Within each element (container) there are ways to modify the attributes of the items inside.</p>
<p>&lt;font color=&#8221;red&#8221;&gt;<span style="color: #ff0000;">This is a red font</span>&lt;/font&gt;</p>
<p>As you learn how to use more elements on your pages you will also find ways to use them together to make a nice presentation for your visitor.</p>
<p>Although there are many more aspects to building a good website that are outside of basic HTML this is the foundation for every website. It does not matter how big the site is or what super spectacular features they may have when the page is presented on your home computer it is HTML that renders the pages in your web browser.</p>
<p>Now yes there are a few addons that your browser can use like javascript or flash but even those elements rely on some html to get their work done.</p>
<p>So, since this is the first lesson we won&#8217;t get caught up with learning complex things but it is a good time to think about how you should learn.</p>
<p>First you should always remember that no site is ever perfect. You can spend hours designing your layouts but if that takes away from your writing content then whats the use. In other words you should try to keep your sites as simple as you can while still adding all the feature that you want.</p>
<p>Don&#8217;t worry about being on the cutting edge of web design as long as your site works for you and your visitors. Things will always change and every new version of some browser will add something or end up breaking your pages. Don&#8217;t try to please everyone. Read your website log statistics and you will see that most of your visitors will use 1 or 2 browsers so install them on your home computer and view your pages before you make them live.</p>
<p>And here is a clue for the most part unless your site is very specific your visitors will be using either Internet Explorer or Firefox. And within those two browsers you will find most people will be using the newest version after it has been released for about 3 months. However some people never seem to upgrade. After IE and FF you will find a number of visitors probably less then 25% that are split between the 50 other browsers most you have never heard of before. Don&#8217;t get caught up in pleasing them all. If you write simple clean code then your site should work for everyone and if not then those people have problems with many sites not just yours.</p>
<p><strong>Take advantage of View Source in your browser.</strong><br />
This is probably the best way you can learn at first and even later down the line when you want to do something special like implementing a new menu that you like on someone else&#8217;s site. Now we are not saying that you should steal sites that is a definite (do not do) but it is ok to get ideas from other sites and implement them in your own designs. So, admire, learn from and implement but never make a direct copy of any live site.</p>
<p><strong>Resources</strong><br />
Hopefully this site will be a good resource for learning both basic and advanced skills but you should also think about design.</p>
<p>Free Template Sites<br />
The best places for new design ideas, other then every page you visit, is a free template website. Many developers that build sites professionally will also include free versions of their sites for people to download. They do this for a couple reasons: Advertising of their style so they can build pay sites and also just for fun.</p>
<p><strong>Free Code Sites</strong><br />
Another resource you will need to find is a place to find code samples. Although we will start off with HTML for building your pages you should also learn about a few programming languages like Perl, Java, PHP and other products that work on your server or software like Flash, Java and Javascript that work in your browser.</p>
<p>Free code is always your first and best resource but you may want to invest in specific software packages or in some situations hire someone that will build your website&#8217;s code while you handle the layout. The one thing you have to remember about paid software is that you get what you pay for and in this meaning its not about the quality of the code but more the features you can add. If you go with popular open source software you  are likely to find community support and people that write free add-ons that you may need.</p>
<p>So, unless you are doing something really special and specific to your company that no one else in the world needs to do try to stick with open source software or at least paid packages that have a large community following.</p>
<p>Thats basically it &#8230; in other lessons we will cover all of the different HTML Elements and try to put them to good use. We will also go over some software packages you should use and in our other lessons we will cover setting up a server, programing languages, website package software and everything else we can think of to help you design the website you always wanted.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/5/lesson-1-what-is-html.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lesson 2 &#8211; Manditory HTML Tags For Every Page</title>
		<link>http://www.npsites.com/13/lesson-2-manditory-html-tags-for-every-page.html</link>
		<comments>http://www.npsites.com/13/lesson-2-manditory-html-tags-for-every-page.html#comments</comments>
		<pubDate>Sun, 21 Dec 2008 01:07:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://htmlguide.npsites.com/?p=13</guid>
		<description><![CDATA[There are a few tags that every Webpage needs to let your browser know that it is a webpage. &#60;!DOCTYPE&#62; Tells the browser what version of HTML it should expect &#60;html&#62; Starts the page &#60;head&#62; Includes non displayed information such as the title and links to other files &#60;title&#62; Is displayed in the browser title [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few tags that every Webpage needs to let your browser know that it is a webpage.</p>
<p><strong>&lt;!DOCTYPE&gt;</strong> Tells the browser what version of HTML it should expect</p>
<p><strong>&lt;html&gt;</strong> Starts the page</p>
<p><strong>&lt;head&gt;</strong> Includes non displayed information such as the title and links to other files</p>
<p><strong>&lt;title&gt;</strong> Is displayed in the browser title bar</p>
<p><strong>&lt;body&gt;</strong> This is where all of the content of the page is placed</p>
<p>The format for these tags is as follows</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
<span style="color: #ff0000;">&lt;html&gt;</span><br />
<span style="color: #008000;">&lt;head&gt;<br />
</span>&lt;link rel=&#8217;stylesheet&#8217; href=&#8217;http://www.oursite.com/sitestyles.css&#8217; type=&#8217;text/css&#8217; media=&#8217;all&#8217; /&gt;<br />
&lt;title&gt;This is the page title&lt;/title&gt;<br />
<span style="color: #008000;">&lt;/head&gt;</span><br />
<span style="color: #0000ff;">&lt;body&gt;</span><br />
Page Content In Here<br />
<span style="color: #0000ff;">&lt;/body&gt;<br />
</span><span style="color: #ff0000;">&lt;/html&gt;</span></p>
<p>In the example above you can see that all of the element tags with the exception of LINK and DOCTYPE have a beginning and a ending tag. However you can also see that these two tags use a trailing slash / on the closing &gt; to indicate that the tag element is closed. Like this /&gt;</p>
<p>A Link Tag is not one of the mandatory Tags but it is included in the example to show its placement.</p>
<p>To start any page you should include the DOCTYPE In our case the doctype for our page is (XHTML 1.0 Transitional) meaning the browser should understand that it will be receiving html that is compliant with the XHTML 1.0 Standard.</p>
<p>Immediately after the Doctype we have the HTML Tag. This tag will encapsulate the whole page with a start and end tag of &lt;html&gt;&lt;/html&gt; It tells the browser to begin reading in the page here and end there.</p>
<p>At the top of the page right after the HTML Element we add a &lt;head&gt; area that can contain information about the page such as the title that will show in the viewers browser title bar and other information such as links to files that will add support for the up coming HTML page.</p>
<p>Items that may be included in a header area include:<br />
CSS formatting information or Links to an external file<br />
Javascript commands or links to an external file.</p>
<p>There is no difference between adding css or javascript directly in a file or linking to it other then the fact that if that same information is used on many pages it can be easier to link to the file that way you only have to update one file instead of each page of your site.</p>
<p>The &lt;body&gt; Element Tag is located after the HEAD element tag closes.</p>
<p>The BODY area is where you will place all of the HTML Elements needed to display the content of your page. You will put all of your Text, Links to Images, Multimedia and basically anything you want your visitor to see in this area.</p>
<p>At the bottom of the page you will see the BODY tag Closes then the HTML Tag Closes to tell the browser the page has been downloaded completely.</p>
<hr /><strong>Lets try a Test Page.</strong></p>
<p>Make an empty folder to store your files and start a new text file named test.txt and open it in Notepad.</p>
<p>In the file put the following lines of HTML</p>
<p>&lt;!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; &#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;&gt;<br />
&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;link rel=&#8217;stylesheet&#8217; href=&#8217;http://www.mysite.com/sitestyles.css&#8217; type=&#8217;text/css&#8217; media=&#8217;all&#8217; /&gt;<br />
&lt;title&gt;This is my first webpage&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
Hello, This is my first webpage. &lt;br /&gt; I hope you like it.<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<hr />Now save the file and rename it test.html and open it in your browser by draging it into an open window.</p>
<p>You should see something like this:</p>
<div style="border: 1px solid #000000; margin: 25px; padding: 15px; width: 300px; height: 250px;">Hello, This is my first webpage.<br />
I hope you like it.</div>
<p>As you may have noticed we added another tag on your page. The &lt;br /&gt; or Line Break Tag.</p>
<p>This is an important tag to remember because anytime you need to go to the next line or force an empty line between text or other items you will need to use a BR tag.</p>
<p>Empty lines and repeated spaces in HTML files are ignored. You could add ten pages of spaces and returns in your html file and only the first would be recognized and used.</p>
<p>You should also take note that all of our HTML Element Tags are in LOWER CASE  <span style="color: #008000;">&lt;br /&gt; is correct </span><span style="color: #ff0000;">&lt;BR /&gt; is not correct</span>. This is part of the new html standards and is important because some advanced html may see tags differently if they are in upper or lower case or have mixed case words. However for now if you make a mistake on the case of the tag eLeMenT your browser should still render the page correctly.</p>
<p>In lesson 3 we will introduce different content to our pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/13/lesson-2-manditory-html-tags-for-every-page.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lesson 3 &#8211; Adding And Styling Text In HTML</title>
		<link>http://www.npsites.com/18/lesson-3-adding-and-styling-text-in-html.html</link>
		<comments>http://www.npsites.com/18/lesson-3-adding-and-styling-text-in-html.html#comments</comments>
		<pubDate>Tue, 03 Feb 2009 18:46:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://htmlguide.npsites.com/?p=18</guid>
		<description><![CDATA[Good Typography is important for every webpage. When your visitor reads your site they want the text to be presented in a way that is easy to read and is highlighted or styled to bring emphasis and guide the reader. In lesson 2 we saw that there are basic mandatory tags that must be included in every [...]]]></description>
			<content:encoded><![CDATA[<p>Good <span style="color: #ff0000;font-size:18pt">T</span><strong><span style="color: #0000ff;font-size:14pt">y</span></strong><span style="text-decoration: underline;"><span style="color: #ff00ff;font-size:10pt">p</span></span><span style="color: #008000;font-size:15pt">o</span><strong><span style="color: #ffff00;">g</span></strong><em><span style="color: #800080;font-size:20pt">r</span></em><span style="color: #33cccc;font-size:14ptfont-size:11pt">a</span><span style="color: #ff0000;font-size:15pt">p</span><em><span style="color: #c0c0c0;font-size:18pt">h</span></em><span style="color: #ff9900;font-size:14pt">y</span> is important for every webpage.</p>
<p>When your visitor reads your site they want the text to be presented in a way that is easy to read and is highlighted or styled to bring emphasis and guide the reader.</p>
<p>In lesson 2 we saw that there are basic mandatory tags that must be included in every webpage. As we continue learning we will start off with a HTML file template that contains those basic tags.</p>
<p>We know that within the &lt;body&gt; tag is where we will place all of our text and links and image references but before we get started with laying out a fancy design this lesson will cover many of the ways that you can use basic HTML to be creative. You should also remember that we are learning basic HTML in these beginning lessons and in later ones we will cover the use of CSS style sheets that can perform many of the same tasks and many more advanced formatting commands.</p>
<p>Ok lets start with adding a line of text to our template file within the Body Area.</p>
<p>Code view is on the left and what you see in the browser is on the right.</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top">This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</td>
</tr>
</tbody>
</table>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p><strong>Now lets add a Headline for our Page<br />
</strong>As you can see the &lt;H1&gt; header tag makes the font bigger, bold and it also forces a line break between the Headline and the paragraph of text we had already written.</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;This is Lesson 3&lt;/h1&gt;This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top">
<h1>This is Lesson 3</h1>
<p>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</td>
</tr>
</tbody>
</table>
<p>Headline Tags &lt;h1&gt; have a starting tag and an ending tag &lt;h1&gt;stuff&lt;/h1&gt; You must always close your tags or the rest of the page will pickup the formatting until the tag is closed or you reach the end of the page.</p>
<p>Headline Tags come in sizes 1 through 6 and the strange thing is the lower the number the larger the Headline. To use a different size you must open and close your text with the number included in the closing tag. Here are some examples:</p>
<p>&lt;h1&gt;<strong style="font-size:24px">HEADLINE</strong>&lt;/h1&gt;<br />
&lt;h2&gt;<strong style="font-size:18px">HEADLINE</strong>&lt;/h2&gt;<br />
&lt;h4&gt;<strong style="font-size:14px">HEADLINE</strong>&lt;/h4&gt;<br />
&lt;h6&gt;<strong style="font-size:12px">HEADLINE</strong>&lt;/h6&gt;</p>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p>But what if we just want to make something within our paragraph <strong>Bold</strong> and we don&#8217;t want a line break that a &lt;H1&gt; tag will force? Then we can use the &lt;strong&gt; or &lt;b&gt; bold tags</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;&lt;h1&gt;This is Lesson 3&lt;/h1&gt;</p>
<p>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.<br />
&lt;br /&gt;&lt;br /&gt;</p>
<p>This word is strong&gt;Bold&lt;/strong&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top">
<h1>This is Lesson 3</h1>
<p>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</p>
<p>This word is <strong>Bold</strong></td>
</tr>
</tbody>
</table>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p>To make a Word Italic we can use the &lt;em&gt; tag</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;&lt;h1&gt;This is Lesson 3&lt;/h1&gt;</p>
<p>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.<br />
&lt;br /&gt;&lt;br /&gt;</p>
<p>This word is &lt;strong&gt;Bold&lt;/strong&gt;</p>
<p>&lt;em&gt;This line is Italic&lt;/em&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top">
<h1>This is Lesson 3</h1>
<p>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</p>
<p>This word is <strong>Bold</strong></p>
<p><em>This line is Italic</em></td>
</tr>
</tbody>
</table>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p>To underline a word we can use the &lt;u&gt; tag</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;&lt;h1&gt;This is Lesson 3&lt;/h1&gt;</p>
<p>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.<br />
&lt;br /&gt;&lt;br /&gt;</p>
<p>This word is strong&gt;Bold&lt;/strong&gt;</p>
<p>&lt;em&gt;This line is Italic&lt;/em&gt;</p>
<p>This word is &lt;u&gt;Underlined&lt;/u&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top">
<h1>This is Lesson 3</h1>
<p>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</p>
<p>This word is <strong>Bold</strong></p>
<p><em>This line is Italic</em></p>
<p>This word is <span style="text-decoration: underline;">Underlined</span></td>
</tr>
</tbody>
</table>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p>To change font face, color or size of a word we can use the &lt;font&gt; tag</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;&lt;h1&gt;This is Lesson 3&lt;/h1&gt;</p>
<p>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.<br />
&lt;br /&gt;&lt;br /&gt;</p>
<p>This word is strong&gt;Bold&lt;/strong&gt;</p>
<p>&lt;em&gt;This line is Italic&lt;/em&gt;</p>
<p>This word is &lt;u&gt;Underlined&lt;/u&gt;</p>
<p>This word is &lt;font color=&#8221;ffff00&#8243;&gt;blue&lt;/font&gt;<br />
This word is &lt;font face=&#8221;times&#8221;&gt;Times&lt;/font&gt;<br />
This word is &lt;font size=&#8221;6&#8243;&gt;Times&lt;/font&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top">
<h1>This is Lesson 3</h1>
<p>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</p>
<p>This word is <strong>Bold</strong></p>
<p><em>This line is Italic</em></p>
<p>This word is <span style="text-decoration: underline;">Underlined</span></p>
<p>This word is <span style="color:#0000ff;">blue</span><br />
This word is <span style="font-family:times;">Times</span><br />
This word is <span style="font-size:18pt;">FontSize6</span></td>
</tr>
</tbody>
</table>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<h2>Review</h2>
<p>Lets cover some of the ways that you can add styling to your text in HTML.</p>
<p>&lt;H&gt; headline tags they are used for headlines that will be separate from the other text and include a forced line break after the headline tag.</p>
<p>&lt;strong&gt;  tags make your fonts bold</p>
<p>&lt;em&gt; tags make your words italic</p>
<p>&lt;font&gt; tags can set color font-family and size</p>
<p><span style="color: #ff0000;"><strong>NOTE</strong></span><br />
It is important to note that the font tag has been deprecated in favor of CSS Styles even so you can use the font tag to insert your local styles or replace it with a &lt;span&gt; tag.</p>
<p>In CSS which we will learn later a &lt;span&gt; tag can be used to style fonts and would look something like this.</p>
<p>&lt;span style=&#8221;font-family:times;font-size:16pt;color:#0000ff;text-decoration:underline&#8221;&gt;this line of text is blue 16 point high underline in Times Font &lt;/span&gt;</p>
<p><span style="font-family: times; font-size: 16pt; color: #0000ff; text-decoration: underline;">this line of text is blue 16 point high underline in Times Font </span></p>
<p><span style="font-family: times; font-size: 16pt; color: #0000ff; text-decoration: underline;"><br />
</span></p>
<p><strong>We will add to our understanding of web design in stages.</strong></p>
<p>More complex tasks will come in manipulation of divs for layout and menu systems but it is important to understand the use of tags and elements before you begin styling them.</p>
<p>Complex tasks are nothing more then a series of easy ones.</p>
<p>For instance baking a cake when you never have before can seem to be complex but each step is pretty simple.</p>
<p>Measure the flour and sugar and water, add your baking powder and mix it up, set the oven to 350F, grease the pan and cook it for 30 minutes and in the end you endup with a cake.</p>
<p>Websites are the same&#8230; you learn how to style your fonts (just like measuring flour) and then you will understand that part when you begin making a menu system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/18/lesson-3-adding-and-styling-text-in-html.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lesson 4 &#8211; Adding And Using Images In HTML</title>
		<link>http://www.npsites.com/116/lesson-4-adding-and-using-images-in-html.html</link>
		<comments>http://www.npsites.com/116/lesson-4-adding-and-using-images-in-html.html#comments</comments>
		<pubDate>Tue, 03 Feb 2009 21:38:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.npsites.com/?p=116</guid>
		<description><![CDATA[Although there are a number of ways to make HTML look nice with divs tables borders backgrounds and other styling images do play a big part in how your site looks not to mention that adding images within your content is an important way to convey ideas. So, what types of images can you use? [...]]]></description>
			<content:encoded><![CDATA[<p>Although there are a number of ways to make HTML look nice with divs tables borders backgrounds and other styling images do play a big part in how your site looks not to mention that adding images within your content is an important way to convey ideas.</p>
<p><strong>So, what types of images can you use?</strong></p>
<p>Web browsers can understand a variety of media types but for images there are 3 basic file types that you can place or link to in your pages.</p>
<p><strong>Jpeg</strong> &#8211; This file type is a compressed image able to display 16 million colors in a lossy or dithered image. It is best used for photographic images but it can be used anyplace within your design where transparency isn&#8217;t necessary.</p>
<p><strong>GIF</strong> &#8211; This is one of the very first image file types it has a lower number of colors only 256 that it can use to represent your images so it is not so great for photographs but it is good for graphs, text or images that need transparent areas. It is often used for logos, buttons or corners where you want the background behind the image to show through making round or complex shapes. You can also use Gif Files to create animations.</p>
<p><strong>PNG</strong> &#8211; This is a relatively new image file type and combines the two properties of GIF and Jpeg image files. PNG has a large number of colors so it is good for photographs. It is also good for images that require transparent regions. In addition to transparent regions that are totally see through PNG can also have levels of transparency. You can overlap a bottom yellow png file with a 50% transparent blue file and endup with green. About 60% of the browsers out there support the full properties of PNG files and this includes most browsers of the latest version however many users still use old browsers because they have not or can not update their browser due to the operating system they use on their computer. Yes people still use Windows 95 but also many other OS&#8217;s.</p>
<p>ICO &#8211; This is a format that is used primarily for making icons for your desktop applications. When you see a Icon on your desktop that you use to launch your word processor that is an ICO file &#8230; The ICO format is also used in websites for the icon that shows up in your browser location bar and when you drag that url shortcut to your desktop. There are websites that will convert your jpeg or gif file to an ICO file and it is best that you use one of these services when you need to generate your favicon.ico file.</p>
<p><strong>Note</strong> because of browser incompatibility it is important to double check your site in a variety of browsers and versions of browsers based on your site&#8217;s visitor stats. View your weblogs and check what your visitors are using then visit a site like <span style="color: #0000ff;">www.browsershots.com</span> and get a preview of what your visitors are seeing. However don&#8217;t remake your site into a text only site just because you get 10 visitors a month browsing your site with a WebTv browser.</p>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p><strong>Adding Images to your Content</strong><br />
When you want to add an image within the text of your main content you use the &lt;img&gt; Tag.</p>
<p>This is one of only a few html tags that have no closing tag.</p>
<p>To add an image find the place within your HTML that you want to insert the file.</p>
<p>Then for an image on your local server in your /images/ directory<br />
add &lt;img src=&#8221;/images/flowers.jpg&#8221;&gt;</p>
<p>For an image that is hosted on another server use http://<br />
add &lt;img src=&#8221;http://www.website.com/images/flowers.jpg&#8221;&gt;</p>
<p>As you can see in this example we are inserting a &lt;img&gt; tag at the beginning of our text.</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;&lt;img src=&#8221;/base/images/cash.jpg&#8221;&gt;This is a line of text that we are adding to our html file.  As you can see  it is pretty plain.</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top"><img class="alignnone" src="/base/images/cash.jpg" alt="" width="50" height="38" />This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</td>
</tr>
</tbody>
</table>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p>Here we will apply an alignment to force the image to the right side of the text &lt;img <span style="color: #0000ff;">align=&#8221;right&#8221;</span>&gt;. Alignment can also be placed in your CSS Styles either on the image tag or on a container surrounding it.</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;&lt;img src=&#8221;/base/images/cash.jpg&#8221; align=&#8221;right&#8221;&gt;This is a line of text that we are adding to our html file.  As you can see  it is pretty plain.</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top"><img class="alignright" src="/base/images/cash.jpg" alt="" width="50" height="38" />This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</td>
</tr>
</tbody>
</table>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p>Here we will wrap the &lt;img&gt; tag with an anchor or hyperlink so if you click on the money you are brought to another page. &lt;a href=&#8221;http://www.npsites.com&#8221;&gt;&lt;img src=&#8221;/base/images/cash.jpg&#8221;&gt;&lt;/a&gt;</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;&lt;a href=&#8221;http://www.npsites.com&#8221;&gt;&lt;img src=&#8221;/base/images/cash.jpg&#8221;&gt;&lt;/a&gt;This is a line of text that we are adding to our html file.  As you can see  it is pretty plain.</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top"><a href="http://www.npsites.com" target="_blank"><img class="alignnone" src="/base/images/cash.jpg" alt="" width="50" height="38" /></a>This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</td>
</tr>
</tbody>
</table>
<p>Most browsers today will ignore the border around images if they are used for a button Hyperlink but you can use the border property in any hyperlinked image to insure that you do not get a blue border around your linked images.</p>
<p>&lt;a href=&#8221;place&#8221;&gt;&lt;img src=&#8221;imageurl&#8221; <span style="color: #0000ff;">border=&#8221;0&#8243;</span>&gt;&lt;/a&gt;</p>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p>In this example we will set the background for our page to be an image.</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body background=&#8221;/base/images/blkgreen-10x60px.jpg&#8221;&gt;&lt;img src=&#8221;/base/images/cash.jpg&#8221;&gt;This is a line of text that we are adding to our html file.  As you can see it is pretty plain.</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td valign="top" background="/base/images/blkgreen-10x60px.jpg"><img class="alignnone" src="/base/images/cash.jpg" alt="" width="50" height="38" />This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</td>
</tr>
</tbody>
</table>
<p><span style="color: #ffffff;">.</span></p>
<p>To fix the background image and make it only repeat in the x direction and not down the page in the y direction we need to use CSS Styles.<br />
&lt;body Style=&#8221;background-image: url(/base/images/blkgreen-10x60px.jpg);<span style="color: #0000ff;">background-repeat: repeat-x</span>;&#8221;&gt;</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 3&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body  Style=&#8221;background-image: url(/base/images/blkgreen-10x60px.jpg);background-repeat: repeat-x;&#8221;&gt;&lt;img src=&#8221;/base/images/cash.jpg&#8221;&gt;This is a line of text that we are adding to our html file.  As you can see it is pretty plain.&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td style="background-image: url(/base/images/blkgreen-10x60px.jpg);background-repeat: repeat-x;" valign="top"><img class="alignnone" src="/base/images/cash.jpg" alt="" width="50" height="38" />This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</td>
</tr>
</tbody>
</table>
<p>To complete the green color down the page we can apply a background color.<br />
&lt;body<span style="color: #0000ff;"> bgcolor=&#8221;#98CF40&#8243;</span> Style=&#8221;background-image: url(/base/images/blkgreen-10x60px.jpg);background-repeat: repeat-x;&#8221;&gt;</p>
<p>If the visitors browser isn&#8217;t able to use CSS styles they will simply see a solid green background.</p>
<p>Here you can see we also changed the text to white and replaced the cash jpg image with a transparent Gif image so you can see the background through the white area.</p>
<table border="1" cellspacing="0" width="400">
<tbody>
<tr>
<td width="200" valign="top">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt;Lesson 4&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body  bgcolor=&#8221;#98CF40&#8243; Style=&#8221;background-image: url(/base/images/blkgreen-10x60px.jpg);background-repeat: repeat-x;&#8221;&gt;&lt;img src=&#8221;/base/images/<span style="color: #0000ff;">cash.gif</span>&#8220;&gt;&lt;font color=&#8221;#ffffff&#8221;&gt;This is a line of text that we are adding to our html file.  As you can see it is pretty plain.&lt;/font&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</td>
<td style="background-color:#98CF40;background-image: url(/base/images/blkgreen-10x60px.jpg);background-repeat: repeat-x;" valign="top"><img class="alignright" src="/base/images/cash.gif" alt="" /><span style="color: #ffffff;">This is a line of text that we are adding to our html file. As you can see  it is pretty plain.</span></td>
</tr>
</tbody>
</table>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p>There are a variety of other uses and methods to include images on your pages menus and in your content. As you can see we are starting to use more CSS Styles to add more features. Some things you just can&#8217;t do in basic HTML unless you are willing to go through a lot of work.</p>
<p>You should now understand how to add images into your content and apply images as backgrounds for your pages.</p>
<p>The same methods of adding images as backgrounds can be applied to Tables Divs and other containers.</p>
<p>You can use images as links to other pages within your content or as menus or buttons for forms such as a search form.</p>
<p>There are a variety of uses and the limits are endless if you are willing to understand the basic concepts and apply them creatively.</p>
<p><span style="color: #ffffff;">.</span></p>
<hr /><span style="color: #ffffff;">.</span></p>
<p><strong>Because we talked about it earlier and it is so simple to do.</strong></p>
<p><strong>Linking to a Favorites ICO file</strong><br />
Favorites icons are linked to in the &lt;head&gt;&lt;/head&gt; area at the top of your html file</p>
<p>&lt;link rel=&#8221;Shortcut Icon&#8221; href=&#8221;/images/favicon.ico&#8221; type=&#8221;image/x-icon&#8221; /&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/116/lesson-4-adding-and-using-images-in-html.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Lesson 1 &#8211; Introduction To CSS For Webdesign</title>
		<link>http://www.npsites.com/225/css-lesson-1-introduction-to-css-for-webdesign.html</link>
		<comments>http://www.npsites.com/225/css-lesson-1-introduction-to-css-for-webdesign.html#comments</comments>
		<pubDate>Sun, 12 Apr 2009 22:35:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.npsites.com/?p=225</guid>
		<description><![CDATA[Introduction to CSS CSS is a set of page markup definitions that can be applied to HTML documents to define how pages are rendered. This addition to the HTML tag set can be applied by Authors internally in each HTML document or they can reside in a separate server side file that is referenced and [...]]]></description>
			<content:encoded><![CDATA[<h2>Introduction to CSS</h2>
<p>CSS is a set of page markup definitions that can be applied to  HTML documents to define how pages are rendered.  This addition to the HTML tag set can be applied by Authors  internally in each HTML document or they can reside in a separate  server side file that is referenced and applied to the document.  The enduser may also define their own Style Sheet that resides on  their local system to be applied to all of the documents that  they browse.</p>
<p>So, what are the advantages of CSS and HTML over plain HTML?  For web site managers the use of an external file containing style  sheet definitions means that they can control the formatting  of their pages across their site without the need to edit each  individual file. This is also very important when pages are  generated by databases and CGI scripts.</p>
<p>The use of CSS commands inside a document can provide authors  extended formatting features to allow specific information to be  presented to the viewer in an exacting method.</p>
<p>For the enduser the use of a client side Style Sheet to modify  how all documents are displayed can offer the ability to view  information with a consistent style. For users with disabilities  CSS can offer readable Font sizes, colors and face choice and in the  future it will also add formatting that will instruct how pages  are converted to synthesized speech.</p>
<p><strong>What are the drawbacks of CSS?</strong><br />
Browser compatibility must be the most common difficulty. Anyone that has had problems trying to keep their  JavaScript compatible across browsers and even within different versions of the same manufacture&#8217;s browser knows that making working  documents that are consistent often means not using such features. If a Browser is incapable of implementing CSS it should be able to ignore the CSS style selectors and revert to standard HTML. However if you are creating documents for a closed audience,  as would be the case in a Corporate Intranet environment, the  probability of successful implementation is much greater.</p>
<p>Another factor that Webmasters should be aware of concerning the use of  an external file to define CSS Declarations is that the Enduser will  have to access 2 files to view their pages. This possible initial lag  should be weighted against the overall load that would be placed on the  server if every HTML file required additional data to be added to define the CSS information internally.  Analysis of Initial lag vs.  overall server load would be dependent upon the amount of CSS use  across the site.</p>
<p>When designing a large full featured website with many different offerings such as a CMS / Blog, Shopping Cart and User Forms you will want to keep continuity throughout. This is possible by referencing standard styles in a main style sheet file and importing it into all of your different applications. Use a second style sheet to extend and meet the the requirements for specific software applications.</p>
<h3>CSS Basics</h3>
<p>The application of Styles through CSS is made possible by adding  additional formatting controls to the current HTML TAG Elements. When the author wants to take advantage of the additional formatting a Style Selector is made and applied to the HTML element.</p>
<p><strong>Example:</strong></p>
<pre>&lt;style type="text/css" &gt;
P { color:#ff0000 }
&lt;/style &gt;</pre>
<p>In the example above the HTML element &lt;P&gt; has a color declaration  and the value is a rrggbb color of  #ff0000 . The result would be that all  paragraphs would be formatted to be displayed with a font color of red.  However the Author could override this Style Declaration Value by using a  child element like &lt; font color=&#8221;blue&#8221; &gt; inside of the paragraph.</p>
<p>Another important note is that where it was once common to leave the &lt;P&gt; tag  open Authors should now take care to close it with a &lt;/P&gt; to make sure  that Style Declarations are properly controlled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/225/css-lesson-1-introduction-to-css-for-webdesign.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Lesson 2 &#8211; Understanding The Cascading Part Of CSS Cascading Style Sheets</title>
		<link>http://www.npsites.com/227/css-lesson-2-understanding-the-cascading-part-of-css-cascading-style-sheets.html</link>
		<comments>http://www.npsites.com/227/css-lesson-2-understanding-the-cascading-part-of-css-cascading-style-sheets.html#comments</comments>
		<pubDate>Mon, 13 Apr 2009 17:54:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.npsites.com/?p=227</guid>
		<description><![CDATA[What is Cascading? When applying styles to the elements &#60;tags&#62; of your website it is important to understand the hierarchy of how Cascading Styles are applied to elements that are inside of elements. In standard HTML all pages will start and end with a &#60;html&#62; element tag and the content of the page will be [...]]]></description>
			<content:encoded><![CDATA[<h2>What is Cascading?</h2>
<p>When applying styles to the elements &lt;tags&gt; of your website it is important to understand the hierarchy of how Cascading Styles are applied to elements that are inside of elements.</p>
<p>In standard HTML all pages will start and end with a &lt;html&gt; element tag and the content of the page will be placed inside of the &lt;body&gt; element tag.</p>
<p>When you apply your CSS Styles to a higher element it will be applied to all elements within it.</p>
<p>For example if you were to apply a font style to your &lt;body&gt; tag the whole page would use those settings unless you override them individually.</p>
<p>.body {color:#33ff33}</p>
<p>&lt;body&gt;<br />
&lt;p&gt;<span style="color: #33ff33;">This is some text</span>&lt;/p&gt;<br />
&lt;p style=&#8221;color:#ff33ff&#8221;&gt;<span style="color: #ff33ff;">This Text has an override</span>&lt;p&gt;<br />
&lt;/body&gt;</p>
<p>The styles will be applied from the outer most container to the inside container.</p>
<h2>What about Enduser Browser CSS Files</h2>
<p>Because both the Author and the Enduser have the ability to use and apply their own style sheets, Cascading is used to control which Style Selector will be used and which Style Selectors will be overridden.</p>
<p>Endusers often make changes to a Browser CSS file so they can read your pages better. For low Vision Visitors of your site they may increase the font size or they may apply font colors that allow them to read your pages easier.</p>
<p>Normally if the Author and Enduser apply different values to the same element the author&#8217;s settings will override the enduser&#8217;s. However because there are situations where the enduser&#8217;s settings should have a higher priority the cascading value <strong>!important</strong> can be used to set a higher weight to a certain Declaration Value.<br />
The Author&#8217;s style</p>
<p><strong>&lt;style type=&#8221;text/css&#8221;&gt;<br />
P { color:#ff0000 }<br />
&lt;/style&gt;</strong></p>
<p>The Enduser&#8217;s Style</p>
<p><strong>&lt;style type=&#8221;text/css&#8221;&gt;<br />
P { color:#000000 !important }<br />
&lt;/style&gt;</strong></p>
<p>In the example above we see that the use of !important in the enduser&#8217;s style sheet is used to override the author&#8217;s setting.</p>
<p>The Author can also take advantage of this value to override a previously defined element by applying the !important value directly to the HTML tag.</p>
<p>The Author&#8217;s style defined in the head area:</p>
<p><strong>&lt;style type=&#8221;text/css&#8221;&gt;<br />
P { color:#ff0000 }<br />
&lt;/style&gt;</strong></p>
<p><strong>Author&#8217;s local override in the HTML tag:</strong></p>
<p>&lt;p style=&#8221;color: green !important&#8221; &gt;this paragraph is green &lt;/p&gt;</p>
<p>Using the !important declaration feature in your CSS can be used to work out bugs in your formatting.  This declaration shown Inline above can also be used in your styles.css file.</p>
<h2>Cascading and the Document Tree</h2>
<p>When a page is rendered there is a hierarchical method applied to the formatting. When the browser retrieves the page it first collects the all of the style information and sorts the selectors using the cascading order to see which rule will take priority. Then the Document Tree is used to add additional weighted order.</p>
<p>When elements are added to a page parent elements influence the child elements so if formatting is applied to the parent element it will be inherited by the child unless the child element overrides the formatting of the parent element.</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;title&gt; CSS Document Tree &lt;/title&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
P { color: #ff0000 ; font-size: 18px }<br />
&lt;/style&gt;<br />
&lt;/head&gt;<br />
&lt;body text=&#8221;808080&#8243;&gt;<br />
If someone asks your over for dinner.<br />
&lt;p &gt;Don&#8217;t eat the &lt;font size=3&gt;chicken&lt;/font&gt;.&lt;/p&gt;<br />
&lt;p &gt;&lt;font color=orange&gt;Chicken &lt;/font&gt; are people too.&lt;/p&gt;</p>
<p>&lt;/body&gt;<br />
&lt;/html&gt;</p>
<p>What it looks like:</p>
<div style="padding:15px;border: 5px solid #dddddd; margin: 15px; width: 300px;height:200px">
<p style="color:#808080">If someone asks your over for dinner.</p>
<p style="color: #ff0000 ; font-size: 18px">Don&#8217;t eat the <span style="font-size: small;">chicken</span>.</p>
<p style="color: #ff0000 ; font-size: 18px"><span style="color: orange;">Chicken </span> are people too.</p>
</div>
<p>In the example above you can see that the first line is inheriting its color properties from the BODY element. Then in the first paragraph the P element overrides the BODY TEXT color and finally inside the paragraph the Font element overrides the P element applying its own font size setting.</p>
<p>When you compare the first and second paragraphs you can see that the Font Element is used to partially override parent elements but where the Child element &lt;font&gt; does not override the parent element it will accept the parents formatting characteristics.</p>
<p>The Font element in the first Paragraph accepts the color attribute but changes the size. The Font element in the second paragraph keeps the size and changes the color.<br />
<strong> The Document Tree for this file would be:</strong></p>
<pre>         HTML
          |
         BODY
         /  \
 Body Text   Paragraph
                 |
               FONT</pre>
<h2>Final Note</h2>
<p>It is important to remember and map out what parent elements and styles effect lower or internal tag elements. You will find when you first start that applying font information, borders, margins and other settings to parent elements they can throw you off in your design.</p>
<p>To find where to fix the problem work your way from the inside out until you find the style you need to change or override.</p>
<p>Cascading is also effected by the line number of your CSS style.css file.</p>
<p>Elements that appear closer to the top of the CSS file will effect elements below it. This is where the use of the !important declaration will often be used. We will go over this in more detail in a lesson about setting up your CSS style.css file.</p>
<p>Finally if the element is not defined by a CSS Selector the default settings of the enduser&#8217;s client are used to render the element.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/227/css-lesson-2-understanding-the-cascading-part-of-css-cascading-style-sheets.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Lesson 3 &#8211; Linking CSS Files To Your Documents</title>
		<link>http://www.npsites.com/228/css-lesson-3-linking-css-files-to-your-documents.html</link>
		<comments>http://www.npsites.com/228/css-lesson-3-linking-css-files-to-your-documents.html#comments</comments>
		<pubDate>Tue, 14 Apr 2009 16:57:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.npsites.com/?p=228</guid>
		<description><![CDATA[Style Sheets in External Files Link To define an external Style Sheet to be used to format your HTML you use place a Link element in the Head area of the HTML file. The basic tag would be: &#60;LINK REL=stylesheet HREF="mystyle.css"&#62; Where HREF tells the location and file name and REL indicates the file is [...]]]></description>
			<content:encoded><![CDATA[<h2>Style Sheets in External Files</h2>
<h3>Link</h3>
<p>To define an external Style Sheet to be used to format your HTML  you use place a Link element in the Head area of the HTML file.</p>
<p><strong>The basic tag would be:</strong></p>
<pre>&lt;LINK REL=stylesheet HREF="mystyle.css"&gt;</pre>
<p>Where HREF tells the location and file name and REL indicates the  file is a Style Sheet.</p>
<hr />
<h2><strong>Additional Declarations include:</strong></h2>
<h3>Media</h3>
<p>Media is used to define the application of the CSS to its end use. If more than one external style sheet is defined with the link element  the Media type would set the proper file to be used for the proper  use of the page. The Media definition is not implemented in IE4 or NS4.</p>
<p>&lt;LINK REL=stylesheet MEDIA=&#8221;screen&#8221; HREF=&#8221;mystyle.css&#8221; TYPE=&#8221;text/css&#8221;&gt;</p>
<p>You can also define more than one profile with comas between the values.</p>
<p>Media=Print,Screen,Aural</p>
<p><strong>PRINT</strong> &#8211; For documents viewed on screen in print preview mode.<br />
<strong>SCREEN</strong> &#8211; a continuous presentation for computer screens.<br />
<strong>PROJECTION</strong> &#8211; paged presentation for projected presentations.<br />
<strong>BRAILLE</strong> &#8211; for braille tactile feedback devices.<br />
<strong>AURAL</strong> &#8211; aural presentation, e.g. for a speech synthesizer.<br />
<strong>ALL</strong> &#8211; the default value, the style sheet applies to all output devices.</p>
<hr />
<h2>Title</h2>
<p>The Title Attribute can be used to define the type of style sheet. Not using the TITLE tag makes your file persistent meaning the Selectors  in a file without a title will always be applied to the document.</p>
<p>TITLE=&#8221;default&#8221;</p>
<p>If you define more than one Style Sheet to be applied to your document  you can use the title attribute to group them.<br />
&lt;LINK REL=&#8221;alternate stylesheet&#8221; TITLE=&#8221;bluepage&#8221; HREF=&#8221;b-paragraph.css&#8221;&gt;<br />
&lt;LINK REL=&#8221;alternate stylesheet&#8221; TITLE=&#8221;bluepage&#8221; HREF=&#8221;b-tables.css&#8221;&gt;<br />
&lt;LINK HREF=&#8221;largefont.css&#8221;&gt;</p>
<p>TYPE can be used to describe the file type of the Style Sheet.<br />
&lt;LINK HREF=&#8221;mystyle.css&#8221; TYPE=&#8221;text/css&#8221;&gt;</p>
<hr />
<h2>Meta Tag</h2>
<p>The Meta element can be used on your page to identify to the  Enduser&#8217;s client that your page includes CSS information.<br />
&lt;META HTTP-EQUIV=&#8221;Content-Style-Type&#8221; CONTENT=&#8221;text/css&#8221;&gt;</p>
<hr />
<h2>Style Sheet use by the Enduser</h2>
<p>If the Enduser would like to construct their own style sheet they would  follow the same method as an author that is constructing an external style  sheet. However because the enduser will not be able to prepare style selectors  that will override all the possible ID and Class Element Declarations the  enduser&#8217;s User Agent should be able to ignore server side Style Sheets.</p>
<p>Internet Explorer agents define the client side Style Sheet in the  Internet Options &#8211; General Tab Under the Accessibility area.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/228/css-lesson-3-linking-css-files-to-your-documents.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Lesson 4 &#8211; Using Selectors To Define CSS Styles</title>
		<link>http://www.npsites.com/229/css-lesson-4-using-selectors-to-define-css-styles.html</link>
		<comments>http://www.npsites.com/229/css-lesson-4-using-selectors-to-define-css-styles.html#comments</comments>
		<pubDate>Thu, 16 Apr 2009 20:04:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.npsites.com/?p=229</guid>
		<description><![CDATA[Selectors A Selector is the definition of a formatting Style that can be applied to a HTML Element. The Selector has three basic parts: Element {Declaration: Value} The Declaration and Value are surrounded by {} braces and the Declaration is separated from the value by a colon : and a space. The Selectors relation to [...]]]></description>
			<content:encoded><![CDATA[<h2>Selectors</h2>
<p>A Selector is the definition of a formatting Style that  can be applied to a HTML Element.<br />
The Selector has three basic parts:</p>
<p><span style="color: orange;">Element</span> {<span style="color: red;">Declaration</span>:  <span style="color: green;">Value</span>}</p>
<p>The <span style="color: red;">Declaration</span> and <span style="color: green;">Value</span> are surrounded by {} braces and the<br />
<span style="color: red;">Declaration</span> is separated from the <span style="color: green;">value</span> by a colon : and a space.</p>
<p>The Selectors relation to common HTML would be similar to this tag  structure that is used to define the color of a font:</p>
<p>&lt; <span style="color: orange;">font</span> <span style="color: red;">color</span>=<span style="color: green;">orange</span> &gt;</p>
<p>Where<span style="color: orange;"> Font</span> is the<span style="color: orange;"> Element</span>,<br />
<span style="color: red;">Color</span> is the <span style="color: red;">Declaration</span> and<br />
<span style="color: green;">Orange</span> is the <span style="color: green;">Value</span> of the Declaration.</p>
<hr />
<h2>Type Selectors</h2>
<p>Type selectors are used set the definition of a certain type of element. If you wanted to assign a property to all of the &lt;H1&gt; elements in your  document you would use the following.</p>
<pre>&lt;style&gt;
H1 {color: 000fff}
&lt;/style&gt;</pre>
<p><strong>The syntax is:</strong><br />
Element {declaration: value }</p>
<hr />
<h2>Multiple Declarations</h2>
<p>If you would like to define more than property for your Element  you can use a semicolon ; to separate Declarations.</p>
<pre>&lt;style&gt;
H1 {color: 000fff ;
    font-weight: bold;
    font-size: 12pt
}
&lt;/style&gt;</pre>
<p><strong>The syntax is:</strong><br />
Element {declaration: value ; declaration: value}</p>
<hr />
<h2>Grouping Elements</h2>
<p>If you would like to apply the same properties to different elements you can use a coma , between the elements and use the same Declarations  and Values.</p>
<pre>&lt;style&gt;
H1, TD, P {color: 000fff }
&lt;/style&gt;</pre>
<p><strong>The syntax is:</strong><br />
Element, Element, Element {declaration: value }</p>
<hr />
<h2>Parent Child Elements</h2>
<p>Contextual elements can be combined to for a selector that will be  applied only if a certain element pattern is used in the HTML.</p>
<p>Only works in IE4.</p>
<p>If you wanted all Italic characters to be Blue but only  if they were contained inside a H1 headline.  You could define the selector like this:</p>
<pre>&lt;style&gt;
B ~ I {color: 000fff }
&lt;/style&gt;</pre>
<p><strong>The syntax is:</strong><br />
ParentElement ~ ChildElement {declaration: value}</p>
<p>The following text would be bold but the Italic (e) would  be rendered both Italic and Blue. However Italic text that is not  contained inside a Parent B Element will be rendered just plain  Italic and not blue.</p>
<p>&lt;B&gt;<strong>T&lt;i&gt;<em><span style="color: #000fff;">e</span></em>&lt;/i&gt;xt</strong>&lt;/B&gt;</p>
<p>The Result would look like</p>
<p><strong>T<em><span style="color: #000fff;">e</span></em>xt</strong></p>
<hr />
<h2>Sequential Selectors</h2>
<p>When you want to define a selector that would be applied only if  one element directly follows another element you can use the following  format.<br />
Only works in IE4.</p>
<pre>&lt;style&gt;
/P ~ I/ {color: 000fff }
&lt;/style&gt;</pre>
<p><strong>The syntax is:</strong><br />
/FirstElement ~ SecondElement/ {declaration: value}</p>
<p>And would be applied as follows:</p>
<p>&lt;P&gt;Chickens&lt;/P&gt;<br />
&lt;I&gt;<span style="color: #000fff;"><em>happy chickens</em></span>&lt;/I&gt;</p>
<hr />
<h2>ID Elements</h2>
<p>If you would like to define a declaration and value that you can apply  to elements in your document but you do not want to apply this declaration to all tags of one type you can use an ID element and then apply that ID  to your tags as you wish.</p>
<pre>&lt;style&gt;
#abc123 {color: 000fff }
&lt;/style&gt;</pre>
<p>&lt;P id=abc123&gt; text &lt;/p&gt;</p>
<p><strong>The syntax is:</strong><br />
ID {declaration: value }</p>
<p><strong>The HTML Tag referenced:</strong><br />
&lt;tag id=ID&gt;</p>
<p>If you would like to set up optional declarations for a single element  you can apply an ID to an element. This will allow you to use varying  styles within the same element.</p>
<pre>&lt;style&gt;
H1 #abc123 {color: 000fff }
&lt;/style&gt;</pre>
<p>&lt;H1 id=abc123&gt; text &lt;/H1&gt;</p>
<p><strong>The syntax is:</strong><br />
Element ID {declaration: value }</p>
<p><strong>The HTML Tag referenced:</strong><br />
&lt;tag id=ID&gt;</p>
<hr />
<h2>Class Elements</h2>
<p>Class Elements are defined in a similar method to ID Elements. They can be applied various to HTML elements in a per element  method or they can define a subset class of an element.</p>
<pre>&lt;style&gt;
.chicken {color: 000fff }
&lt;/style&gt;</pre>
<p>&lt;H1 class=&#8221;chicken&#8221;&gt; text &lt;/H1&gt;</p>
<p><strong>The syntax is:</strong><br />
.class {declaration: value }</p>
<p><strong>The HTML Tag referenced:</strong><br />
&lt;tag class=&#8221;classname&#8221;&gt;</p>
<hr />
<h2>Pseudo-Classes</h2>
<p>The ability to change the properties of a element based on  the state of the element can be accomplished by using a  Pseudo Class Element.</p>
<p>The Anchor &lt; A &gt; element can have different rendering  properties applied to it based upon the current state.</p>
<p><strong>The possible variations include:</strong></p>
<p><strong>link</strong> &#8211; unvisited links<br />
<strong>visited</strong> &#8211; visited links<br />
<strong>hover</strong> &#8211; user hovers<br />
<strong>active</strong> &#8211; active links</p>
<pre>&lt;style&gt;
A:hover {color: orange }
&lt;/style&gt;</pre>
<p>&lt;A href=&#8221;file.html&gt; click here &lt;/A&gt;</p>
<p><strong>The syntax is:</strong><br />
element:pseudo_class {declaration: value }</p>
<h2>Final Note</h2>
<p>When defining your Selectors in your CSS file it is good practice to group your selectors based on their use. If you are defining for example your sidebar where ads or other blocks of information will go then group those selectors so you can find and modify them easily.</p>
<p>Defining your Selectors in a CSS File will allow site wide modification from one file but do not dismiss the use of inline CSS within specific elements to localize and limit formatting for specific reasons.</p>
<p>Your CSS File should include General and Non Changing or Specific information about how you want your pages to render. You should not try to load it with every formatting attribute that you need to apply.</p>
<p>A <strong>secret</strong> may be setting up basic shells that you can apply quickly in your documents.</p>
<p>You may want a variety of font sizes try setting up a list of selectors in your css file that can be used across your site.</p>
<p>#font18px {font-size:18px}<br />
#font18pxBlue {font-size:18px;color#2784b0}</p>
<p>then apply them as such</p>
<p>&lt;span id=&#8221;font18pxBlue&#8221;&gt;<span style="font-size:18px;color: #2784b0;">this is 18px blue font</span>&lt;/span&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/229/css-lesson-4-using-selectors-to-define-css-styles.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Lesson 5 &#8211; Fonts Setting Atributes</title>
		<link>http://www.npsites.com/241/css-lesson-5-fonts-setting-atributes.html</link>
		<comments>http://www.npsites.com/241/css-lesson-5-fonts-setting-atributes.html#comments</comments>
		<pubDate>Mon, 27 Apr 2009 01:35:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.npsites.com/?p=241</guid>
		<description><![CDATA[Font Specifications Font family A font family is a group of fonts that resemble each other. When you are defining your selector to set the font family your text will be rendered in you can use Exact Names that refer to fonts that are installed on the enduser&#8217;s system (Ariel, Verdana) or you can define [...]]]></description>
			<content:encoded><![CDATA[<h2>Font Specifications</h2>
<h3>Font family</h3>
<p>A font family  is a group of fonts that resemble each other.  When you are defining your selector to set the font family  your text will be rendered in you can use Exact Names that refer to fonts  that are installed on the enduser&#8217;s system (Ariel, Verdana) or you can  define Generic names as a last resort.</p>
<p><strong>Possible Generic Font Family names include:</strong><br />
cursive, fantasy, mono-space, serif and sans-serif.</p>
<p>When you are defining Generic families do not use quotes.</p>
<p>When you define a selector with more than one font  you must use quotes to enclose Family names that include spaces  and you should use capital letters where necessary.<br />
Example:</p>
<pre>BODY { font-family: "Times New Roman", Verdana, serif }</pre>
<hr />
<h3>Font Style</h3>
<p>The font style variations of <strong>normal, italic,</strong> or <strong>oblique</strong> can be defined  Normal is the default style if no font style is set.</p>
<pre>P { font-style: italic}</pre>
<hr />
<h3>Font Variant</h3>
<p>The font variant can be used to choose a variation of a font. In the example below the small-caps  value is defined.</p>
<pre>H3 { font-variant: small-caps }</pre>
<hr />
<h3>Font Weight</h3>
<p>The font weight refers to the boldness or lightness of a font.  Keywords can be used to set the value or you can use a numeric  set of values from 100 to 900 in increments of 100 as:  100, 200, 300, 400, 500, 600, 700, 800, 900 .</p>
<p>The keywords bolder and lighter are used to set values that are  relative to the parent element&#8217;s font weight.</p>
<p>The keyword bold is equal to the numeric value 700.</p>
<p><strong>An example would be:</strong></p>
<pre>&lt;style&gt;
  P { font-weight: normal }
  P #12 { font-weight: 900 }
&lt;/style&gt;

this is normal

this is very bold</pre>
<p><span style="font-family: Arial,Helvetica; font-size: x-small;"></p>
<hr /></span></p>
<h3>Font Size</h3>
<p>The font size refers to the size of the font.</p>
<p><strong>The following types of values can be set:</strong><br />
absolute-size, relative-size, length, percentage .</p>
<p>The absolute-size keywords are a series of font sizes that are  set by the enduser&#8217;s viewing agent.</p>
<p><strong>The values you can choose from are:</strong><br />
xx-small, x-small, small, medium, large, x-large, xx-large</p>
<p>Relative Sizes are dependent on the parent element.  When defining a relative size the resulting font size is  chosen from the Font table of the enduser&#8217;s agent.</p>
<p><strong>The values you can choose from are:</strong><br />
larger, smaller</p>
<p><strong>Leghth</strong><br />
When you apply a length the value can be either relative to the parent or  it can be an absolute value.</p>
<p><strong>Relative values are:</strong></p>
<p><strong>em</strong> Elements Mheight<br />
<strong>ex</strong> Elements Xheight<br />
<strong>px</strong> pixels</p>
<p><strong>Absolute values are:</strong></p>
<p><strong>pt</strong> points<br />
<strong>in</strong> inches<br />
<strong>cm</strong> centimeters<br />
<strong>mm</strong> millimeters<br />
<strong>pc</strong> picas</p>
<p><strong>Percentage</strong><br />
The percentage value is also relative to the parent element.<br />
<strong>The selector would be defined as follows:</strong></p>
<pre>&lt;style&gt;
  P #120 { font-size: 120% }
&lt;style&gt;</pre>
<p>Here is a simulation of what it would look like:</p>
<p>&lt;P&gt;this is normal&lt;P ID=120&gt;<span style="font-size: xx-small;">this is text is 20% larger</span>&lt;/P&gt; &lt;/P&gt;</p>
<h2><strong>Helpful Tip</strong></h2>
<p>To make your life easier you should begin by setting up a font definition list that you can include in all of your CSS files.</p>
<p>Using IDs you can set up a list of font specs that you can apply in your documents.</p>
<p>#font12px  {font-size:12px}<br />
#font14px  {font-size:14px}<br />
#font16px  {font-size:16px}<br />
#font20px  {font-size:20px}<br />
#font24px  {font-size:24px}</p>
<p>#font12pxRed  {font-size:12px;color:#FF0600}<br />
#font14pxRed  {font-size:14px;color:#FF0600}<br />
#font16pxRed  {font-size:16px;color:#FF0600}<br />
#font20pxRed  {font-size:20px;color:#FF0600}<br />
#font24pxRed  {font-size:24px;color:#FF0600}</p>
<p>Apply the fonts in a &lt;div id=&#8221;font16pxRed&#8221;&gt; or where ever they are needed.</p>
<p>Setting up a basic list of fonts will allow you to apply site wide colors that match your theme or company colors.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/241/css-lesson-5-fonts-setting-atributes.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Lesson 6 &#8211; Text Formatting</title>
		<link>http://www.npsites.com/242/css-lesson-6-text-formatting.html</link>
		<comments>http://www.npsites.com/242/css-lesson-6-text-formatting.html#comments</comments>
		<pubDate>Mon, 27 Apr 2009 18:12:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.npsites.com/?p=242</guid>
		<description><![CDATA[Text Formatting Where Font attributes apply to the character level Text Formatting applies to how the characters are manipulated to makeup words and how words are used to make sentences. Indenting The text-indent property will allow you to indent the first line of a block of text. Values include: length, percentage P { text-indent: 3em [...]]]></description>
			<content:encoded><![CDATA[<h3>Text Formatting</h3>
<p>Where Font attributes apply to the character level Text Formatting  applies to how the characters are manipulated to makeup words and  how words are used to make sentences.</p>
<hr />
<h3>Indenting</h3>
<p>The text-indent property will allow you to indent the first line of a  block of text.</p>
<p><strong>Values include:</strong> length, percentage</p>
<pre> P { text-indent: 3em }</pre>
<hr />
<h3>Text Alignment</h3>
<p>Defines how a block of text will be aligned within a containing element.</p>
<p><strong>Values include:</strong> left, right, center, justify</p>
<pre>P { text-align: center }</pre>
<p>The text-align attribute can also be used to center a page or container.</p>
<hr />
<h3>Decoration</h3>
<p>This property can be applied to text to add additional decorative features.</p>
<p><strong>Values include:</strong> none, underline, overline, line-through, blink</p>
<p>Note: Blink does not work with IE and Overline does not work with NS4.</p>
<p>You can also use this declaration to override the default settings of the users agent. The following example will allow you to create links that are not underlined.</p>
<p>Also see Pseudo Class Elements.</p>
<pre>&lt;style&gt;
  A:link, A:visited, A:active { text-decoration: none }
&lt;/style&gt;

&lt;a href="file.html"&gt;Click Here&lt;/a&gt;</pre>
<hr />
<h3>Text shadows</h3>
<p>Allows you to define a shadow effect to your text.<br />
Note: This Text Formatting feature does not work in IE4 or NS4.</p>
<pre>&lt;style&gt;
  P { text-shadow: black }
&lt;/style&gt;

&lt;P&gt;This is some text&lt;/P&gt;</pre>
<p>text-shadow has been deprecated in new CSS browsers.</p>
<hr />
<h3>Word Spacing</h3>
<p>Word Spacing allows you to define the amount of space between words.<br />
Note: This Text Formatting feature does not work in IE4 or NS4.</p>
<p><strong>Values include:</strong> normal, length, auto</p>
<pre>  H1 { word-spacing: 1em }</pre>
<hr />
<h3>Letter Spacing</h3>
<p>Letter Spacing allows you to define the amount of space between  letters in each word.</p>
<p>Note: This Text Formatting feature does not work in NS4.</p>
<p><strong>Values include:</strong> normal, length, auto</p>
<pre>&lt;style&gt;
P { letter-spacing: 0.1cm }
&lt;/style&gt;

&lt;P&gt;This is some text&lt;/P&gt;</pre>
<hr />
<h3>Text Transform Case</h3>
<p>Case allows you to change how a block of text will appear. This is an easy way to override the formatting of a block  of text that has already been typed and placed in the document.</p>
<p><strong>Values include:</strong> capitalize, uppercase, lowercase, none</p>
<p>The values of this property have the following meanings:</p>
<p><strong>capitalize:</strong> first character of each word is uppercase<br />
<strong>uppercase:</strong> all characters are uppercase<br />
<strong>lowercase:</strong> all characters are lowercase<br />
<strong>none:</strong> element ignores parent element value</p>
<pre>&lt;style&gt;
P { text-transform: uppercase }
&lt;/style&gt;

&lt;P&gt;This is some text&lt;/P&gt;</pre>
<hr />
<h3>White Space</h3>
<p>White space is used to define how a block of text will be controlled  within an element. White space refers to the spaces between the words.</p>
<p>Note: This Text Formatting feature does not work in IE4  and has only partial support in NS4.</p>
<p><strong>Values include:</strong> normal, pre, nowrap</p>
<p>In the example below the H1 element has been given the white-space  value of pre or preformatted text. This means that additional  spaces between words will be preserved as if the block was preformatted text.</p>
<pre>&lt;HTML&gt;
 &lt;HEAD&gt;
  &lt;STYLE type="text/css"&gt;
  H1   { white-space: pre }
&lt;/STYLE&gt;
&lt;BODY&gt;

&lt;H1&gt;This is     some text &lt;/H1&gt;

&lt;/BODY&gt;
&lt;/HTML&gt;</pre>
<h2><strong>Note</strong></h2>
<p>Proper spacing of characters and words will allow the reader to visually understand the content of your pages.</p>
<p>Too much space can be as bad as not enough and anyone who has had to enter a comment limit word on youtube or to submit a form understands that it is not only size, color and font choice but also how the characters are presented that allows you to read and understand the words quickly.</p>
<p>No one wants to struggle when they are reading a few pages of text so use these style attributes conservatively not creatively.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/242/css-lesson-6-text-formatting.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
