Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: What is HTML and XHTML

  1. #1
    Junior Member scottlan is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    3

    What is HTML and XHTML

    are these both are same? are these both programming language? what's the basic difference?

  2. #2
    Junior Member alex365 has a spectacular aura about
    Join Date
    Jan 2011
    Posts
    2

    Thumbs up HTML Vs XHTML

    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). 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. A conforming XML document must be well formed, which, among other things, means that there must be an end tag for every start tag, and that nested tags must be closed in the right order.

    For More Information You Can Read These Books Listed Below : -
    1. HTML & XHTML: The Definitive Guide, Fifth Edition By
    Chuck Musciano (Author), Bill Kennedy (Author)

    2. HTML & XHTML: the complete reference
    By Thomas A. Powell

  3. #3
    FWS Addict AboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to all AboutWeb's Avatar
    Join Date
    Dec 2010
    Location
    /public_html
    Posts
    753
    Nice explication alex365 !

    A SEO couple had twins. For the first time they were happy with duplicate content.

  4. #4
    Beautiful Daddy Sain Cai has a brilliant futureSain Cai has a brilliant futureSain Cai has a brilliant futureSain Cai has a brilliant futureSain Cai has a brilliant futureSain Cai has a brilliant futureSain Cai has a brilliant futureSain Cai has a brilliant futureSain Cai has a brilliant futureSain Cai has a brilliant futureSain Cai has a brilliant future Sain Cai's Avatar
    Join Date
    Jan 2002
    Location
    Mass-hole
    Posts
    1,938
    Looks like another bot to moi.
    Patriots Fanzone: New England Patriots Community, blog and resource.

    DISCLAIMER
    I tell it like it is, plain and simple.

  5. #5
    b& EvaBrown is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    14
    The main differences are that XHTML forces webpage authors to be more consistent and to write more legible code. There are a few syntax and grammar differences and a few HTML tags have been dropped and, really, that's about it.

  6. #6
    Member flashfango has a little shameless behaviour in the past
    Join Date
    Oct 2010
    Posts
    85

    Smile

    The most important difference between the two markup languages is that HyperText.
    Though, that these differences apply only when an XHTML document is served as an application of XML; that is, with a MIME type of application/xhtml+xml, application/xml, or text/xml. An XHTML document served with a MIME type of text/html must be parsed and interpreted as HTML, so the HTML rules apply in this case. A style sheet written for an XHTML document being served with a MIME type of text/html may not work as intended if the document is then served with a MIME type of application/xhtml+xml.
    my favorite tools:
    logo maker

  7. #7
    Junior Member brenton17jul1948 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    15
    Although HTML and XHTML appear to have similarities in their syntax, they are significantly different in many ways.

    mainly in features like Parsing Modes,Error Handling,Character Encoding (including XML Declaration, meta), Namespaced elements, Namespaced attributes on HTML elements, Namespace attributes on foreign elements, XLink attributes , XML attributes,Attributes, Attribute values ,Space characters ,The DOCTYPE etc..

  8. #8
    Junior Member AvailHosting has a little shameless behaviour in the past
    Join Date
    Feb 2011
    Posts
    21
    HTML - Static Hyper text mark up language.
    DHTML - Dynamic HTML, which allows user to access the resources like contents, menu etc in a web page dynamically, without using java scripts, asp, etc.
    Dynamic HTML is a collective term for a combination of new Hypertext Markup Language (HTML) tags and options, that will let you to create Web pages more animated and more responsive to user interaction than any previous versions of HTML. Dynamic HTML can allow Web documents to look and act like desktop applications or multimedia productions.

  9. #9
    FWS Addict AboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to allAboutWeb is a name known to all AboutWeb's Avatar
    Join Date
    Dec 2010
    Location
    /public_html
    Posts
    753
    HTML5 is the new version of HTML and is not static at all. I can't wait for developers to finish building HTML5 and all browsers to update so they could read the new code!

    A SEO couple had twins. For the first time they were happy with duplicate content.

  10. #10
    Junior Member savis is infamous around these parts
    Join Date
    Mar 2011
    Posts
    10
    These 4 points are the vital and major differences between HTML & XHTML

    • XHTML elements must be properly nested
    <b><i>This text is bold and italic</i></b>

    • XHTML elements must always be closed
    <p>This is a paragraph</p>

    Empty elements must also be closed
    A horizontal rule: <hr />

    • XHTML elements must be in lowercase
    <body>
    <p>This is a paragraph</p>
    </body>

    • XHTML documents must have one root element

    <html>
    <head> ... </head>
    <body> ... </body>
    </html>

  11. #11
    Junior Member andrepitt77 is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    1
    Both are development languages but very different. HTML, which stands for HyperText Markup Language, is the predominant markup language for web pages. HTML is the basic building-blocks of webpages and XHTML extend versions of the widely-used Hypertext Markup Language (HTML), the language in which web pages are written.

  12. #12
    Member decent is an unknown quantity at this point
    Join Date
    Apr 2011
    Posts
    33
    Quote Originally Posted by flashfango View Post
    The most important difference between the two markup languages is that HyperText.
    Though, that these differences apply only when an XHTML document is served as an application of XML; that is, with a MIME type of application/xhtml+xml, application/xml, or text/xml. An XHTML document served with a MIME type of text/html must be parsed and interpreted as HTML, so the HTML rules apply in this case. A style sheet written for an XHTML document being served with a MIME type of text/html may not work as intended if the document is then served with a MIME type of application/xhtml+xml.
    Yeah true, I agree with you.

  13. #13
    Junior Member Tanika has a little shameless behaviour in the past
    Join Date
    May 2011
    Posts
    18

    Thumbs up

    Using XHTML authors can able to be more consistent and can able to write legible code. It is easy to switch to XHTML, if you already know HTML. You cannot find that much difference in it. There are some new rules that you will find the XHTML will make you a better programmer.

  14. #14
    Senior Member jennyjackson is infamous around these parts
    Join Date
    Apr 2011
    Posts
    102
    Quote Originally Posted by alex365 View Post
    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). 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. A conforming XML document must be well formed, which, among other things, means that there must be an end tag for every start tag, and that nested tags must be closed in the right order.

    For More Information You Can Read These Books Listed Below : -
    1. HTML & XHTML: The Definitive Guide, Fifth Edition By
    Chuck Musciano (Author), Bill Kennedy (Author)

    2. HTML & XHTML: the complete reference
    By Thomas A. Powell
    thanks alex you share very nice information with complete explanation ..
    windows server Provider- Free Setup - Managed VPS Dedicated hardware MS Hyper-V technology Forum

  15. #15
    Senior Member JerrickYeoh is infamous around these partsJerrickYeoh is infamous around these partsJerrickYeoh is infamous around these parts
    Join Date
    Apr 2011
    Posts
    126
    They are similar just XHTML is the improvement make from HTML.

    HTML is a markup language used for displaying text and documents across different platforms and machines. It was originally intended for a very specific audience, and has expanded to include hypertext, multimedia, as well as the style of the documents displayed.

    With XHTML, if you find a need for a new markup tag, you simply define it in an XHTML module and use it in your page as you would any other HTML tag. You can also use XHTML to markup the code as appropriate for the (XHTML compatible) browser that is viewing it.

Closed Thread

Similar Threads

  1. Replies: 0
    Last Post: March 15th, 2010, 17:59
  2. Need help - xhtml / css
    By Sammie in forum Webdesign / HTML
    Replies: 6
    Last Post: May 30th, 2008, 08:56
  3. xHTML / CSS help
    By Sammie in forum Webdesign / HTML
    Replies: 4
    Last Post: April 5th, 2008, 21:32
  4. Converting my home-site from HTML to XHTML
    By shirker in forum Webdesign / HTML
    Replies: 3
    Last Post: March 27th, 2006, 16:36

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts