HEMANT SONKER'S BLOG

Saturday, September 27, 2008

Differences Between XHTML and HTML

Differences Between XHTML and HTML
Both HTML 4 and XHTML use precisely the same elements, attributes, and values. The difference between HTML and XHTML is in their respective syntax - the main differences are discussed in this section.
• XHTML requires that all Webpages contain the html, head, and body elements, as well as the DOCTYPE declaration, where as in HTML they are not required.
• XHTML insists on having closing tags for every element, even empty ones, where as HTML often lets you omit them.
• HTML requires that all attributes be enclosed by quotation marks, where as HTML lets you omit quotation marks, but only around attribute values which consist of only letters, numbers and these characters: - (dash), . (period), _ (underscore) and : (colon).
• XHTML is case sensitive, where as HTML is not case sensitive. Furthermore XHTML requires that all enumerated attribute values be lower case.

The question is why we should use xhtml??
By using xhtml ,it has various advantages.Firstly it becomes more consistant ,well structured format, pages can be easily parsed and can be processed by software applications.It helps website much easy to maintain, edit etc.
XHTML adopts official XML standards.The best thing about xhtml is that you can view on pda ,computers ,laptops etc with well structured view without any issue.

5 Comments:

  • At Wednesday, March 27, 2013 , Anonymous Anonymous said...

    Have you seen just how many people who are around you won't shake hands with you or share your meal. That previous British maxim states that 'Knowing your enemy is battle 50 % won'. According to Web - Md males tend to bite their nails more than women.

    Feel free to surf to my blog post - Nail biting

     
  • At Friday, April 05, 2013 , Anonymous Anonymous said...

    In the final stages, the dimpling is obvious both when lying down and standing up.

    And also some of the underweight people are also such
    complaints. The best way of dealing with cellulite & stretch marks (
    is by choosing a treatment option and sticking to it.



    Also visit my homepage ... prevent pregnancy stretch marks

     
  • At Thursday, April 11, 2013 , Anonymous Anonymous said...

    Sudden withdrawal may also induce the potentially life threatening condition status epilepticus.
    Tinnitus is a genuine challenge that affects thousands and thousands of persons.
    Ringing in the ears can drastically impact the standard of living of
    the individual struggling with it.

    Here is my homepage :: sinus infection treatment

     
  • At Thursday, April 18, 2013 , Anonymous Anonymous said...

    Mortgage expenses also include appraisals and commissions paid.
    One of the most important stipulations of the act is that an Estate Agent may only receive commissions on
    transactions concluded during a period for which the Estate Agent is in possession
    of a valid Fidelity Fund Certificate. In 2013, Real Estate Pune market appears to be strong, with
    some locations notably poised for growth.

    my web-site :: Vuokrataan Asunto

     
  • At Saturday, August 31, 2013 , Anonymous Anonymous said...

    Check out the differences between html and xhtml in interactive and easy way.

     

Post a Comment

Subscribe to Post Comments [Atom]

Links to this post:

Create a Link

<< Home