Rule 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.

Description

Best Practice Type: Pass/Warning

  • 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.

Markup

font (HTML4)

center (HTML4)

Associated Accessibility Guidelines and Standards

Guideline or
Standard
Requirement Priority Test
Type
IITAA 1.2 Use appropriate markup to convey document structure. Required Violation
Section 508 none none
WCAG 1.0 11.2 Avoid deprecated features of W3C technologies. Required Violation
WCAG 2.0 4.1.1 Parsing: In content implemented using markup languages, elements have complete start and end tags, elements are nested according to their specifications, elements do not contain duplicate attributes, and any IDs are unique, except where the specifications allow these features. Required Violation

Examples

Evaluation Techniues

none

Testsuite Tests

none