Rule 10.1.1

Summary

Check whether forbidden tags (<basefont>, <blink>, <center>, <font>, <marquee>, <s>, <strike>, <tt>, <big>) are used in the page.

Business description

Criterion

10.1

Test

10.1.1

Description

Dans chaque page web, les balises servant à la présentation de l’information ne doivent pas être présentes dans le code source généré des pages. Cette règle est-elle respectée ?

Level

A

Technical description

Scope

Page

Decision level

Decidable

Algorithm

Selection

Set1

All the presentation tags:

  • <basefont>
  • <blink>
  • <center>
  • <font>
  • <marquee>
  • <s>
  • <strike>
  • <tt>
  • <big>

Used nomenclature : DeprecatedRepresentationTagsV3

Process

Test1

For each element of Set1, raise a MessageA

Message A : Presentation tag found
  • code: PresentationTagFound
  • status: Failed
  • parameter: tag name
  • present in source: yes

Analysis

Passed

No deprecated tag found on the page (Set1 is empty).

Failed

the document contains deprecated tags (Set1 is not empty)

Notes

This rule may be tested for each kind of doctype. The current implementation only tests the forbidden tags specified by w3c for HTML

Files