Help:Lint errors/self-closed-tag/en

Pages on this list contain invalid self-closed HTML tags, such as, , , ,. (Valid tags defined in the HTML5 specification, like, , , do not cause this error.) Some MediaWiki XML tags are also valid when self-closed, like $1 and $2, as well as some extension tags like $3 and $4. The behavior of these invalid tags changes in (deployed on Wikimedia 2–4 June 2020), to be consistent with the HTML5 specification, so their use in wikitext is deprecated. See T134423 for more details.

Pages are also automatically placed on this list by malformed tags like $1, which should usually be changed to $2 (remove the final slash); or by malformed constructs like $3, which should usually be changed to $4 (move the slash from end to beginning of the closing tag).

Where an invalid $1 or $2 (with no attributes such as $3 or $4) is used as a spacer to prevent wikicode from rendering in example code, like $5, either replace $1 with $6 for valid code that achieves the same effect, or use a template-linking template such as $7 or $8, as in $9.

Some templates include an anchor $1 parameter.

If a given page on this list does not appear to have any invalid self-closed tags, it may be transcluding a page or template that does.

Example

 * Invalid markup
 * abc


 * Valid markup
 * abc

Tools
The following tools can help fix invalid self-closed HTML tags:
 * WPCleaner: see instructions on how to use WPCleaner for fixing errors detected by Linter. Self closed tags may be reported by WPCleaner as part of CheckWiki error #2.