Jump to content

What is the difference between...


knimbus

Recommended Posts

I started to learn JavaScript so I could use greasemonkey (firefox extension) but after going through the tutorial and learning quite alot, I decided that my html knowledge wasn't up to scratch.I thought then, are xhtml, xml and html the same type of thing, because I would rather learn xhtml than html just because I have heard people say its newer and slightly more "shiney".Anyone able to answer these queries?EDIT: Does PHP do the same too?

Link to comment
Share on other sites

html, xhtml and xml are the same things, no.http://www.w3.org/TR/html401/http://www.w3.org/TR/xhtml1/http://www.w3.org/XML/Basically, to make a long story short, you should take the time to learn XHTML and XML (should you want that). To code a website, you mainly need XHTML (and CSS for formatting).

Link to comment
Share on other sites

okay on there website you need to learn html because that has all the codes on it. Then you read the xhtml because it tells you what has changed and then xml is a completly different thing!

Link to comment
Share on other sites

Yeah there aint a great deal of diffrence in the coding between HTML and XHTML it just forces you to code pages better as it has strickter rules.

Link to comment
Share on other sites

Yeah there aint a great deal of diffrence in the coding between HTML and XHTML it just forces you to code pages better as it has strickter rules.

As johneva says, the codes are more stricter such as:In html, below code is okay to apply:
<br>

In XHTML, it should be:

<br />

Attributes should be in lower case such as <table width="100%"> but in html, it can <table width=100%>, DTD Declaration is a must, and so on.

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...