Jump to content

Please Help Me out !!!


Guest Prashant Dave

Recommended Posts

Guest Prashant Dave

Hello, I am using HTML 4.0 DTD. My some of code is in XHTML 1.0 I want to check out what manual changes are needed in XHTML 1.0 file to make it compatible with HTML 1.0

Link to comment
Share on other sites

xhtml is an updated version of htmlIts basically a much cleaner version, with properly nested tags and relies more on CSS for styling than older tags like center and font. Plus its more to do with divs for layout than tables.try this - http://www.w3schools.com/xhtml/default.asp:)

Link to comment
Share on other sites

That tutorial is deffinately helpful.XHTML is really no more than a few rules for HTML. Things like properly nested tags, all tags in lowercase, a reauired DTD, certain tages change, like <br> changes to <br />. Reading the tutorial will definately help though.

Link to comment
Share on other sites

One big difference is that it forces you to become a better coder. The syntax is more strict, so you need to pay better attention to the code. It isn't any more difficult, just a new set of rules, is all.

Link to comment
Share on other sites

What makes xhtml better than html actually? :)
for example , you write these code <b>Proud to be W3schools member</b>but for some reason you lost the part of code , it becomes <b>Proud to be </b>With XHTML you can write <w3schools>Proud to be W3schools member</w3schools>so If you lost some code like above , the tag will remind you what is lostSomething likes that :)
Link to comment
Share on other sites

Yep, instead of for example; <b><i>text</b></i> you have to write <b><i>text</i></b> or <i><b>text</b></i>
actually HTML 4.01 DTDs (http://www.w3.org/TR/html4/loose.dtd, http://www.w3.org/TR/html4/strict.dtd etc) say you must have correctly nested tags, so this is not an advantage.The only real advantage is that you can use it with XML, which people rarely do...Take for example http://www.croatiankid.com/, my site. There is absolutely no reason to convert it to XHTML. In fact, if I were to make it XHTML, the total file size would actually increase.An example of the advantages is you can use MathML with it.Oh yeah, one more thing: Internet Explorer 6, the most popular browser in the world, doesn't support XHTML by default (1.0 strict should have a "application/xhtml+xml" MIME type, 1.1 must).Also, you should read this: sending xhtml as html considered harfmful
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...