| | |
Is there a difference?
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
I think there is a lot difference between XHTML and HTML
Thanx,
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
Shiriyal
http://shiriyal.blogspot.com/
if you problem solved add me as a reputation and mark it mark as solved
•
•
Join Date: Apr 2008
Posts: 5
Reputation:
Solved Threads: 0
There is quite a few differences in the markup of XHTML compared to HTML, but most are simple to get used to, ie you need to use lowercase letters in XHTML and use closing tags properly.
eg:
<BODY>
<P>your text here</P>
</BODY> (This is incorrect xhtml)
<body>
<p>your text here</p>
</body> (this is correct)
If it is a case of learning one of them correctly I would suggest XHTML, probably starting with XHTML 1.0 Transitional as XHTML is now the W3C compliant standard. The advantages of XHTML 1.0 Transitional is that it allows a lot of things like iframes and opening links in new windows that the Strict version will not. Unless you really want to give yourself a headache I would stay away from XHTML 1.1
eg:
<BODY>
<P>your text here</P>
</BODY> (This is incorrect xhtml)
<body>
<p>your text here</p>
</body> (this is correct)
If it is a case of learning one of them correctly I would suggest XHTML, probably starting with XHTML 1.0 Transitional as XHTML is now the W3C compliant standard. The advantages of XHTML 1.0 Transitional is that it allows a lot of things like iframes and opening links in new windows that the Strict version will not. Unless you really want to give yourself a headache I would stay away from XHTML 1.1
If you’ve mastered HTML, you’re 90% of the way towards using XHTML. They’re actually very much the same thing—tag-based markup languages used to display Web pages. The difference is only seen by the people creating the pages (Web designers, programmers, etc.) and focuses on “forgivability”— HTML allows for some ugly code (mixed-case tags like <BoDy>, improperly nested elements, and unclosed tags), while XHTML does not. If you write HTML, it’s probably a good idea to start using XHTML practices anyway.
In XHTML, all tags must be lowercase.
In XHTML, all tags must be closed.
In XHTML, tags must be properly nested.
the above are not in html...
And,
* XHTML must be served with an XML MIME type, such as application/xml or application/xhtml+xml.
* HTML must be served as text/html.
It is the MIME type that determines what type of document you are using. If you use attempt to send XHTML as text/html, you are actually just using HTML, possibly with syntax errors.
Technically, according to the spec, XHTML 1.0 is allowed to be served as text/html. But, due to the above reason, such a document is considered to be an HTML document, not an XHTML document.
see it for reference:
http://wiki.whatwg.org/wiki/HTML_vs._XHTML
In XHTML, all tags must be lowercase.
In XHTML, all tags must be closed.
In XHTML, tags must be properly nested.
the above are not in html...
And,
* XHTML must be served with an XML MIME type, such as application/xml or application/xhtml+xml.
* HTML must be served as text/html.
It is the MIME type that determines what type of document you are using. If you use attempt to send XHTML as text/html, you are actually just using HTML, possibly with syntax errors.
Technically, according to the spec, XHTML 1.0 is allowed to be served as text/html. But, due to the above reason, such a document is considered to be an HTML document, not an XHTML document.
see it for reference:
http://wiki.whatwg.org/wiki/HTML_vs._XHTML
Last edited by Shanti Chepuru; Sep 15th, 2008 at 4:10 am.
Be intelligent, But Don't try to cheat.. Be innocent But Don't get cheated..
•
•
Join Date: Sep 2008
Posts: 18
Reputation:
Solved Threads: 1
HTML is rapidly being replaced by XHTML. The differences are very minor, but the results of switching can be worth the effort. The primary benefit is that XHTML is more widely accepted in non "computer" devices like cell phone, palm devices and other scaled down browsers. This is commonly called portability between devices.
XHTML is also said to be extensible, which is the fancy way of saying the new tags can be added without a new document type declaration.
XHTML is also said to be extensible, which is the fancy way of saying the new tags can be added without a new document type declaration.
there are difference but i think a newbie does not got any difference.
Help as an alias
I think programming is great................
Tour Travel weblink by me and about Tour ,
Go To My Home Page and I m in Webdevelopment.
I think programming is great................
Tour Travel weblink by me and about Tour ,
Go To My Home Page and I m in Webdevelopment.
![]() |
Similar Threads
- what is the difference between regular and 64 bit edition (Windows NT / 2000 / XP)
- Should replacing a 15" laptop screen with 14.1" make a difference? (Monitors, Displays and Video Cards)
- 56k and 56k/v90 difference? (Windows 95 / 98 / Me)
- date difference in c++ (C++)
- Drawbacks And Difference (C)
- "difference patching" help (C)
- The difference between functions and templates? (C++)
- Difference (Web Browsers)
Other Threads in the HTML and CSS Forum
- Previous Thread: The littler picture to the left of the address bar..
- Next Thread: dreamweaver cs3 and hover text
| Thread Tools | Search this Thread |
Tag cloud for HTML and CSS
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash font fonts form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization perl pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7 xml xsl






