Help:Lint errors/obsolete-tag/uk

The obsolete-tag error is the result of deprecated HTML elements.

Since it is unclear to us at this time how far we want to push this goal of HTML5 compliance, this category is marked low priority. Some wikis might choose to not address this right away. Other wikis might want to get ahead and want to be HTML5 compliant. It is possible that some wikis might write bots to address this. So, please use your judgement and wiki-specific policies to guide you in how much effort you want to spend on this. If, in the future, there is greater clarity about pursuing this more aggressively, we will reflect that by updating the severity of this linter issue appropriately.

Currently, the deprecated elements with their alternatives are:

Font sizes
Values above 7 are equivalent to 7. Sizes with percent or em are approximate matches and may depend slightly on browser and other variables.

Font sizes prefixed by plus or hyphen, e.g.  or , are equivalent to 3 plus or minus that number.

Rationale
Mediawiki currently whitelists these elements, and they tend to be output the same way as input. This means that when browser vendors decide to remove these they will simply display as regular undecorated text. Examples of some "popular" html tags that had visual effects and have been removed from major browsers include and. A further problem is that different browser vendors may remove them independently so editors or readers may have inconsistent views of the same page, leading to confusion.

Such removal of styling or unique treatment of html tags by browser vendors can happen at any time and without prior notice.

Helpful hints
accepts numeric font colors without the standard pound sign prefix. However, with, the pound sign before numeric font colors is mandatory: accepts some nonstandard font color names such as burntorange and vermillion, which are not on the list of 16 HTML colors or the list of 124 X11 colors. The replacement  markup recognizes only color names on these lists.

accepts 4-digit and 5-digit hexadecimal codes, which need 00 and 0, respectively, appended in  markup. Hexadecimal codes with more than 6 digits need to be trimmed to the first 6 digits.

Tools
The following tools can help fix obsolete HTML tags:


 * WPCleaner: see instructions on how to use WPCleaner for fixing errors detected by Linter. Obsolete tags may be reported by WPCleaner as part of CheckWiki error #541.