DTD W3C · 1.0 (second edition)

XHTML 1.0 Strict

The Strict document type of XHTML 1.0, for pages and content exports written as XML.

About

XHTML 1.0 Strict is HTML 4 written as XML, without presentational elements such as font and center.

Good to know

  • The DTD is applied to the document as given. Named entities such as   or © are only known when the DTD is read while parsing, which the browser cannot do for a DOCTYPE that points at w3.org. Use character references ( , ©) or the five XML entities.

Files

4 files · 53.9 KB

The validator loads all of these with their folder structure, so includes and imports resolve as published.

Example document

page.html · 418 B · valid against this schema

In CI and from code

The same schema by its name, xhtml-1.0-strict, through the API.

npx @xmlvalid/cli validate "**/*.xml" --schema xhtml-1.0-strict
- uses: xmlvalid/validate-action@v1
  with:
    files: "**/*.xml"
    schema: xhtml-1.0-strict
    api-key: ${{ secrets.XMLVALID_API_KEY }}
curl https://xmlvalid.com/api/v1/validations \
  -H "Authorization: Bearer $XMLVALID_API_KEY" \
  -F document={{ $schema->example ?? 'document.xml' }} -F schema=xhtml-1.0-strict

Free accounts get 100 API validations a month. On Pro, a URL monitor can check a published document against this schema every hour and email you when it breaks. More CI setups