XHTML: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Pat Palmer
(adding a little more info)
imported>Pat Palmer
mNo edit summary
Line 1: Line 1:
{{subpages}}
{{subpages}}
The '''Extensible HyperText Markup Language''' (XHTML) is form of web page markup language which is similar to [[HTML]] but adheres to stricter syntax rules, being based on [[XML]]. The specifications for XHTML are maintained by the [[W3C]], who describe XHTML 1.0 as "a reformulation of HTML 4 as an XML 1.0 application".  Well-formed XHTML 1.0 can be parsed accurately by Javascript, allowing programming operations on the HTML Document Object Model (DOM), and as such, it was a bit step forward over the prior versions of HTML, which could not be parsed as reliably in code.
The '''Extensible HyperText Markup Language''' (XHTML) is form of web page markup language which is similar to [[HTML]] but adheres to stricter syntax rules, being based on [[XML]]. The specifications for XHTML are maintained by the [[W3C]], who describe XHTML 1.0 as "a reformulation of HTML 4 as an XML 1.0 application".  Well-formed XHTML 1.0 can be parsed accurately by Javascript, allowing programming operations on the HTML Document Object Model (DOM), and as such, it represented a step forward as compared with prior versions of HTML, which could not be parsed as reliably in code.


The semantics of the XHTML 1.0 elements and their attributes are not defined separately from those for HTML, being the same as those in the W3C Recommendation for [[HTML]] 4.This makes XHTML compatible with existing HTML user agents, if certain guidelines are followed.
The semantics of the XHTML 1.0 elements and their attributes are not defined separately from those for HTML, being the same as those in the W3C Recommendation for [[HTML]] 4.This makes XHTML compatible with existing HTML user agents, if certain guidelines are followed.


There are two XHTML versions, 1.0 and 1.1.  The latter, version 1.1, was little used.  As of 2011, there seems to be a trend to replace XHTML 1.0 in favor of HTML5, though many unresolved issues remain and thus XHTML 1.0 is still in wide use.
There are two XHTML versions, 1.0 and 1.1.  The latter, version 1.1, was little used.  As of 2011, there seems to be a trend to replace XHTML 1.0 in favor of HTML5, though many unresolved issues remain and thus XHTML 1.0 is still in wide use.

Revision as of 15:37, 11 May 2011

This article is a stub and thus not approved.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
This editable Main Article is under development and subject to a disclaimer.

The Extensible HyperText Markup Language (XHTML) is form of web page markup language which is similar to HTML but adheres to stricter syntax rules, being based on XML. The specifications for XHTML are maintained by the W3C, who describe XHTML 1.0 as "a reformulation of HTML 4 as an XML 1.0 application". Well-formed XHTML 1.0 can be parsed accurately by Javascript, allowing programming operations on the HTML Document Object Model (DOM), and as such, it represented a step forward as compared with prior versions of HTML, which could not be parsed as reliably in code.

The semantics of the XHTML 1.0 elements and their attributes are not defined separately from those for HTML, being the same as those in the W3C Recommendation for HTML 4.This makes XHTML compatible with existing HTML user agents, if certain guidelines are followed.

There are two XHTML versions, 1.0 and 1.1. The latter, version 1.1, was little used. As of 2011, there seems to be a trend to replace XHTML 1.0 in favor of HTML5, though many unresolved issues remain and thus XHTML 1.0 is still in wide use.