<?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>A.T. Design Articles &#187; html</title>
	<atom:link href="http://blog.andrewtrivette.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.andrewtrivette.com</link>
	<description></description>
	<lastBuildDate>Tue, 07 Sep 2010 04:56:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Basic HTML: Tables, Lists, and Attributes</title>
		<link>http://blog.andrewtrivette.com/2009/07/28/basic-html-tables-lists-and-attributes/</link>
		<comments>http://blog.andrewtrivette.com/2009/07/28/basic-html-tables-lists-and-attributes/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 14:32:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[cookeville]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[tables]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://blog.andrewtrivette.com/?p=5</guid>
		<description><![CDATA[Now that we've covered the basic tags used in HTML, let's look at a few more "complicated" tags. Actually, they're not significantly more complicated, but are simply groups of tags with specific orders and nesting arrangements. Read on!]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: normal; font-size: 13px;">Now that we&#8217;ve covered the basic tags used in HTML, let&#8217;s look at a few more &#8220;complicated&#8221; tags. Actually, they&#8217;re not significantly more complicated, but are simply groups of tags with specific orders and nesting arrangements. Read on!</span></p>
<h2>Tables</h2>
<p>First we&#8217;ll look at tables. Tables are created using a combination of four different tags: <strong>&lt;table&gt;</strong>, <strong>&lt;tr&gt;</strong>(table row), <strong>&lt;th&gt;</strong>(Title/heading cell), and <strong>&lt;td&gt;</strong>(normal table cell). Let&#8217;s take this in 3 steps.</p>
<p><strong>Step 1</strong></p>
<blockquote>
<pre>&lt;table&gt;
  &lt;tr&gt; &lt;/tr&gt;
  &lt;tr&gt; &lt;/tr&gt;
  &lt;tr&gt; &lt;/tr&gt;
&lt;/table&gt;</pre>
<p><small>Figure 1.</small></p></blockquote>
<p>First we define a table area by using the table tag(<strong>&lt;table&gt; &lt;/table&gt;</strong>). Naturally, everything related to the table is put inside these two tags.</p>
<p><strong>Step 2</strong></p>
<p>Then within this tag we define the rows in our table(See Figure 1). As you can see, we just added three rows to our table.</p>
<p><strong>Step 3</strong></p>
<blockquote>
<pre>&lt;table&gt;
  &lt;tr&gt;
    &lt;th&gt;1&lt;/th&gt;
    &lt;th&gt;2&lt;/th&gt;
    &lt;th&gt;3&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;4&lt;/td&gt;
    &lt;td&gt;5&lt;/td&gt;
    &lt;td&gt;6&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td&gt;7&lt;/td&gt;
    &lt;td&gt;8&lt;/td&gt;
    &lt;td&gt;9&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;</pre>
<p><small>Figure 2.</small></p></blockquote>
<p>Add the cells within each row(for the example we add three cells to each row). In our first row, we want these cells to show up as headers for each column, so we use the <strong>&lt;th&gt;</strong> tag. Then in each of the remaining two rows, we&#8217;ll use regular table cells(<strong>&lt;td&gt;</strong>). For the sake of the example I&#8217;ve thrown in some numbers as sample content. Figure 2 shows the code, and Figure 3 shows the resulting table.</p>
<div class="left">
<table border="0" width="100%">
<tbody>
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
</tr>
<tr>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td>8</td>
<td>9</td>
</tr>
</tbody>
</table>
<p>Figure 3.</p>
</div>
<h2>Lists</h2>
<p>Lists can come in two primary different styles: <em>Ordered Lists</em>, and <em>Unordered Lists</em>. Unordered Lists tend to be more popular, and put a bullet in front of each list item. Ordered Lists place a number in front of each list item.</p>
<blockquote>
<pre>&lt;ol&gt;
  &lt;li&gt;List Item 1&lt;/li&gt;
  &lt;li&gt;List Item 2&lt;/li&gt;
  &lt;li&gt;List Item 3&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
  &lt;li&gt;List Item 4&lt;/li&gt;
  &lt;li&gt;List Item 5&lt;/li&gt;
  &lt;li&gt;List Item 6&lt;/li&gt;
&lt;/ul&gt;</pre>
<p><small>Figure 4.</small></p></blockquote>
<p>The tags used for these lists are <strong>&lt;ol&gt;</strong>(Ordered Lists), <strong>&lt;ul&gt;</strong>(Unordered Lists), and <strong>&lt;li&gt;</strong>(List Item). The <strong>&lt;li&gt;</strong> tag is used within both list types.</p>
<p>Similar to the table tag, the <strong>&lt;ol&gt;</strong>, or <strong>&lt;ul&gt;</strong> tags are used to define a list area, and nested inside them is a group of <strong>&lt;li&gt;</strong> tags which define each item in the list. Figure 4 shows the code for the lists shown in Figure 5.</p>
<div class="left">
<ol>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ol>
<ul>
<li>List Item 4</li>
<li>List Item 5</li>
<li>List Item 6</li>
</ul>
<p>Figure 5.</p>
</div>
<h2>Atrributes</h2>
<p>As we saw with images and anchor links, sometimes additional information can be included within a tag. These are called attributes and always contain two pieces of information, the name and a value associated with it. They are formatted like this: <em>name</em>=&#8221;<em>value</em>&#8221; . You can find references online that detail what attributes can be used for any given tag. We will look at one commonly used one, that works with most tags. This will bring you up-to-date on the three most common attributes(<em>src, href, and class</em>).</p>
<blockquote>
<pre>&lt;p&gt;
  Paragraph 1
&lt;/p&gt;
&lt;p class="president"&gt;
  Paragraph 2
&lt;/p&gt;
&lt;p&gt;
  Paragraph 3
&lt;/p&gt;</pre>
<p><small>Figure 6</small></p></blockquote>
<p>The <strong>class</strong> attribute. This one is widely used for design and styling purposes. It can contain any alphanumeric value, with no spaces. Using a class variable assigns an area in your HTML page that a web designer can use CSS(future tutorial!) to apply styles such as colors, text styles, and backgrounds selectively.</p>
<p>Take a look at Figure 6. You will see three paragraphs with some random text in them. The middle paragraph has been randomly assigned a <em>class</em> of <em>president</em>. Now a knowledgeable web developer can style that paragraph differently from the rest. Let&#8217;s say he adds a dark background to it and changes the text color to red. The final result would then look something like Figure 7.</p>
<blockquote><p>Paragraph 1</p>
<p class="president">Paragraph 2</p>
<p>Paragraph 3</p>
<p><small>Figure7</small></p></blockquote>
<h3>Summary</h3>
<p>Hopefully, this brief tutorial helped you grasp some of the concepts surrounding HTML. <em>Looking at a long page full of HTML markup can seem very intimidating, but it&#8217;s important to look at the page not as a whole, but rather as a collection of extremely simple parts.</em> This makes things so much simpler, and easy to understand. Find it slow and painful to create HTML? Slow down! That&#8217;s right, sometimes the best way to speed up a slow task is to slow down, develop some good habits, and don&#8217;t waste time looking for the shortcuts.</p>
<p>P.S. I&#8217;m no hypocrite, this set of articles was coded by hand(and rather quickly to, I might add).</p>
<h3>Additional Resources:</h3>
<p>Here are few links to a few quality resources on the web to helpfully shove you on your merry way towards HTML nirvana.</p>
<ul>
<li><a href="http://www.addedbytes.com/cheat-sheets/html-cheat-sheet/" target="_blank">HTML Tags Cheat Sheet</a></li>
<li><a href="http://www.tizag.com/htmlT/">In depth HTML tutorials</a></li>
<li><a style="text-decoration: none;" href="http://www.w3schools.com/tags/default.asp">HTML and attributes reference</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.andrewtrivette.com/2009/07/28/basic-html-tables-lists-and-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic HTML: So Easy a Caveman&#8230;</title>
		<link>http://blog.andrewtrivette.com/2009/07/01/basic-html-so-easy-a-caveman/</link>
		<comments>http://blog.andrewtrivette.com/2009/07/01/basic-html-so-easy-a-caveman/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 14:29:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cookeville]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://blog.andrewtrivette.com/?p=3</guid>
		<description><![CDATA[Maintaining the content on your own site is a great way to save money on site maintenance. Generally, all you need to understand is a little bit about how a web page is structured. This is defined with HTML. Before you start to despair, and wax verbose on your lack of ability to program, let me assure you that learning HTML is not learning how to program, it is far easier, and pretty much just defines different areas within your content. These areas include paragraphs, lists, content areas, images, bold text, headers, tables, etc.]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: normal; font-size: 13px;">Maintaining the content on your own site is a great way to save money on site maintenance. Generally, all you need to  understand is a little bit about how a web page is structured. This is defined with HTML. Before you start to despair, and wax verbose on your lack of ability to program, let me assure you that learning HTML is not learning how to program, it is far easier, and pretty much just defines different areas within your content. These areas include paragraphs, lists, content areas, images, bold text, headers, tables, etc.</span><br />
Still not sure? Remember, you don&#8217;t need to memorize everything, just try to understand the concept behind HTML, and the specifics you can look up as you need them. A cheat sheet is provided at the end. So go ahead and read the rest of the article, and see if it&#8217;s not really pretty easy. After all, what&#8217;ve you got to lose?</p>
<h2>The basics</h2>
<blockquote>
<pre>&lt;p&gt; &lt;/p&gt;
&lt;b&gt; &lt;/b&gt;
&lt;i&gt; &lt;/i&gt;</pre>
<p><small>Figure 1. Tag Pairs</small></p></blockquote>
<p>HTML, as mentioned earlier, is all about <strong>defining different areas of content</strong>, such as paragraphs, so that your browser knows how to lay out the web page. In order to define these areas, we make use of &#8220;building blocks&#8221; called tags. With few exceptions(which we&#8217;ll discuss  later), every tag is actually a pair of tags. One is placed at the beginning of the content area, and a matching tag is placed at the end of the area. Some example tag pairs are shown in Figure 1.</p>
<p>As you can see, tags are defined by <strong>&lt;</strong>, and <strong>&gt;</strong>, with the name of the tag being included within those symbols. You will also notice that the name of the closing tag begins with a forward slash (<strong>/</strong>). Other information can be included within a tag, besides just it&#8217;s name, which we will cover later, once we look at some of the most used tags.</p>
<blockquote>
<pre>&lt;img /&gt;
&lt;br /&gt;</pre>
<p><small>Figure 2. Unique Tags</small></p></blockquote>
<p>Just like everything in life, there are <strong>exceptions</strong> to the general rule of tag pairs. These tags define their own content, or effect(such as an image or forcing a new line). These tags without a closing tag will have the forward slash at the end of the tag info. Examples are shown in Figure 2.</p>
<p>Now let&#8217;s look at some of the most used tags for defining content.</p>
<h3>Popular Tags (A.K.A. The Rockstars of HTML)</h3>
<table border="0">
<tbody>
<tr>
<th>Tag Pair</th>
<th>Usage</th>
<th>Example</th>
</tr>
<tr>
<td>&lt;div&gt; &lt;/div&gt;</td>
<td><span style="text-decoration: underline;">Div</span>ision of content, or a box containing content</td>
<td><strong>&lt;div&gt;</strong>This is a content area, possibly with a header, couple of paragraphs, lists, etc.<strong>&lt;/div&gt;</strong></td>
</tr>
<tr>
<td>&lt;p&gt; &lt;/p&gt;</td>
<td>Paragraph</td>
<td><strong>&lt;p&gt;</strong>This could be an eloquent paragraph about your Pomeranian cat.<strong>&lt;/p&gt;</strong></td>
</tr>
<tr>
<td>&lt;b&gt; &lt;/b&gt;</td>
<td>Bold</td>
<td><strong>&lt;b&gt;</strong>Makes text bold.<strong>&lt;/b&gt;</strong></td>
</tr>
<tr>
<td>&lt;i&gt; &lt;/i&gt;</td>
<td>Italics</td>
<td><strong>&lt;i&gt;</strong>Surprisingly, this italicizes text.<strong>&lt;/i&gt;</strong></td>
</tr>
<tr>
<td>&lt;img /&gt;</td>
<td>Defines an image. Requires an attribute called <em>src</em>, which tells the browser where the image is located on the server</td>
<td><strong>&lt;img</strong> <em>src=&#8221;http://andrewtrivette.com/images/header.jpg&#8221;</em> <strong>/&gt;</strong></td>
</tr>
<tr>
<td>&lt;br /&gt;</td>
<td>Line-break</td>
<td>This is a sentence.<strong>&lt;br /&gt;</strong>This sentence will start on the next line.</td>
</tr>
<tr>
<td>&lt;a&gt; &lt;/a&gt;</td>
<td>Anchor (Link) Requires an attribute called <em>href</em>, which tells the browser where to go.</td>
<td><strong>&lt;a</strong> <em>href=&#8221;http://www.andrewtrivette.com&#8221;</em><strong>&gt;</strong>This text is a clickable link<strong>&lt;/a&gt;</strong></td>
</tr>
<tr>
<td>&lt;h1&gt; &lt;/h1&gt;</p>
<p>&lt;h2&gt; &lt;/h2&gt;</p>
<p>&lt;h3&gt; &lt;/h3&gt;</p>
<p>&lt;h4&gt; &lt;/h4&gt;</p>
<p>&lt;h5&gt; &lt;/h5&gt;</p>
<p>&lt;h6&gt; &lt;/h6&gt;</td>
<td>Header Tags 1-6, These display in decreasing size, used to demonstrate hierarchy in your content(titles, subtitles, section titles, etc.)</td>
<td><strong>&lt;h1&gt;</strong>Important Title<strong>&lt;/h1&gt;</strong></td>
</tr>
</tbody>
</table>
<p>These tags cover probably 70% of the HTML you will need to know to create/edit your own content. Many, many more exist, and can be found in various references online, as needed.</p>
<p>Notably missing from this list is tables, and lists, to be discussed in Part 2.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.andrewtrivette.com/2009/07/01/basic-html-so-easy-a-caveman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
