Difference Between HTML and XHTML?

Discussion in 'Design & Development' started by itsolexpert, Mar 7, 2012.

  1. itsolexpert

    itsolexpert
    Expand Collapse
    Junior Member

    Joined:
    Jan 3, 2012
    Messages:
    6
    Likes Received:
    0
    Difference Between HTML and XHTML?
    I really need know about it.
     
  2. developers

    developers
    Expand Collapse
    Junior Member

    Joined:
    May 8, 2012
    Messages:
    19
    Likes Received:
    1
    HTML stands for hypertext markup language.HTML is a computer language devised to allow website creation.
    XHTML stands for Extensible Hyper Text Markup Language ,XHTML is a reformulation of HTML conform XML (Extensible Markup Language).
     
    Samuel likes this.
  3. vanithamadhi

    vanithamadhi
    Expand Collapse
    Junior Member

    Joined:
    Jun 1, 2012
    Messages:
    28
    Likes Received:
    3
    Forgiving Requires discipline and attention to detail
    Correct nesting required in theory Correct nesting absolutely required
    Some end tags optional All end tags required
    No end tag for empty content model Even empty content model requires end tag
    Case insensitive Lowercase only
    Some attribute values needn’t be quoted All attribute values must be quoted
    Certain “valueless” attribute values are OK All attributes must have values
    Less sensitive to special characters More sensitive to special characters
    Ubiquitous name attribute Id attribute preferred to name, mostly
    ......................
    5d theater
     
  4. madelinekim

    madelinekim
    Expand Collapse
    Junior Member

    Joined:
    Jul 13, 2012
    Messages:
    24
    Likes Received:
    1
    HTML stands for Hypertext markup language While Xhtml stands for Extensible Hyper text Markup Language.HTML has been accomplish to shown data, with a core on what data looks like. While Xhtml has been accomplish to carrier and save data, with a core on what data is.
     
  5. James Smith

    James Smith
    Expand Collapse
    Junior Member

    Joined:
    Apr 26, 2012
    Messages:
    23
    Likes Received:
    4
    Some of the Difference Between HTML and XHTML are listed below :


    • HTML is an application of SGML, and allows an author to omit certain tags and use attribute minimization. On the other hand XHTML is an application of XML and it doesn’t permit the omission of any tags or the use of attribute minimization. However, it provides a shorthand notation for empty elements—for example, we could use <br/> instead of <br></br>—which HTML does not.
    • When an XML parser encounters an error relating to the document’s well-formedness, it must abort, whereas an HTML parser is expected to attempt to recover and continue.
    • HTML is about to showing the information and on the other hand XTML is about to describing the information.
    • XHTML is all about design data to describe and focus on what data is, on the other hand HTML is design to display data and mostly focus on how data looks like.
    • HTML is a static web page and XHTML is advanced version of it which makes dynamic web pages which is combination of both XML and HTML.
     
  6. lennondevid

    lennondevid
    Expand Collapse
    Junior Member

    Joined:
    Jul 26, 2012
    Messages:
    4
    Likes Received:
    0
    Its really best information about the HTML and XHTML. I would say HTML is named as Hyper Text Markup Language. It is a structure of text information in all web documents. XHTML is named as Extensible Hyper Text Markup Language is similar in most features. XHTML is nothing but a completion HTML codes.
     
  7. Jason Martin

    Jason Martin
    Expand Collapse
    Junior Member

    Joined:
    May 25, 2012
    Messages:
    182
    Likes Received:
    11
    The most important difference between the two markup languages is that HyperText Markup Language, or HTML, is an application of SGML (Standard Generalized Markup Language),and allows an author to omit certain tags and use attribute minimization.The Extensible HyperText Markup Language, or XHTML, is an application of XML (Extensible Markup Language). I got this information from http://reference.sitepoint.com/css/htmlxhtml web link you can also check this out.
     
  8. jordenstive

    jordenstive
    Expand Collapse
    Junior Member

    Joined:
    Jul 13, 2012
    Messages:
    8
    Likes Received:
    0
    According to me there is always a need to convert some files before they are incorporated into the final XHTML file of the website which is then uploaded into the Word Wide Web. The two most common conversions that feature prominently during web development are PSD to XHTML and PSD to HTML. First, HTML is usually based on the SGML. This means you can remove some tags if need arises. And XHTML is XML based. XML does not allow tag removal.
     
  9. Jennifernew

    Jennifernew
    Expand Collapse
    Junior Member

    Joined:
    Sep 11, 2012
    Messages:
    4
    Likes Received:
    0
    The difference between these two is that HTML is an application of SGML (Standard Generalized Markup Language) and allows an author to omit certain tags and use attribute minimization But XHTML is an application of XML (Extensible Markup Language) It doesn’t permit the omission of any tags or the use of attribute minimization. However, it provides a shorthand notation for empty elements.For example, we could use <br/> instead of <br></br>—which HTML does not.

    Blackberry Trackball | Blackberry Trackpad
     
  10. nikkoncolmel

    nikkoncolmel
    Expand Collapse
    Junior Member

    Joined:
    Sep 14, 2012
    Messages:
    10
    Likes Received:
    0
    HTML is about displaying information
    XHTML is about describing the information

    XHTML Was design to describe data and to focus what data is
    HTML is design to display data and focus how datas look like.


    web design & development
     
  11. mariajhonson

    mariajhonson
    Expand Collapse
    Junior Member

    Joined:
    Oct 19, 2012
    Messages:
    278
    Likes Received:
    4
    HTML refers to Hypertext markup language and XHTML denotes for Extensible Hypertext Markup Language. In simple words HTML used to describe the data in a webpage while XHTML is responsible dor displaying the data. It shows hoe the data looks like.
     
  12. Steve1234

    Steve1234
    Expand Collapse
    Junior Member

    Joined:
    Nov 20, 2012
    Messages:
    4
    Likes Received:
    1
    HTML is an application of SGML and XHTML is an application of XML
     
  13. GlenChambers

    GlenChambers
    Expand Collapse
    Junior Member

    Joined:
    Nov 29, 2012
    Messages:
    1
    Likes Received:
    0
    Also, XHTML is easier to maintain. XML syntax rules are far more rigorous than HTML. As a result, XHTML makes authors work more precisely, having to address issues such as:
    •all elements and attribute names must appear in lower case
    •all attribute values must be quoted
    •non-Empty Elements require a closing tag
    •empty elements are terminated using a space and a trailing slash
    •no attribute minimization is allowed
    •in strict XHTML, all inline elements must be contained in a block element
     
  14. samvilla

    samvilla
    Expand Collapse
    Junior Member

    Joined:
    Oct 29, 2012
    Messages:
    17
    Likes Received:
    0
    Thanks For Share, HTML5 is latest version of HTML . Still not Supported by All browsers .
     
  15. complysci123

    complysci123
    Expand Collapse
    Junior Member

    Joined:
    Aug 28, 2012
    Messages:
    10
    Likes Received:
    0
    1. Xhtml is mime type.
    2. it support xml.
    3.An XHTML document served with a MIME type of text/html must be parsed and interpreted as HTML,
     
  16. evangilbort

    evangilbort
    Expand Collapse
    Registered Member

    Joined:
    Apr 24, 2013
    Messages:
    16
    Likes Received:
    0
    XHTML is a more stable, sharpened and sophisticated version. This further introduced the concept of tagging into the websites. In simple words HTML used to describe the data in a webpage while XHTML is responsible dor displaying the data. It shows hoe the data looks like.
     
  17. jayram

    jayram
    Expand Collapse
    Junior Member

    Joined:
    Aug 16, 2013
    Messages:
    8
    Likes Received:
    0
    hi..
    I am trying to differentiate HTML, XHTML and DHTML
    HTML is a markup language that is used to build static webpages.​

    XHTML is an xml markup language that mirrors HTML syntaxes.​
     
  18. Harsh Shah

    Harsh Shah
    Expand Collapse
    Registered Member

    Joined:
    Oct 16, 2015
    Messages:
    20
    Likes Received:
    0
    Hi,
    The difference depends on whether the document is served with a Content-type: text/html header or a Content-type: application/xml+xhtml header.HTML is SGML-based while XHTML is XML-based. They are like two sides of the same coin. XHTML was derived from HTML to conform to XML standards. Hence XHTML is strict when compared to HTML and does not allow user to get away with lapses in coding and structure.
     
  19. Tripath

    Tripath
    Expand Collapse
    Junior Member

    Joined:
    Dec 18, 2015
    Messages:
    134
    Likes Received:
    3
    HTML

    HTML or HyperText Markup Language is the main markup language for creating web pages and other information that can be displayed in a web browser.
    Filename extension- .html, .htm
    Internet media type- text/html
    Developed by - W3C & WHATWG
    Type of format- Document file format
    Extended from- SGML
    Function - Web pages are written in HTML.

    XHTML

    XHTML (Extensible HyperText Markup Language) is a family of XML markup languages that mirror or extend versions of the widely used Hypertext Markup Language (HTML), the language in which web pages are written.
    Filename- .xhtml, .xht, .xml, .html, .htm
    Internet media type - application/xhtml+xml
    Developed by -World Wide Web Consortium
    Type of format - Markup language
    Function Extended version of - HTML that is stricter and XML-based.
     
  20. Sonali Jain

    Sonali Jain
    Expand Collapse
    Registered Member

    Joined:
    Apr 21, 2016
    Messages:
    40
    Likes Received:
    0
    HTML stands for "Hyper Text Markup Language" and XHTML stands for "Extensible Hyper Text Markup Language". HTML used to describing the data in a webpage while XHTML is used for displaying the data. It shows how the data is looking.
     

Share This Page