How to Make an HTML Table

Wynn Murray
If you are a blogger or have your own personal Web site, you'll often want to put some facts or figures out there to complement what you write. A good way to do this is to make an HTML table.

If you have a list of data you want converted into an HTML table, this is how to do it.

First, list all the data you want included in the HTML table in a text document, approximately in rows and columns. At the beginning of the document, put and at the end of the document, put

Then, at every spot where you want a new row to begin, put

In every row, between data items of that row, insert

That's the basics. If you copy all this code and paste it into an html file, your table should pop up.

If you want a header row, or any data cell that stretches across several columns, this is what you do: find the tag immediately preceding that header. Then replace it with for instance, if you want that cell to stretch across five columns. Whatever number you put after colspan, that is the number of columns the cell will stretch across.

It might be helpful to download some free html editor software so you can see how these changes look while you make them. Adobe Dreamweaver is a type of software you have to pay for, but it is excellent for this sort of thing.

You can also change the size of the table by changing the tag at the beginning of the HTML code. For instance, if you replace with then your HTML table will be 500 pixels wide and 350 pixels tall.

Those are the basics for making an HTML table. Even if you aren't fluent in HTML, you should be able to create an HTML table by following these steps. An HTML table can be a useful addition to your blog post or personal Web site and making one is definitely a useful skill to have. It's also not too hard if you follow a couple of simple steps.

Published by Wynn Murray

I am an aspiring reporter who loves writing and exploring the world. I especially like writing about current events, health, finance, and beauty.  View profile

To comment, please sign in to your Yahoo! account, or sign up for a new account.