I keep hearing about xhtml, but I gotta admit that I don't really understand what the difference is between XHTML and plain old HTML. I know, its kind of embarassing, I should know this.
How are they different? What is XHTML used for? and what are the advantages of using XHTML? thanks
xhtml is newer and follows more strict rules. The output of the two can be basically the same, and most xhtml code is html code. Like he said, read there for any other info if you want.
XHTML is a version of html reformed to conform to XML standards. (XML itsself is quite fluffy, that's not to say good things don't come of it) It is the first step to cleaner markup. The next step is modularisation (XHTML 2.0). Mobile and embedded devices need to be able to parse syntax quickly using the little power they have. If you use strict XHTML then the idea is that very low power platforms will be able to use your site and programs (such as search engines) will be able to efficiently understand. Finally there are more schematic tags coming about so if they are used then your site will be more accessable.
It's good but you shouldn't get to bogged down it trying to get it perfect, I can and it's annoying and for the most part impractical.
If you convert your HTML to XHTML, then your site can better conform to higher standards like XML. You can try to validate your site with W3C of how much your site is XHTML compatible.
But I feel that it is more tiring to put the /> behind of tags that doesn't have a closing. Just don't feel like it.
How much more work is putting a /> compared to >?
XHTML is more standard so it works on most of the browsers with the same behavior . it's more restricted than HTML costruction .every tag should be closed ,lowercase ..etc
you can convert your HTML pages to XHTML format using Tidylib , and you can validate it through the W3C XHTML validator .
XHTML is the new web standard, can be viewed on mobile devices (e.g. psp, handy, etc.) must have a "clean code" to function, and is all lowercase pretty much (a few exceptions)