301: Adding a Table to your WebsiteWritten By: Tim Sisson
Experience Level: Intermediate
Articles labeled as Intermediate are those that require tasks to be completed that often require you have an understanding / skill of a more advanced topic beforehand. Intermediate articles may also be tasks that require more than just 2 - 3 minutes of your time, such as setting up an online store. Our Technical Support Department may be able to directly assist, however it is on a case by case basis.
|
|
|
|
A great way to organize your content on your website is to use tables. If you have ever used a word processing program like MS Word or Open Office, tables offer the same style. Before completing this section make sure you have completed the course on Web Design Basics. To add a table to your website, the basic HTML code will look like this: <table> which would display on your webspage like this:
Creating a table with HTML?So let's get a better understanding of the code, first we have the tags to start and close the table: <table> Now we will add the first row. A row is shown with a <tr> tag: <table> Next, the cells will be added. A cell is shown with a <td> tag: <tr> Finally we will close that row, and then start the next row: <table> You can repeat this to have as many rows and columns as you need. Adding a border to your HTML tableIn the example above we created a table with no borders, but you can create a table with borders as well. Using the above example: <table> All that needs to be added is in the first tag, the border attribute can be specified as border="1": <table border ="1"> Which would display:
There are other attributes you can add to a table as well such as cellspacing and cellpadding to increase the space between the cells and around the table, however this is meant to be an introduction to tables. |
Comments
Need more Help?
| Search
|
Current Customers
|
||||||||
Ask the Community! Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff. |
Not a Customer? |

Support Center Login
