+ 4
What are difference between HTML, HTML5, XHTML and XML ?
I want to know deeper about this.
6 ответов
+ 4
XML is the big one, like the parent of them all. XML is markup where you use <opening> and </closing> <tags with="attributes"> to structure data.
XHTML is what is called an 'application' of XML, which means it's XML but there is a list of tags that you can use and that have different meaning but while in XML you can use any tag, XHTML only knows that list (with <b>, <div> etc)
HTML is *almost* XHTML (it's actually based on SGML), but while in XHTML you have to be very specific with how you write tags, HTML is a bit more tolerant (you can drop some end tags and it's ok, there's even tags without closing tags like <br>).
HTML5 is the newest version of HTML, the next big one after HTML 4.1.
+ 4
Hypertext Markup Language (HTML) is the standard markup language for creating web pages and web applications.
HTML5 is a markup language used for structuring and presenting content on the World Wide Web. It is the fifth and current version of the HTML standard.
XML stands for eXtensible Markup Language. XML was designed to store and transport data. XML was designed to be both human- and machine-readable.
XHTML is HTML written as XML.
Many pages on the internet contain "bad" HTML.
This HTML code works fine in most browsers (even if it does not follow the HTML rules):
<html>
<head>
<title>This is bad HTML</title>
<body>
<h1>Bad HTML
<p>This is a paragraph
</body>
Today's market consists of different browser technologies. Some browsers run on computers, and some browsers run on mobile phones or other small devices. Smaller devices often lack the resources or power to interpret "bad" markup.
XML is a markup language where documents must be marked up correctly (be "well-formed").
By combining the strengths of HTML and XML, XHTML was developed.
XHTML is HTML redesigned as XML.
+ 3
I know three of the four for sure:
HTML is the language used for website markup;
HTML5 is the newest version of HTML (not supported by every browser;
XML is a common used markup language, some programming languages use it as a CSS-like styling sheet.
I believe that XHTML is a version of HTML where you don't have to use close tags, a bit tricky though
+ 2
so then Sahil Sunny what then or where then must one start?
+ 2
@sidney kruger Its not necessary to learn XHTML as it was just an attempt to make HTML codes more consistent. Learn HTML but make sure you follow all HTML rules so that accessibility softwares can interpret your HTML properly. XML is not necessary for web development but some technologies rely on it for storing data and accessing it when necessary. For example Android application may store layout information in an xml file.
+ 2
thank you. Sahill. I appreciate all the help