Skip to main content

Validation

  • Chapter
  • First Online:
  • 2066 Accesses

Abstract

The various computer languages used on the Web, including but not limited to (X)HTML, CSS, RDF, and RSS, provide structure, style, metadata, semantics, and other document features. Similar to natural languages, they have their own grammar, vocabulary, and syntax that need to be followed. However, just like the grammar, structural, or spelling errors that occur in documents written in natural languages, web documents might also have errors in them. Validation is the task of checking the source code of web documents against a DTD or schema. It contributes to error-free, clean code and increases overall web page quality.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    Even if there are tools that represent the hierarchy with vertical dotted lines between the opening and closing tag pairs (e.g., Notepad++).

  2. 2.

    The RDFa notation can be perfectly validated in XHTML documents. As of 2011, the Validator still does not recognize RDFa in HTML5, however, and gives errors.

  3. 3.

    The XML declaration and all namespace declarations provided in XHTML5 result in an error message, even if they are valid. Moreover, the validation result of XHTML5 documents states HTML5 instead of XHTML5.

  4. 4.

    Relative to the Ant build file.

  5. 5.

    content:encoded only

  6. 6.

    Naturally, you can select the profile “CSS level 3” from the drop-down list under “More Options.” However, you need to construct a URI manually if you want to provide a validation link for your CSS3 button, because the default code assumes CSS 2.1.

  7. 7.

    The basic tool is Java based and requires Java 1.5 or later.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Leslie F. Sikos, Ph.D.

About this chapter

Cite this chapter

Sikos, L.F. (2014). Validation. In: Web Standards. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0883-0_14

Download citation

Publish with us

Policies and ethics