Q&A
Ask and answer questions to make information more available to wider audiences.
Emanuel Abke @abkeemanuel   22, Jun 2023 12:00 AM
the difference between HTML and XHTML
What is the difference between HTML and XHTML?
answers 6
 
Answer 1
Sophia Isaakson @isaaksonsophia   22, Jun 2023 11:47 AM
HTML:
Not case sensitive.
Not necessary to close the tags in the order they are opened.
All content can be included in the body element.
It requires a lenient HTML-specific parser.
Filename extensions are: .html, .htm

XHTML:
XHTML is case-sensitive. Every tag and attribute should be in lower case.
It is necessary to close the tags in the order they are opened.
All contents must be put in blocks.
Parsing is done with a standard XML parser.
Filename extensions are: .xhtml, .xht, .xml, .html, .htm

 
Answer 2
Sophia Isaakson @isaaksonsophia   22, Jun 2023 11:29 AM
HTML:
it is about displaying information.

XHTML:
It is about describing the information.
 
Answer 3
Anthony Bearcub @anthonybearcub   22, Jun 2023 11:21 AM
HTML uses a document file format.
XHTML uses markup language.
 
Answer 4
Anthony Bearcub @anthonybearcub   22, Jun 2023 11:17 AM
HTML is a static Web Page.
XHTML is a dynamic Web Page.
 
Answer 5
Anthony Bearcub @anthonybearcub   22, Jun 2023 11:17 AM
HTML is extended from SGML (Standard Generalized Markup Language).
XHTML has features of both XML and HTML.
 
Answer 6
Anthony Bearcub @anthonybearcub   22, Jun 2023 11:17 AM
HTML stands for Hypertext Markup Language.
XHTML stands for Extensible Hypertext Markup Language.