You are on page 1of 1

4.

Compare HTML, XHTML and DHTML

Here's a brief comparison of HTML, XHTML, and DHTML:

1. HTML (Hypertext Markup Language):


- HTML is the standard markup language used for creating web pages.
- It is relatively lenient in terms of syntax and does not require strict adherence to rules.
- HTML documents can be displayed in web browsers, and it provides the basic structure for
web content.

2. XHTML (Extensible Hypertext Markup Language):


- XHTML is a stricter and more structured version of HTML, conforming to XML rules.
- It enforces well-formedness and requires elements to be properly nested and closed.
- XHTML aims to make web content more consistent and compatible with XML-based
applications.

3. DHTML (Dynamic Hypertext Markup Language):


- DHTML is not a separate language but a combination of technologies, including HTML, CSS,
and JavaScript.
- It enables the creation of interactive and dynamic web pages by using client-side scripting.
- DHTML allows elements on a web page to change, move, or respond to user interactions
without the need to reload the entire page.

You might also like