W3C Validation

RELATED CONTENT

Overview

The W3C Validation check identifies any W3C compliance issues with a page. This can assist in determining the validity of web documents. Most web documents are written using markup languages, such as HTML or XHTML. These languages are defined by technical specifications, which usually include a machine-readable formal grammar and vocabulary. The act of checking a document against these constraints is called validation, and this is what W3C Validate does. 

Validating web documents is an important step that can dramatically help with improving and ensuring presentation quality. This validator can process documents written in most markup languages. Supported document types include the following:

  • HTML5 (when HTML5 Schema for the WYSIWYG Editor is in use)
  • HTML (through HTML 4.01)
  • XHTML (1.0 and 1.1)
  • MathML
  • SMIL
  • SVG (1.0 and 1.1, including the mobile profiles)

The W3C Valid can also validate web documents written with an SGML or XML DTD, provided they use a proper document type declaration. This validator is also an HTML validating system conforming to International Standard ISO/IEC 15445—HyperText Markup Language, and International Standard ISO 8879—Standard Generalized Markup Language (SGML), which means that in addition to W3C recommendations, it can validate according to these ISO standards.

W3C Validation can be run from the Page Check modal.

W3C Valid Button in Page Check Modal

Additionally, W3C Validation can be performed from the Final Check modal. Depending upon the configuration, it may run automatically during Final Check; otherwise, it can be selected to run on its own or as part of the Run All option.

W3C Valid Button in Final Check Modal

Performing a W3C Validation

Users can run W3C Validation from several places in OU Campus. The first method is from the Pages list view:

  1. Navigate to the Pages list view by selecting Content > Pages from the global navigation bar.
  2. Hover on the target page's row and select Page Check from the Review menu to display the Page Check modal. Alternatively, select Publish from the Publish menu to display the Final Check modal.
  3. Click the W3C Valid button to run the check. After the check has finished, users can click Show Results to display the W3C Validation Results modal.

Users can also perform a W3C Validation from the Page Actions toolbar:

  1. Navigate to the Pages list view by selecting Content > Pages from the global navigation bar and select the page to be edited. Additionally, selecting the page from the File Navigation sidebar also displays a view with the Page Actions toolbar included.
  2. Click the Page Check button in the Page Actions toolbar to display the Page Check modal. Alternatively, click the Publish button to display the Final Check modal.
  3. Click the W3C Valid button to run the check. After the check has finished, users can click Show Results to display the W3C Validation Results modal.

W3C Validation Results

If the W3C Validation check has completed and there are errors on the page, users can click Show Results under the button to display the W3C Validation Results modal. This modal includes the following elements:

  • Results: This field provides a summary of the W3C validation test.
  • Checked By: The tool used to perform the validation test.
  • Doctype: The document type of the file being tested.
  • Character Set: The syntax used in the file being tested.
  • Validation Output: Provides users with a summary of entries found in the content that either contain w3c errors or warnings.
  • List View: Provides users with a list view of each error with relevant attached information. 

W3C Validation Results Modal

Each item, whether the test identified error items or warning items, will display in the W3C Validation Results modal. Each item identifies a line of code, along with a helper message indicating the problem and a preview of the problem content. In some instances, a solution or additional helper text will be displayed with the item as well.