A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Lint_errors/missing-end-tag below:

Help:Lint errors/missing-end-tag - MediaWiki

The missing-end-tag error is when a ‎<tag> is opened, but not closed. To fix it, close the opened tag.

Example 1:

In example 1, the span needs to be closed by adding ‎</span> at the end:

Example 2:

Note that this example may be potentially confusing since there is both an open and closing span tag. But, note that this is wikitext, not HTML. As such, when this wikitext is processed, the first line gets wrapped in a p-tag, and the 3rd and 4th lines get wrapped in a second p-tag. So, the "opening" and "closing" span tags are split between two paragraph tags. So, in the first paragraph, the span tag is indeed unclosed!

Example 3:

<span>foo
<p>bar</p>
boo
</span>

As with example 2, this is also wikitext, not HTML. So, the first line gets wrapped in a p-tag within which the span tag is unclosed.

Examples 2 and 3 not only causes the missing end linter warning but also the stripped tag warning. Solutions for 2 and 3 depend on the exact required output. The simplest is to change the ‎<span> into a ‎<div>.

The confusing message is a result of ‎<p>...‎</p> tags being automatically generated by the parser for each paragraph of text.

Example 4:

In example 4, the HTML tag is a result of parsing wikitext syntax for italics. It needs to be closed by adding '' at the end.

The following tools can help fix missing end tags:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4