Showing posts with label Table. Show all posts
Showing posts with label Table. Show all posts

Thursday, 28 November 2013

Using Table as layout in HTML 5

The HTML5 specification still recommends that you don't use tables for layout, but if you do, you should differentiate those tables from tables that are used for tabular data.

Features to Define Your Table as Layout or Non-Layout

Feature of Table Is a Layout Table?
<table role="presentation"> It probably is a layout table
<table border="0"> It probably is a layout table
<table cellpadding="0"> It probably is a layout table
<table cellspacing="0"> It probably is a layout table
Use of the CAPTION, THEAD, or TH elements It probably is not a layout table
Use of the headers and scope attributes on the TH element It probably is not a layout table
<table border=""> It probably is not a layout table
<table border="1"> It probably is not a layout table
Visible borders set with CSS It probably is not a layout table

Wednesday, 18 April 2012

Adding a table in GMail

Create the table in Word, apply all the styles, copy and paste into the GMail message.

Even though you can do it in Excel, the borders, the alignment and font styles, etc are gone when paste into the message.