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

Страницы в этом списке содержат некорректные самозакрывающиеся HTML-тэги, такие как, , , ,. (Корректные тэги, определённые в спецификации HTML5, такие как, , , не вызывают эту ошибку.) 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. См. T134423 для подробностей.

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

Where an invalid or  (with no attributes such as   or  ) is used as a spacer to prevent wikicode from rendering in example code, like , either replace  with  for valid code that achieves the same effect, or use a template-linking template such as  or , as in.

Some templates include an anchor id parameter. When fixing self-closed  and   tags that appear immediately before such templates, consider moving the anchor text from the HTML tag to inside the template and removing the now-unneeded tag.

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.

Пример

 * Некорректная разметка


 * Корректная разметка

Инструменты
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.

См. также

 * Category:Pages using invalid self-closed HTML tags‎
 * T134423