knimbus Posted May 1, 2006 Share Posted May 1, 2006 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 More sharing options...
Jonas Posted May 1, 2006 Share Posted May 1, 2006 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 More sharing options...
Sunati Posted May 1, 2006 Share Posted May 1, 2006 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 More sharing options...
knimbus Posted May 1, 2006 Author Share Posted May 1, 2006 what is XML? Link to comment Share on other sites More sharing options...
johneva Posted May 1, 2006 Share Posted May 1, 2006 what is XML?<{POST_SNAPBACK}> http://www.w3schools.com/xml/xml_whatis.asp Link to comment Share on other sites More sharing options...
knimbus Posted May 1, 2006 Author Share Posted May 1, 2006 ok so basically, I should learn html and then read how to 'convert' it to xhtml? Link to comment Share on other sites More sharing options...
johneva Posted May 1, 2006 Share Posted May 1, 2006 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 More sharing options...
jojay Posted May 5, 2006 Share Posted May 5, 2006 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.<{POST_SNAPBACK}> 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now