Skip to main content Skip to main navigation
Choose a Region

Select Your Region

Where can we help you today?

WCAG Guidelines

* * * For Content Web Team ONLY. * * *


Nested Headings

Page headings and subheadings should always be used hierarchically. Do not skip heading levels. 

Example:

<h1>

   <h2>

         <h3>

         <h3>

   <h2>

         <h3>

               <h4>

 


Table headers

1.11 All data tables should correctly define header rows and column headers

General standard table structure:

table structure

Examples:

A. Regular table with heading (Using both <thead> and <th> tags)

Regular table header code

  Monthly Usage Fixed Price Total
November Monthly Usage 500 Ccf Fixed Price $0.10250 $51.25
December Monthly Usage 500 Ccf Fixed Price $0.10250 $51.25
January Monthly Usage 500 Ccf Fixed Price $0.10250 $51.25
February Monthly Usage 500 Ccf Fixed Price $0.10250 $51.25
      $205.00

 

B. Table without heading (Using <th> to replace the first <td> tag only) - This variation keeps the background color the same on the first row and the rows after. 

Tweak the first cell with <th style="font-weight: 400;">$99,342</th> to keep the font-weight the same as others. 

Example 1:

Regular table with no heading code

Amount financed $99,342
Project cost $180,870
Incentive $81,528
Monthly savings $4,668

Example 2: 

light bulb

Lorem ipsums

water faucet

Lorem ipsums

shower head

Lorem ipsums


Deprecated tags

8.1 Do not use deprecated tags or attributes

Don't New HTML5 Code
<font color="red">Red Font</font> <span style="color: red;">Red Font</span>
<center>Centering text</center> <span style="text-align:center">Centering text</span>
align="center" within an <img> tag Remove center tag within the <img> tag and add styling outside of the <img> tag
<ul type="disc">Unordered List</ul> <ul>Unordered List</ul>  - No need to define list-style-type for Unordered List
<ol type="a">Ordered List for a.b.c.</ol>

<ol style="list-style-type: lower-alpha;">Order List for a.b.c.</ol>

<ol>Ordered List</ol> - No need to define list-style-type for number ordered list, 1.2.3...

<u>Underline</u> <span style="text-decoration: underline;">Underline</span>
<b>bold</b> <strong>bold</strong>
<i>italic</i> <em>italic</em>

Examples:


Red Font


Center text


Center image

clock icon

Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

phone icon

Title
Lorem ipsum dolor sit amet, consectetur adipiscing elit.

lock icon

Title
Lorem ipsum dolor sit amet, consectetur adipiscing elitl.


  • Unordered List 1
  • Unordered List 2
  • Unordered List 3
    • Sub list 1
    • Sub list 2

  1. Ordered List number 1
  2. Ordered List number 2
  3. Ordered List number 3

  1. Ordered List letter a
  2. Ordered List letter b

Underline


bold


italic



Img Alt Attribute

3.1 All images should specify an "alt" attribute
3.3 Image ALT attribute should not be empty, except for on known, decorative images

For images, add alt attribute in <img> tags. 

img alt code

solar panels


Form Assembly

  1. Don't use the fieldset for grouping a section, use Group instead. Fieldset creates the <table> code that doesn't have <thead> or <th> tags.
    form group

  2. Don't use the bold, italic, underline functions within the form. It creates <b>, <i> and <u> tags.
    form style

iFrame Title

If using frames (or iframes), make sure they are titled. 

iframe title attribute usage