Free Tutorials | Certifications | Definitions | LearnthatQuick | ExplainThat | Links | Forums  
Learnthat.com Free Certification and Computer Online Courses
HomeFree Online Courses and TutorialsLearnthat.com Certification ResourcesWhat is definitions, Define technical termsFree Tutorial Links and Resources
 Home : Courses : Computer : Intro to HTML : Tables

How to Create Tables Tutorial

Links / List of Commands

Tables open up a whole new world in HTML. With Tables, you can control how things appear on a web page and can format data cleaner on a page.

Tables may appear to be a more advanced topic, and in future tutorials, tables will be used extensively to see the amazing things you can do. As someone learning beginning HTML, tables will be a concept you should learn.

Netscape originated tables, and as such, made the commands for them. To open a table, the <TABLE> command should be used. The other tags you need to know are Table Row <tr> and Table Cell <td>. One key thing to remember is that a <td> is always enclosed in a <tr> which is always enclosed in a <table> tag.

First, let's create a basic table with 4 cells:

First Cell Second Cell
Third Cell Fourth Cell

The code for this table is:

<table border>
<tr>
<td>First Cell</td>
<td>Second Cell</td>
</tr>
<tr>
<td>Third Cell</td>
<td>Fourth Cell</td>
</tr>
</table>

In this code, you can see that there are two <tr> tags, or two rows. Within the first row is the First Cell and Second Cell, each inside a set of <td> tags. In the second row, the Third Cell and Fourth Cell is enclosed in their <td> set of tags. As you see with the <table border> tag, the border was added so we could see it. To see a border of a different size, set the border equal to a number, such as <table border=3>.

Now, let's learn some important attributes of Tables. These are the main attributes of a table: border, width, cellpadding, cellspacing, bgcolor, and background. Border sets the size of the border around the table. Width can be expressed in pixels or %, it specifies the width of the tag it is in, it is available to all of the table tags. Cellpadding determines the padding width between each of the table's cells. Cellspacing specifies the spacing width between each of the table's cells. Bgcolor specifies a background color of the table and background specifies a background image in the table.

An example of using several of these commands is:

<table border="3" width="75%" bgcolor="#CC0000">

Now that we have learned some basic HTML and tables, let's look at a summary of a lot of the useful HTML commands you can use.

Prev Page / List of Tags

 

 
Course Outline
Popular Tutorials

Discuss this page in our Free Discussion Forums
Discussion Forum

 

 

More Certification Tutorials

Network+ Certification Tutorial
Network+, a CompTIA industry neutral networking certification is very popular among networking professionals and companies. Learn the concepts you need for this certification!

[+] MORE CERTIFICATION TUTORIALS

certification online classes courses get certified

More Lifestyle Tutorials

Microsoft Word XP
Learnthat.com's free Microsoft Word 2002 online courses. Learn the basics for using this popular word processing software package.

A+ certification free resources and online courses
All Learnthat.com Courses & Tutorials

All Courses All Courses

Money & Financial courses Money & Financial
Business Tutorials Business Courses New courses & tutorials New Tutorials
Computer Courses Computer Courses New courses & tutorials Software Help
Fun Tutorials Fun Tutorials Web Design Courses Web Design Tutorials
Home & Garden Tutorials Home & Garden Basic Windows Tutorials Windows Tutorials
Lifestyle and Family tutorials Lifestyle Tutorials Submit a Tutorial Submit a Tutorial
A+ Certification

 

Learn: Free Tutorials - LearnthatQuick - Links to Free Tutorials
Understand: Free Technical Definitions - ExplainThat Whitepapers
Use: Certification Section - Discussion Forum

Visit Our Network Sites:

DefineThat.com Technical Defintions Romancetips.com
Free Gift Ideas - GiveThat Planthat.com Free Unique Business Ideas
PublishOnDemand.net - Learn about Print on Demand (POD) - Self Publishing Seekthat.com - Technical Search Engine
ThatNetwork.com  

About Us : Contact Us : Advertise : Privacy Information

© 1998-2003 Learnthat.com