Jump to content

I don't understand

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
9 replies to this topic

#1
dirkfirst

dirkfirst

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 354 posts
I don't understand what the difference is in HTML, XHTML, DHTML and any other HTMLs there is. Can someone explain?

#2
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
Just made a post

http://forum.codecal...l.html#post1116

#3
DevilsCharm

DevilsCharm

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 884 posts
I've read the post, but I'm still confused on some things. It says that no one can tell the difference between HTML and XHTML, so, what's the point of using XHTML?

#4
Dan

Dan

    Programmer

  • Members
  • PipPipPipPip
  • 145 posts
I personally wouldn't be overly bothered, "xhtml" is just neater when validated.

If you are going for a professional image, it is worth the extra time - but a html/css template will most likely be just as good as one that is xhtml - it is just about standards.

#5
DevilsCharm

DevilsCharm

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 884 posts
So the XHMTL code doesn't look much different. It's not exactly the same, right? That wouldn't work out...

#6
Guest_sn17_*

Guest_sn17_*
  • Guests
I heard something called SHTML. What is that?

#7
egon

egon

    Newbie

  • Members
  • PipPip
  • 13 posts
XHTML is just a very "clean" HTML. I personally use it (most of the time) but that's because I'm anal about my code.

I suggest using it but not obcessing over it. The reason it was created is for standards-compliance between browsers (meaning IE is really bad at rendering things correctly,) so that way if you are using valid XHTML, you can (usually) be assured that all browsers are seeing the site the same way.

Go to w3schools.com for more information on it, it does a pretty good job at explaining things.

#8
brendan

brendan

    Newbie

  • Members
  • PipPip
  • 15 posts

egon said:

XHTML is just a very "clean" HTML. I personally use it (most of the time) but that's because I'm anal about my code.

I think what egon is trying to say is that most browsers are written to render bad HTML correctly, XHTML forces you to code properly

XHTML is XML built to behave like HTML 4.01. Right now if you're just making static webpages, there isn't too much of a difference. However if you're using other XML languages and tools, like say XForms, it's a whole new world :)

#9
Guest_CheeseBurgerMan_*

Guest_CheeseBurgerMan_*
  • Guests
SHTML is HTML using SSI (Server Side Include). Similar to PHTML, but using SSI instead of PHP.

#10
brendan

brendan

    Newbie

  • Members
  • PipPip
  • 15 posts
Here is an awesome article explaing the difference between HTML, XHTML, and XML. It's an excellent read! From the article:

Quote

...the vast majority of supposedly XHTML documents on the internet are served as text/html. Which means they are not XHTML at all, but actually invalid HTML that’s getting by on the error handling of HTML parsers. All those “Valid XHTML 1.0!” links on the web are really saying “Invalid HTML 4.01!”.

http://webkit.org/blog/?p=68