<?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; list</title>
	<atom:link href="http://blog.andrewtrivette.com/tag/list/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>
	</channel>
</rss>
