Questions tagged [xhtml-1.0-strict]

XHTML 1.0 Strict is a legacy version of HTML that was formulated as the XML equivalent to strict HTML 4.01. It includes only the elements and attributes that had not been marked deprecated in the HTML 4.01 specification.

Along with XHTML 1.0 Strict there were also XHTML 1.0 Transitional and Frameset versions.

XHTML was a name formerly used for a casting of HTML in XML syntax, to use with XML parsers.

http://en.wikipedia.org/wiki/Xhtml

XHTML 1.0 Strict does not include presentational tags (like <font> or <b>) or the <script> tag, meaning that all other languages other than HTML or XML (that are allowed) must be declared as either links to files (<link type="text/css" href="file.css" />, <script type="text/javascript" src="file.js" />) or declared within the file as valid tags (<style type="text/css">). Currently, JavaScript must be referenced using the src attribute of the <script> tag, you cannot type it directly onto your XHTML 1.0 Strict page.

XHTML 1.0 Strict has certain requirements that all pages with its doctype must meet:

  1. The doctype <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ensures that the web browser knows that the document type is XHTML 1.0 Strict.

  2. The character encoding can be added in two ways: 1. <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> in the <head> element, or 2. <?xml version="1.0" encoding="utf-8"?> above the doctype. This ensures that odd characters, for example π,  or 煸 are correctly displayed.

185 questions
0
votes
0 answers

XHTML element not allowed as child of XHTML element body in this context

Although this page seems to load file, I get an error from NU HTML checker. Not sure how to clear the error, because it seems everything in the body would of course be a child of the XHTML body element.
0
votes
1 answer

libxslt's applyStylesheet() produces broken XHTML

I've got an XML data file that I'm applying an XSL stylesheet to, using libxslt in Python. Things are almost perfect, but every instance of
in the XSL file is being turned into
in the output from unicode(applyStylesheet()). This is…
Isaac
  • 10,668
  • 5
  • 59
  • 68
0
votes
2 answers

xhtml custom attributes definition

If a defined custom attributes to input fields in an XHTML document are these then valid attributes? As if i validate the xhtml document with w3c validator then the validator marks them as invalid attributes. How may I validate then? I have seen…
user160820
  • 91
  • 3
0
votes
1 answer

Meta tag 'there is no attribute “class” ' and 'there is no attribute “property” 'and other attribute error

I tried to validate my website and I get the following error : there is no attribute "class"
0
votes
1 answer

I have problems at xhtml strict 1.0 validation

How should I fix these problems at the validation? Error Line 15, Column 10: there is no attribute "id" nav id="kipozicional" Error Line 15, Column 24: element "nav" undefined nav id="kipozicional" Error Line 18, Column 8: element "header"…
peter.s
  • 67
  • 3
0
votes
2 answers