{"id":1455,"date":"2012-02-20T14:37:59","date_gmt":"2012-02-20T21:37:59","guid":{"rendered":"http:\/\/wip2.websitespot.com\/?p=222"},"modified":"2012-02-20T14:37:59","modified_gmt":"2012-02-20T21:37:59","slug":"making-website-tables","status":"publish","type":"post","link":"https:\/\/www.websitespot.com\/blog\/making-website-tables\/","title":{"rendered":"Making Website Tables"},"content":{"rendered":"<p>Making website tables is a necessary evil in web design. Search engines aren't too fond of tables but you need them so that you can arrange your website so that it's easy to follow.<\/p>\n<p>This web page is made up of a table that includes 4 cells. One cell is for the header, one for the navigation, once for the body, one for the footer and one for the sponsors section. Without having these cells it would be difficult to arrange the items to make this site appealing. With the creation of CSS you can do away with much of the code but tables will still be needed.<\/p>\n<h3>Common Table HTML Tags<\/h3>\n<p>The nice thing about HTML editors is that you won't need to manually create tables through coding but it's important to recognize what you're looking at.<\/p>\n<p>The &lt;table&gt; tag opens up the tag to insert a table. The &lt;tr&gt; tag is represents a row and the &lt;td&gt; tag represents the cells of a table.<\/p>\n<p>For demonstration purposes I'm going to show you a table below but I'm not going to hide the borders. Then just below that I'll hide the borders so that you can see how a website visitor would view the table.<\/p>\n<p><span style=\"color: #990000;\">&lt;table&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;Bill&lt;\/td&gt;<br \/>\n&lt;td&gt;Lisa&lt;\/td&gt;<br \/>\n&lt;td&gt;Margaret&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;Mary&lt;\/td&gt;<br \/>\n&lt;td&gt;Dave&lt;\/td&gt;<br \/>\n&lt;td&gt;Michael&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;Morgan&lt;\/td&gt;<br \/>\n&lt;td&gt;Sean&lt;\/td&gt;<br \/>\n&lt;td&gt;Sara&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;\/table&gt;<\/span><\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>As you can see it's pretty straightforward, as I mentioned though, most HTML editors have the functionality to simply enter the number of rows that you want and the number of columns and the editor will insert the table automatically.<\/p>\n<h2>Additional Table HTML Tags<\/h2>\n<p>Below I'll include a snippet of code and then a working version of the code to show you how to customize tables for features such as the border, width, color, etc. You'll reuse all of the same code, the only tag that you'll change is the opening &lt;table&gt; tag.<\/p>\n<h3>Table Border<\/h3>\n<p>&lt;table <strong>border=\"4\"&gt;<\/strong><\/p>\n<table border=\"4\">\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>Border Color<\/h3>\n<p>&lt;table border=\"4\"<strong> bordercolor=\"blue\"<\/strong>&gt;<\/p>\n<table border=\"4\">\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&lt;table border=\"1\" bordercolor=\"blue\" style=\"border-collapse: collapse\"&gt;<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Table Width Percentage<\/h3>\n<p>&lt;table <strong>width=\"100%\" <\/strong>border=\"1\"&gt;<\/p>\n<table border=\"1\" width=\"100%\">\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Table Width Fixed<\/h3>\n<p>&lt;table <strong>width=\"500\" <\/strong>border=\"1\"&gt;<\/p>\n<table border=\"1\" width=\"500\">\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Collapse Table Border<\/h3>\n<p>&lt;table width=\"500\" border=\"1\" <strong>style=\"border-collapse: collapse\"<\/strong>&gt;<\/p>\n<table border=\"1\" width=\"500\">\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Remove Table Border<\/h3>\n<p>&lt;table width=\"500\" <strong>border=\"0\"<\/strong>&gt;<\/p>\n<table border=\"0\" width=\"500\">\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Table Height<\/h3>\n<p>&lt;table <strong>height=\"150\" <\/strong>width=\"500\" border=\"1\"&gt;<\/p>\n<table border=\"1\" width=\"500\">\n<tbody>\n<tr>\n<td>Bill<\/td>\n<td>Lisa<\/td>\n<td>Margaret<\/td>\n<\/tr>\n<tr>\n<td>Mary<\/td>\n<td>Dave<\/td>\n<td>Michael<\/td>\n<\/tr>\n<tr>\n<td>Morgan<\/td>\n<td>Sean<\/td>\n<td>Sara<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Webmaster Forum<\/h3>\n<p>I invite you to visit my <a title=\"Webmaster Forum\" href=\"http:\/\/www.justwebtalk.com\">webmaster forum<\/a>, it's a great place to discuss websites and ask questions to fellow webmasters regarding topics that you may still have questions on.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Making website tables is a necessary evil in web design. Search engines aren't too fond of tables but you need them so that you can arrange your website so that it's easy to follow. This web page is made up of a table that includes 4 cells. One cell is for the header, one for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[472],"tags":[],"class_list":["post-1455","post","type-post","status-publish","format-standard","hentry","category-html-tips"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/posts\/1455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/comments?post=1455"}],"version-history":[{"count":0,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/posts\/1455\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/media?parent=1455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/categories?post=1455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.websitespot.com\/blog\/wp-json\/wp\/v2\/tags?post=1455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}