#1 (permalink)  
Old 04-03-2007, 09:28 AM
randle randle is offline
I Love This Place
 
Join Date: Mar 2007
Posts: 222
iTrader: (0)
randle is on a distinguished road
Default Whats the difference?

Whats the difference between Html and xhtml? Isn't that the same thing and if not what makes them so different. I ran into a site that does xhtml but all i know html for now.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-04-2007, 12:46 AM
mtajim mtajim is offline
Member
 
Join Date: Mar 2007
Posts: 308
iTrader: (0)
mtajim is on a distinguished road
Send a message via MSN to mtajim Send a message via Yahoo to mtajim
Default

HTML is older version and xHTML is a newer one based on XML , since in xml you have to maintain the disciple while coding , you cannot leave your tags open and there are many new issues with xml so xHTML was made on the base of XML so that sites can be more and more W3C compliant .
Reply With Quote
  #3 (permalink)  
Old 04-04-2007, 03:48 PM
randle randle is offline
I Love This Place
 
Join Date: Mar 2007
Posts: 222
iTrader: (0)
randle is on a distinguished road
Default

So since you say that there is problems of some sort is xhtml better or worse than html?
Reply With Quote
  #4 (permalink)  
Old 04-04-2007, 11:46 PM
mtajim mtajim is offline
Member
 
Join Date: Mar 2007
Posts: 308
iTrader: (0)
mtajim is on a distinguished road
Send a message via MSN to mtajim Send a message via Yahoo to mtajim
Default

There is not any problem in any language , i think you mis understood me ,

Main thing is that:

HTML is easy to code and you dont have to maintain the discipline while coding html
for example : you can open a tag in html and dont have to close it , this will work in html

but in Xhtml

if you open a tag you have to close it compulsorily else your whole site wont work , it will show a error

I hope you understand
Reply With Quote
  #5 (permalink)  
Old 04-05-2007, 12:08 AM
10cents 10cents is offline
New In Town
 
Join Date: Apr 2007
Posts: 35
iTrader: (0)
10cents is on a distinguished road
Default

Quote:
Originally Posted by randle View Post
So since you say that there is problems of some sort is xhtml better or worse than html?
Hi!

In addition to what mtajim said, the web is supposed to go the way of XML, which is, well, a different beast from HTML. However, we can't go directly from HTML to XML, as that would leave 99% of the web in the dark.

So W3C developed a compromise to bridge that gap, XHTML. So it looks something like this:

HTML ==> XHTML ==> XML

If you are just starting to code in HTML, it would be better to start in the right footing and go with XHTML. Actually, there's not much of a difference between the two, XHTML only being unforgiving. :D

You can find a list of tags accepted by XHTML HERE.

For a more definitive differentiation of HTML and XHTML, go HERE.

Hope that helps.

:D
Reply With Quote
  #6 (permalink)  
Old 04-05-2007, 10:20 AM
randle randle is offline
I Love This Place
 
Join Date: Mar 2007
Posts: 222
iTrader: (0)
randle is on a distinguished road
Default

Ok ok ok I started out with a simple question and got a huge complex anser, I'm so confused lol. Great thanks guys. :)
Reply With Quote
  #7 (permalink)  
Old 04-05-2007, 10:20 PM
britjojo britjojo is offline
New In Town
 
Join Date: Mar 2007
Posts: 46
iTrader: (0)
britjojo is on a distinguished road
Default

The KISS version would be;

HTML is very forgiving, allowing you to break rules left right and center. The web is moving towards compliance with a set of standards set by W3org. XHTML is used to STOP you breaking the rules. You gotta get it right or your page won't work.

Any help?
Reply With Quote
  #8 (permalink)  
Old 04-06-2007, 02:31 AM
mtajim mtajim is offline
Member
 
Join Date: Mar 2007
Posts: 308
iTrader: (0)
mtajim is on a distinguished road
Send a message via MSN to mtajim Send a message via Yahoo to mtajim
Default

Thats right , now you cannot break rules as before , html may be gone in few years then it will be the ugly XML ruling every place , aah i just hate to see that XML code , its all messed up , ,,. soory
Reply With Quote
  #9 (permalink)  
Old 04-06-2007, 12:04 PM
randle randle is offline
I Love This Place
 
Join Date: Mar 2007
Posts: 222
iTrader: (0)
randle is on a distinguished road
Default

Aww man and just when I have gotten to know html. I have gotten so comfortable with html that I would go crazy if I had to learn xhtml. For which it comes off to be a little confusing.
Reply With Quote
  #10 (permalink)  
Old 04-06-2007, 06:33 PM
britjojo britjojo is offline
New In Town
 
Join Date: Mar 2007
Posts: 46
iTrader: (0)
britjojo is on a distinguished road
Default

Technically speaking, if you learn HTML well and correctly then XHTML isn't that hard. The problems come when what you have learned is full of short cuts and errors.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 12:56 AM.
vBSkinworks


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. © FreelanceGossip.com