What is the difference between HTML, XHTML, DHTML, HTML5?
HTML:a. HTML is a markup language that is used to build static (non interactive and nonanimated) webpages.
b. HTML is Case-Insensitive. So, we can write in both uppercase and lowercase or combination of cases, this is allowed in HTML
c. No need of close tags for every opened tags in HTML
XHTML:
a. XHTML is a stricter and cleaner version of HTML.
b. HTML is Case-sensitive.
c. Each and every opened tags must be closed in XHTML
Example #1: XHTML Elements Must Be Properly Nested
In HTML, some elements can be improperly nested within each other, like this:
In XHTML, all elements must be properly nested within each other, like this:
DHTML:
a. DHTML is NOT a language. DHTML is a term describing the art of making dynamic and interactive web pages. DHTML combines HTML, JavaScript, the HTML DOM, and CSS.
b. DHTML is Case-Insensitive like HTML. So, we can write in both uppercase and lowercase or combination of cases, this is allowed in DHTML
c. No need of close tags for every opened tags in DHTML
HTML 5:
b. HTML is Case-Insensitive. So, we can write in both uppercase and lowercase or combination of cases, this is allowed in HTML
c. No need of close tags for every opened tags in HTML
XHTML:
a. XHTML is a stricter and cleaner version of HTML.
b. HTML is Case-sensitive.
c. Each and every opened tags must be closed in XHTML
Example #1: XHTML Elements Must Be Properly Nested
In HTML, some elements can be improperly nested within each other, like this:
This text is bold and italic
This text is bold and italic
Example #2: Empty Elements Must Also Be Closed
Empty elements must also be closed.
This is wrong:
Example #2: Empty Elements Must Also Be Closed
Empty elements must also be closed.
This is wrong:
A break: < br >
A horizontal rule:< hr >
An image: < img src="happy.gif" alt="Happy face" >
A horizontal rule:< hr >
An image: < img src="happy.gif" alt="Happy face" >
This is correct:
A break: < br />
A horizontal rule: < hr />
An image: < img src="happy.gif" alt="Happy face" / >
A horizontal rule: < hr />
An image: < img src="happy.gif" alt="Happy face" / >
More XHTML Syntax Rules
- Attribute names must be in lower case
- Attribute values must be quoted
- Attribute minimization is forbidden
- The XHTML DTD defines mandatory elements
DHTML:
a. DHTML is NOT a language. DHTML is a term describing the art of making dynamic and interactive web pages. DHTML combines HTML, JavaScript, the HTML DOM, and CSS.
b. DHTML is Case-Insensitive like HTML. So, we can write in both uppercase and lowercase or combination of cases, this is allowed in DHTML
c. No need of close tags for every opened tags in DHTML
HTML 5:
- New Elements
- New Attributes
- Full CSS3 Support
- Video and Audio
- 2D/3D Graphics
- Local Storage
- Local SQL Database
- Web Applications
No comments:
Post a Comment