Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare/contrast HTML, XHTML, XML, and HTML5

Tags:

html

xml

xhtml

Ok, so I'm not quite sure the difference between these languages. Could someone clarify? I know that XML has user-defined tag and html is pre-defined, but thats basically the extent of my knowledge.

I know that HTML5 is supposed to replace HTML, but wasn't XML supposed to do that as well? Basically, which languages here are a substitute for the other, and which complement? Does XML replace XHTML?

like image 753
GiH Avatar asked Sep 15 '09 19:09

GiH


People also ask

What is HTML XHTML and HTML5?

Extensible HyperText Markup Language (XHTML) and HyperText Markup Language (HTML5) are both markup languages. XHTML is an extension of HTML that was created to solve compatibility issues across browsers. ​HTML5 is a newer version of HTML. Let's go over some of the differences between XHTML and HTML5.

What is XHTML compare XHTML and HTML with proper example?

HTML and XHTML are both markup languages used to create web pages and applications. HTML and XHTML have some key differences that set them apart, but they also share some similarities. XHTML is an extended version of HTML, and both languages are used for developing web and Android-based applications.

What is the difference between XML and HTML5?

Ans. The key difference between HTML and XML is that HTML displays data and describes the structure of a webpage, whereas XML stores and transfers data. XML is a standard language which can define other computer languages, but HTML is a predefined language with its own implications.


1 Answers

HTML is the HyperText Markup Language, which is designed to create structured documents and provide for semantic meaning behind the documents. HTML5 is the next version of the HTML specification.

XML is the Extensible Markup Language, which provides rules for creating, structuring, and encoding documents. You often see XML being used to store data and to allow for communication between applications. It's programming language-agnostic - all of the major programming languages provide mechanisms for reading and writing XML documents, either as part of the core or in external libraries.

XHTML is an XML-based HTML. It serves the same function as HTML, but with the same rules as XML documents. These rules deal with the structure of the markup.

like image 160
Thomas Owens Avatar answered Sep 22 '22 07:09

Thomas Owens