answersLogoWhite

0


Best Answer

There was no XML in HTML 4, and you can only add XML to HTML 5 if you reset the content MIME type.

XML hasn't changed. But XML is a language used to define other languages. XML was used to define the standards for XHTML 1.0, the successor to HTML 4. The rules of XML apply in XHTML, because the language is based off of XML. These rules are not, in any way, part of HTML 4.

HTML 5 is not, by default, an XML based language. But there is a version that allows one to use the XML (or XHTML) style serialization. If you do this, however, you have to deliver the document using an XML MIME type, like application/html+xml. (Normally, this involves messing with the server a bit.)

See the related link for HTML 5 Doctor's take on XML serialization in HTML 5, as well as some other, useful links.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is XML the same with HTML 5 as it was HTML 4?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is XML an advanced version of HTML?

As a programmer, processing pure XML is easier that HTML. This is because XML follows a very strict set of standards. HTML (such as HTML 4 or 5) does not. For instance, all XML tags close, either by a closing pair, or a "self-closing" tag. e.g.: <tag></tag> Or <tag /> Whereas HTML tags such as line-break and image don't follow the same pattern. <img> <br> By adhere to stricter rules, XML is easier for me to parse.


How does xml differ from HTML and dynamic HTML?

1.xml is case sensetive but html is case insensetive. 2.xml preserve white space but html does not . 3.xml is about describing information but html is about displaying information. 4.xml is about carring information hence dynamic but html is about displaying data hence static.


How do you enter subscript in HTML?

<sub>Your Subscript Here</sub> The <sub> tag is used to surround subscript. It's cousin, that <sup> tag is used in the same way to surround superscript. Both tags are valid in HTML 4, HTML 5, and XHTML.


Should you use upper case or lower case HTML tags?

If the document has a newer doctype specified, and it is important to you that your document validate correctly, or you want to "code for the future", then you will want to use lower case tags.Correction: Neither HTML 4.01, which is the current recommenadation, nor HTML 5, which is still only a draft, have restrictions on case. Only XHTML, a subset of XML, requires lower-case elements and attributes.In older document types it is typical to see uppercased tags, but HTML tags are not case sensitive: means the same as . Plenty of web sites use uppercase HTML tags in their pages.Correction: An opening HTML tag is composed of an element with possible attributes surrounded by angle brakets. The closing tag also has a backslash to distinguish it from the opening tag. H1 is an element, is a tag containing the H1 element.The World Wide Web Consortium (W3C) recommends lowercase in HTML 4 (citation needed), and demands lowercase tags in future versions of (X)HTML.Correction: Authors of HTML documents may use lower-case, upper-case, proper case, or CaMeL case. Some authors put elements in upper-case and their attributes in lower-case. Other authors find using lowercase uses a few less keystrokes.XHTML is a subset of XML. XML is case sensitive, so LI and li would be two different elements. This is the reason that XHTML elements and attributes are lower case.


Why are there different versions of HTML?

it think the versions are HTML 1.0 HTML 2.0 HTML 3.0 HTML 3.2 HTML 4.01 xhtml 1.0 and now HTML 5 The different versions are used to characterize changes in the HTML itself. With new features and new tags come new versions. In the modern web, (HTML 4+) the versions are also the basis for laying out standards that describe the function of the HTML and how the browsers are supposed to display it. For instance, prior to HTML 2.0, there were no images available in HTML. If you're interested, the W3C (World Wide Web Consortium) is in charge of keeping the current HTML and XHTML standards. You can find the specific changes in versions on their website.

Related questions

Is XML an advanced version of HTML?

As a programmer, processing pure XML is easier that HTML. This is because XML follows a very strict set of standards. HTML (such as HTML 4 or 5) does not. For instance, all XML tags close, either by a closing pair, or a "self-closing" tag. e.g.: <tag></tag> Or <tag /> Whereas HTML tags such as line-break and image don't follow the same pattern. <img> <br> By adhere to stricter rules, XML is easier for me to parse.


What is a rewritten form of HTML using xml?

The HTML language, which was originally based of SGML, was rewritten following XML guidelines for the XHTML 1.0 and 1.1 standards. These standards were well embraced by the web development community, but XHTML has since been largely supplanted in new projects by HTML 5 (which is not XML compliant.)


What is the different between XML and HTML?

HTML is a language used to build web pages. XML is a set of standards used to create other languages. HTML is a markup language defined by the World Wide Web Consortium (W3C) and primarily used to code web-pages. HTML gives a group of pre-defined tags, like <BODY> and <A> and <LINK> that have well-defined uses and generally accepted default styles in modern browsers. XML isn't a language at all. Rather, it's a particular syntax for setting up a language. It creates that idea of an element, and give those elements content and attributes. XML allows a programmer to create a language that is defined to specifically suit her needs. This is done one of several ways, but the most popular are by creating a Document Type Definition or an XML Schema. These documents define the behavior of the language itself. HTML and XML are combined in the ubiquitous XHTML 1.0 and 1.1 specifications from the W3C. XHTML is being supplanted by HTML 5. HTML 5, by default, isn't an XML based language, but you can use XML-style code by changing the MIME type to application/html+xml. A second version of XHTML was in the works at the W3C, but work stopped in December of 2010.


5 types of documents people produce with word processing?

Pdf, doc, (docx), rtf, html, xml


Is xml and HTML will be replaced by xHTML?

No. XML is a meta-language. Rather than thinking of XML as a language, think of it as a way to build languages. It's a set of rules programmers can use to create their own languages. HTML is an SGML based markup language. It doesn't comply with the strict rules set forth by XML. Instead, it relies on a long history of doing things a certain way depending on context. XHTML was a revisioning of HTML as an XML compliant language. Essentially, it adjusted HTML so that it didn't break the XML rules. XHTML has now been replaced by the HTML 5 draft (which is at this point a de facto standard.) XHTML 2.0 has not been successful, and the Working Group hasn't moved on it in years.


How does xml differ from HTML and dynamic HTML?

1.xml is case sensetive but html is case insensetive. 2.xml preserve white space but html does not . 3.xml is about describing information but html is about displaying information. 4.xml is about carring information hence dynamic but html is about displaying data hence static.


Html and xHTML?

HTML and XHTML are two different languages used for web and application design. XHTML was a popular choice from about the year 2000, to 2011. HTML 5 is intended to replace XHTML. XHTML followed the basic rules of XML-based languages. HTML (both prior and since) do not.


What are the 5 basic HTML commands?

1.<head>. 2.<html>. 3.<body>. 4.<h1>. 5.<u<


How do you use XML in PHP?

PHP 5 has a XML parser called SimpleXML that you could use.


What HTML element is always found within a HEAD container?

The only HTML element that is required in the HEAD section of an HTML document (according to the W3C specifications for HTML 4, HTML 5 and XHTML) is the TITLE element.


What is 5 advantages of HTML?

Easy to use.Supported on almost every browser, if not all browsers.Very similar to XML syntax, which is increasingly used for data storage.Free - You need not buy any software.Easy to learn & code even for novice programmers.


What is the difference in HTML 4 and HTML 5?

Unlike HTML 4 you cannot do these things in HTML 5: - using attributes without double-quotation like <font face=tahoma> instead of <font face="tahoma"> - Closing tags wrong <b><i>test</b></i> instead of <b><i>test</i></b> - Special Tags Closing <br> instead of <br />