<?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; HTML</title>
	<atom:link href="http://www.npsites.com/category/lessons/html/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>HowTo &#8211; Resolving Page Formatting Problems Due To Viewers Language Settings</title>
		<link>http://www.npsites.com/365/howto-resolving-page-formatting-problems-due-to-viewers-language-settings.html</link>
		<comments>http://www.npsites.com/365/howto-resolving-page-formatting-problems-due-to-viewers-language-settings.html#comments</comments>
		<pubDate>Sun, 25 Oct 2009 17:29:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.npsites.com/?p=365</guid>
		<description><![CDATA[When you are designing sites that you know will be viewed by persons who have different language settings it is important to decide whether you will force a language or design different versions of your site to provide optimal viewing. To set the language options you may place the following HTML in your Header Element. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-293" title="alink" src="http://www.npsites.com/npsblog/wp-content/uploads/2009/06/alink.jpg" alt="alink" width="150" height="68" />When you are designing sites that you know will be viewed by persons who have different language settings it is important to decide whether you will force a language or design different versions of your site to provide optimal viewing.</p>
<p>To set the language options you may place the following HTML in your  Header Element.</p>
<pre><strong>&lt;html dir="ltr" lang="en-US"&gt;</strong></pre>
<p><strong>The Options available for the English Language include</strong></p>
<p>English &#8211; lang=&#8221;en&#8221;<br />
English US &#8211; lang=&#8221;en-US&#8221;<br />
English Great Britain &#8211; lang=&#8221;en-GB&#8221;<br />
English Cockney &#8211; lang- &#8220;en-cockney&#8221;<br />
English Scouse &#8211; lang=&#8221;en-scouse&#8221;<br />
English Australia &#8211; lang=&#8221;en-AU&#8221;<br />
English Canada &#8211; lang=&#8221;en-CA&#8221;</p>
<p><strong>You can also Override bidirectionality in your CSS File </strong></p>
<p>html, body {direction:ltr}<br />
/* begin bidirectionality */<br />
bdo[dir=ltr] {direction:ltr; unicode-bidi:bidi-override}<br />
bdo[dir=rtl] {direction:rtl; unicode-bidi:bidi-override}<br />
*[dir=ltr] {direction:ltr; unicode-bidi:embed}<br />
*[dir=rtl] {direction:rtl; unicode-bidi:embed}</p>
<p>If you are going to set bidirectionality in your CSS you must include the HTML tag</p>
<p>CSS Bidirectionality can be set based on individual elements based on their parent where the absence of the HTML Tag setting will not allow this</p>
<p>The more you work with foreign language preferences the better you will become at designing pages that viewers around the world can read easily.</p>
<p>This is not to say that you should limit your designs in ways that would compromise your content. Just that there are decisions to be made if you know your content is being viewed by people with different settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.npsites.com/365/howto-resolving-page-formatting-problems-due-to-viewers-language-settings.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! -->
