I oftentimes find it really handy to be able to insert a table into the Web 2.0 tool I am using. Not all web tools have the ability to insert a table so knowing how to write the table in HTML can really help you in many instances. You can use this in Google Sites, WordPress, Quia and many other tools that allow you to edit the source code.
Other web toolbars may have a symbol with a less than greater than symbol (< >) to indicate the HTML editor. The toolbar or menu options may also say “source” to allow you to switch to the HTML editor.
These are the HTML tags you want to memorize. Create a table
The slash ends the tag. You start building your table with the tag
I usually will start my table with
Build your table structure before entering in information. It can be tricky to keep track of the rows and columns. I prefer to build just the tags and then enter the information in later.
I would prefer to put my information into the table in the “visual” mode instead of the HTML editor. Entering in a few letters into where you will put your content allows you to make the table in the HTML editor but not have to try to figure out where the rows and columns are when creating your content.
|textfor each column. The word text helps you to remember where the text of your table will go. This is a place holder. For your first row I recommend using your header column as your placeholder text. For example||First Name||Last Name||Address|
|. Suggestion to replace the words “text” with what each column is for.|
Copy and Paste
Once you have your row defined, highlight it and copy and paste the code for the number of rows you want.
Switch Out of HTML Editor
Once you have set up the structure of your HTML table go back to the regular editor.
Notice above what the table will look like when I switch from the HTML editor to the visual editor. Having placeholder text allows me to more clearly see that I set up my table correctly.
Edit Placeholder Text
Now that the table looks the way you want it to be, insert the information into the table you want.
This was intended to help you get started with writing HTML tables. You can get a lot fancier by merging cells, coloring the background, having different widths for each column, etc…. Doing a Google search for “HTML tables” can help you find the adjustments to your code to help you get fancy.
%d bloggers like this: