Ask the Expert

What are the differences among SGML, HTML and XML?

What is the difference between SGML, HTML and XML? Is XML SGML? Is XML HTML?

Requires Free Membership to View

SGML, HTML, and XML, are all related more than just ending with the letter "L." SGML (Standard Generalized Markup Language) is the granddaddy of all the other standards and the others are all subsets. HTML (Hyper Text Markup Language) is the basic lingua franca of the Web and describes positioning and formatting for elements on a web page. XML (eXtensible Markup Language) is a standard data format for structured documents and is used as a manner to transfer data. XHTML is the union of HTML and XML as HTML was a little too loose and XHTML tightens up the formatting so that you can parse web pages with standard XML parsers. You can learn more about the differences and uses by visiting the World Wide Web Consortium.

This was first published in May 2002

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: