1. I've started a massive SPAM purge, any accounts that have spammed are being removed, also for a short period new user signups are disallowed until the SPAM cleaning is finished.

exact difference of HTML and XHTML

Discussion in '(X)HTML / CSS' started by juliesmith, May 10, 2010.

  1. juliesmith

    juliesmith New Member

    Joined:
    May 5, 2010
    Messages:
    85
    Likes Received:
    2
    Trophy Points:
    0
    Want to know the exact difference of HTML and XHTML. thanks in advance.
    Loading...
  2. Old Admin

    Old Admin Administrator

    Joined:
    Jan 7, 2008
    Messages:
    2,850
    Likes Received:
    228
    Trophy Points:
    63
    Gender:
    Male
    These are the main differences :

    * XHTML elements must be properly nested
    * XHTML elements must always be closed
    * XHTML elements must be in lowercase
    * XHTML documents must have one root element

    Which were taken from : XHTML vs HTML

    That page gives you all the info you'd need :)
  3. dannissmith20

    dannissmith20 New Member

    Joined:
    May 10, 2010
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    0
    HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language. It is not a programming language, it is a markup language. A markup language is a set of markup tags. This tags uses markup tags to describe web pages. XHTML stands for EXtensible HyperText Markup Language. XHTML is almost identical to HTML 4.01. XHTML is a stricter and cleaner version of HTML. XHTML is HTML defined as an XML application.
  4. sazymi

    sazymi New Member

    Joined:
    May 13, 2009
    Messages:
    1,356
    Likes Received:
    61
    Trophy Points:
    0
    Location:
    Los Angeles, CA
    One difference between the HTML and XHTML parsers is that in HTML, a <table> will have a <tbody> inserted into the DOM implicitly even if you don't have one in the source while in the XHTML, if you don't specify a <tbody> explicitly, it will not be present in the DOM.
  5. ametis

    ametis New Member

    Joined:
    Aug 19, 2009
    Messages:
    58
    Likes Received:
    3
    Trophy Points:
    0
    XHTML is not very different from the HTML 4.01 standard.
    So, bringing your code up to the 4.01 standard is a good start.
    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.
  6. allyroghur

    allyroghur Banned

    Joined:
    May 12, 2010
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    0
    HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language. It is not a programming language, it is a markup language. XHTML stands for EXtensible HyperText Markup Language. XHTML is almost identical to HTML 4.01. XHTML is a stricter and cleaner version of HTML. XHTML is HTML defined as an XML application.
  7. mahesh2010

    mahesh2010 Member

    Joined:
    Jun 15, 2010
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    USA
    XHTML is a stricter and cleaner version of HTML.
    XHTML is a combination of HTML and XML (EXtensible Markup Language).

    XHTML consists of all the elements in HTML 4.01, combined with the strict syntax of XML.
    * XHTML elements must be properly nested
    * XHTML elements must always be closed
    * XHTML elements must be in lowercase
    * XHTML documents must have one root element

    * Attribute names must be in lower case
    * Attribute values must be quoted
    * Attribute minimization is forbidden
    * The XHTML DTD defines mandatory elements

    With HTML you can create your own Web site.

    What is HTML?

    HTML is a language for describing web pages.

    * HTML stands for Hyper Text Markup Language
    * HTML is not a programming language, it is a markup language
    * A markup language is a set of markup tags
    * HTML uses markup tags to describe web pages

    HTML Tags

    HTML markup tags are usually called HTML tags

    * HTML tags are keywords surrounded by angle brackets like <html>
    * HTML tags normally come in pairs like <b> and </b>
    * The first tag in a pair is the start tag, the second tag is the end tag
    * Start and end tags are also called opening tags and closing tags

    HTML Documents = Web Pages

    * HTML documents describe web pages
    * HTML documents contain HTML tags and plain text
    * HTML documents are also called web pages

    The purpose of a web browser (like Internet Explorer or Firefox) is to read HTML documents and display them as web pages. The browser does not display the HTML tags, but uses the tags to interpret the content of the page:
  8. semaphore.v

    semaphore.v Member

    Joined:
    Feb 19, 2013
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    Gender:
    Male
    XHTML DOCTYPE is mandatory.The XML namespace attribute in <html> is mandatory.XHTML documents must have one root element
  9. Joslinks

    Joslinks Member

    Joined:
    Jul 27, 2011
    Messages:
    118
    Likes Received:
    3
    Trophy Points:
    18
    Gender:
    Male
    Location:
    Chennai
    • XHTML abbreviated EXtensible HyperText Markup Language
    • It is almost identical to HTML 4.01
    • It is a stricter and cleaner version of HTML
  10. anirban09P

    anirban09P Member

    Joined:
    Jun 30, 2014
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    Gender:
    Female
    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.

    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.
  11. rajdeep

    rajdeep Member

    Joined:
    Aug 10, 2014
    Messages:
    364
    Likes Received:
    0
    Trophy Points:
    16
    Gender:
    Male
    The evolution of HTML has essentially stopped. Instead, HTML is being replaced by a new language, called XHTML. XHTML is in many ways similar to HTML, but is designed to work with the new eXtensible Markup Language, or XML, that will soon serve as the core language for designing all sorts of new Web applications, in which XHTML will be only one of many "languages." But, XHTML is designed to work with these other language, so that different documents, in different languages, can be easily mixed together.

Share This Page