Extending XHTML
Extending XHTML
This page uses very little HTML as defined in either a conventional or custom DTD.
It doesn't even have a <body> element.
No <head> element either.
Not even an <html> element.
This text is in a section element.
The markup extends what would ordinarily be recognised as standard XHTML.
Markup can be invented in this way to suit specific purposes.
It is XML used in a similar manner to standard XHTML, to produce a document rendered for human consumption.
This text is in a subsection.
Style rules are provided for the invented elements to inform the browser how the element content is intended to be rendered.
This text is in another section but this one has an inline style attribute to change the text appearance.
It also contains some conventional XHTML.
A bit of CSS even persuades the web client to download and display an image.
This text is in a notice element.
Some conventional metadata elements are used for convenience in this example.
Not least of which are the <style> and <title> elements.
Although there are other ways to apply css to XML instead of the <style> element.