---
# System prepended metadata

title: 'THE DIFFERENCES BETWEEN XML,XHML AND HTML'

---

THE DIFFERENCES BETWEEN XML,XHML AND HTML

  XML,XHTML and HTML are mark-up languages.They are systems used to define the structure and presentation of webpages. 
See below for their differences;

    XML
XML stands for eXtensible Markup Language, is a standard designed basically to store and transport data. <opening> and </closing> tags with ="attributes"> to structure data, it is both human and machine-readable, it was designed to be self descriptive.Unlike XHTML,  in XML,any tag can be used.
example.
<note> 
    <to>Tovi</to>
    <from>Jani</from>
    <heading>Reminder </heading>
    <body>Dont forget me this week!</body>
    <note>
 The XML above is self-descriptive:
  It has sender information
  It has reciever information 
  It has the heading
  It has a message body.          
        XHTML
XHTML stands for eXtensible Hypertext Markup Language, by combining the strength of XML and HTML,XHTML was developed, that is; it's HTML redesigned(XHTML is HTML codes represented in XML format) . It was developed to make HTML more extensible and flexible to work with other data formats.XHTML only understands the list with (<br>,<div> etc)
example of XHTML documents with a minimum required tags;        
        
         <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Title of document</title>
</head>
<body>

  some content here...

</body>
</html> 
        
       HTML  
    HTML stands for Hyper Text Mark    HTML stands for Hyper Text Markup Language.
up Language.
    HTML is the standard markup language for structuring Web pages and web applications.The  implementation is logical and structural for it's users using html tags 
    HTML describes the structure of a Web page
    Example of a HTML document
        
        
  g       
      <!DOCTYPE html> 
   <html>
   <head>
   </head>
   <body>
       <form>
    <h2>CREATE YOUR ACCOUNT </h2>
     <input type="text"placeholder="name"> 
     <input type="text"placeholder="email">
     <input type="text"placeholder="date of birth">
           
           </form>
           </email>
           </date of      birth>
        
           
   COnclusion
        The basic differences between XML, XHTML and HTMLis their syntax  and structure; HTML is more linient in it's syntax, while XHTML has a more strict syntax and follows XML rule.
       
           
