Help:Markup validation

The W3C Markup Validation Service lets editors check web pages for conformance to HTML and XHTML standards. It is helpful for catching minor problems such as duplicate section names or citation IDs. Although most major browsers will tolerate many of the errors, and will display a document successfully even if it contains errors, they may misbehave on documents that contain the errors: for example, they may go to the wrong section or citation if you click the mouse on a wikilink. Checking that a page contains valid HTML can thus fix these minor glitches while also increasing portability to unusual browsers.

To check the HTML for a WikiQueer article XYZ, visit the service's home page and enter the text " ".

Common diagnostics and how to fix them
This section gives examples of diagnostics generated by the markup validation service, and suggests possible fixes. Diagnostics are by line and column of the generated HTML for the page. It may be helpful to obtain the HTML in order to understand the diagnostic. For example, if you using the Firefox browser, you can type control-U to see the HTML.

ID already defined

 * Deletion icon.svg Line 630, Column 88: ID "CITEREFBarker2008" already defined
 * An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
 * An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

This diagnostic occurs if an article contains multiple invocations of the citation template with the same author and year; the above diagnostic was prompted by an article that cited two different documents, both written by Barker in 2008. Disambiguate the citations by putting letters after the years (e.g., 2008a, 2008b), or by using the ref parameter of. If this problem occurs often, and if you don't need internal wikilinks to citations, consider switching to the cite book or vcite book template families, which do not have this problem.


 * Deletion icon.svg Line 93, Column 231: ID "ref_1" already defined
 * An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).
 * An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).

This similar diagnostic occurs if an article contains multiple invocations of ref with the same ID, for example, two instances of " ". To fix the problem, use different IDs.

Invalid character at start of identifier

 * Deletion icon.svg Line 298, Column 220: value of attribute "id" invalid: "." cannot start a name


 * It is possible that you violated the naming convention for this attribute. For example,  and   attributes must begin with a letter, not a digit.
 * It is possible that you violated the naming convention for this attribute. For example,  and   attributes must begin with a letter, not a digit.

This diagnostic occurs if an anchor starts with a character that is not a letter. A typical case is if a section header begins with a non-letter. The above diagnostic was prompted by the Wiki markup ' '. This sort of problem can be fixed by rewording the header, for example, it with ' '.

Missing alt text

 * Deletion icon.svg Line 135, Column 108: required attribute "alt" not specified


 * The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element....
 * The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element....

This diagnostic can result from use of the EasyTimeline extension, which does not support accessibility and does not generate alternative text for visually impaired readers. Such a problem can be fixed by redoing the timeline as text, as an image, or as an image map.

CSS validation
The W3C also has a CSS validator, but this is less of an issue when editing WikiQueer pages, as CSS is an option and CSS validation errors typically are due to problems with skins, not problems in individual pages.