The tt element is obsolete

If you check a web page that contains the tt HTML tag with the W3C Nu Html Checker, which validates HTML 5 code, you will see the following message:

Error The tt element is obsolete". Use CSS instead.

The CSS alternative listed at Presentational elements and attributes is as follows:

Where the tt element would have been used for marking up keyboard input, consider the kbd element; for variables, consider the code element; and for computer output, consider the samp element.


TechRabbit ad 300x250

Justdeals Daily Electronics Deals1x1 px