Tables

Overview

Corporate web standards

  • Tables must only be used for tabular data. They must not be used for layout purposes
  • Tables should have at least two columns. If you have a table with only one column, replace it with a list
  • Tables must have headings

Use the Sitecore Table Wizard to ensure the correct HTML code is generated.

All tables should have a similar structure to this in the HTML view:

<table>
      <thead>
            <th>Name</th>
            <th>Role</th>
            <th>Phone</th>
      </thead>
      <tbody>
          <tr>
               <td>Amy</td>
               <td>Web Manager</td>
               <td>1234</td>
          </tr>
          <tr>
               <td>Ben</td>
               <td>Web Editor</td>
               <td>5678</td>
          </tr>
       </tbody>
</table>

Using this structure automatically styles up the header row with a dark background and white text.

Don't copy and paste tables into Sitecore. They won't display properly.
Example
Name Role Phone
Amy Web Manager 1234
Ben Web Editor 5678
WCMS use
MVC.net use
Code
Version and status
  • current version
  • Concept