Hi,
I read this post many times and everytime i end up with one doubt ... How would a real XHTML page will look like? I would like to know whether the code below would be a real XHTML page? Or do i need to add some code before or after this?
Code HTML4Strict:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/> <title>XHTML Page</title> </head> <body> <h1>XHTML Page</h1> </body> </html>
The above was to create a page from our side. I did it using Dreamweaver 8.0
Next thing as I understood from Tommy's explanation was even through we serve MIME as "application/xhtml+xml" from our end, its generally not taken and should be changed at Server as:
AddType application/xhtml+xml .xhtml .xht -- for Apache
OR if we don't have access to the configuration files, then we can send http header as (using PHP):
Code PHP:header('Content-Type: application/xhtml+xml; charset=utf-8');
(and this header must be sent before a single byte of document content is written to the response stream)
Finally saving this page as ".xhtml" or ".xht" extension only NOT .html/.htm
Please let me know whether doing a page by following the above method will truly be XHTML. I am not a fan of XHTML though or don't even require it at my work but would like to know about this.
One more thing, (I don't know much about this XML):
Does RSS requires a page to be in XHTML/XML? To be clear, If I use RSS/Atom in my page, will my page be in XML or XHTML? (Can HTML handle this?)
Please explain me![]()




Reply With Quote
Bookmarks