Text Styling Rules

Markup

marquee (HTML4)

blink (HTML4)

u (HTML4)

i (HTML4)

b (HTML4)

center (HTML4)

font (HTML4)

Rules

Rules for Text Styling
# Testing Description Implementation
FAE Firefox
Accessibility
Extension
TEXT.1 Pass/Warning TEXT.1

The font and center elements should not be used for text styling or positioning, instead use structural markup should be used with CSS for styling.

Requirement Notes

  • If the text content is used for section headers the styling elements should be changed to header elements (h1-h6).
  • If the text content is used to style an entire paragraph or other block level element use the CSS color, background-color, font-family and font-size and font-style properties to style the block level element.
  • If the text content is part of a sentence, phrase or word then the replace the styling elements with the em, strong or span elements and use the CSS color, background-color, font-family and font-size and font-style properties to style the inline element.
1.0 1.5
TEXT.2 Pass/Warning TEXT.2

The b element should not be used to bold text content.

Requirement Notes

  • If the bolded content is used for section headers the styling elements should be changed to header elements (h1-h6).
  • If the bolded content is part of a sentence, phrase or word then the replace the b element with the strong element.
1.0 1.5
TEXT.3 Pass/Warning TEXT.3

The i element must not be used to italicize text content.

Requirement Notes

  • If the italicized content is used for section headers the styling elements should be changed to header elements (h1-h6).
  • If the italicized content is part of a sentence, phrase or word then the replace the i element with the em element.
1.0 1.5
TEXT.4 Pass/Warning TEXT.4

The u element must not be used to underline text content.

Requirement Notes

  • The u element is a deprecated feature of HTML 4.0 and was orginally defined to underline text.
  • If the text content being styled by the u element is a section heading, then the heading elements (h1-h6) should be used to replace the u element. If the text content is a paragraph, sentence, phrase or word, then the CSS text-decoration property with a value of underline should be used.
1.0 1.5
TEXT.5 Pass/Fail TEXT.5

The blink and marquee elements must not be used.

Requirement Notes

Blinking and moving text are an accessibility problem for people with photosenstive epilepsy and visual impairments.

1.0 1.5