w3reference home
XML Tutorial


Bookmark and Share

XML vs HTML

Is XML same as HTML??
XML may look like HTML to anyone who knows basics of HTML. The reasons are given below:
  • HTML and XML look similar, because they are both SGML languages (Standard Generalized Markup Language)
  • Both HTML and XML use elements enclosed in tags.
  • Both use tag attributes.
  • Both use entities.
But are they really same. No..they are not. Below are some of the most obvious differences between the two:
  • HTML focuses on how data looks to the viewers while XML describes and carries data to be processed by computers.
  • HTML describes the structure and appearance while XML describes only the meaning.
  • HTML uses a fixed, unchangeable set of tags while XML has only user-defined tags.
  • Most of the browsers correct the errors or slackness in HTML code while XML is very strict about the rules.
  • There are many tags in HTML that do not have a closing tag. In XML it is compulsory for every tag to have a closing tag as well.
  • HTML is a language in itself that can change the look of a web page while XML cannot do anything by itself and is used in conjunction with other languages.
Code Validator
Learn FTP
Color finder
Link Checker
Free web designs
Coming soon!
Interview Questions...
'w3reference : Learn by examples ... Advanced to beginner's tutorials ...'
Ajax: AJAX tutorial1 | Apache: Apache HTTP Server | Restarting Apache | CSS: CSS Border | CSS Syntax | CSS Selector | CSS Comment | CVS: CVS Release | CVS Login | CVS Logout | CVS Annotate | Databases: Rolap Tutorial | OLAP Tutorial | OLTP Tutorial | data warehousing | Expect: HTML: html | Linux: Dot (.) conf files | Linux Mount Point | Linux Filesystem | SSH Tutorial | Linux Commands: cal | cat | cfdisk | chroot | MySQL: MySQL Commands | PHP: PHP Basics | PHP Variables | PHP Output (echo/print) | PHP String Concat | PL/SQL: PL/SQL Data Types | PL/SQL Control Structures | PL/SQL File Extensions | PL/SQL DBMS_OUTPUT package | Python: My first Python program | Shell: Starting Bash | Bash Redirection | Bash Pipes | Bash Variables | SQL: SQL Transactions | SQL Constraints | SQL Drop | SQL Union & Union All | SVN: svn architecture | SVN Repository | SVN Import | SVN Checkout | Tech: soap | Web Designing: Web Hosting | HTML/XHTML/CSS code validator | Learn FTP | Search Engine Optimization Tips | www: XML: XML vs HTML | XML Syntax | XML Tags, Elements and Attributes | XML Namespaces |
Sitemap | Disclaim | Privacy Policy | Contact | ©2007-2009 w3reference.com All Rights Reserved.