Relation between HTML and XHTML

Q

What Is the relation between XHTML and HTML?

✍: FYIcenter.com

A

Technically speaking, the HTML standard introduces one abstract language and three concrete syntaxes to represent an HTML document in different formats:

1. HTML language - An abstract language that describes a Web document in constructed. It is used to generate an abstract HTML document.

2. HTML serialization - A concrete serialization syntax that describes how a HTML document can be represented as a text file.

3. XHTML serialization - A concrete serialization syntax that describes how a HTML document can be represented as an XML file.

4. DOM API - A concrete API syntax that describes how a HTML document can be represented as in-memory object.

So XHTML and HTML is closely related. XHTML defines how to use an XML file to represent an HTML document.

 

Relation between HTML and XML

XHTML Document Example

Introduction of HTML

⇑⇑ HTML Tutorials

2024-01-31, 1044🔥, 0💬