[rfc-i] <tt> vs HTML5

Julian Reschke julian.reschke at gmx.de
Sat Feb 20 02:48:36 PST 2016


> 9.63.  <tt>
>    This element is directly rendered as its HTML counterpart.

but <https://www.w3.org/TR/html5/obsolete.html#non-conforming-features>:

> basefont
> big
> blink
> center
> font
> marquee
> multicol
> nobr
> spacer
> tt
>     Use appropriate elements or CSS instead.
>     Where the tt element would have been used for marking up keyboard input, consider the kbd element; for variables, consider the var element; for computer code, consider the code element; and for computer output, consider the samp element.
>     Similarly, if the big element is being used to denote a heading, consider using the h1 element; if it is being used for marking up important passages, consider the strong element; and if it is being used for highlighting text for reference purposes, consider the mark element.
>     See also the text-level semantics usage summary for more suggestions with examples.

So that's a requirement to produce invalid HTML...

Best regards, Julian

More information about the rfc-interest mailing list