Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 2393 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Differences between HTML, XHTML and DHTML

Thread title: Differences between HTML, XHTML and DHTML
Reply    
    Thread tools Search this thread Display Modes  
12-08-2010, 01:43 PM
#1
mac is offline mac
Status: Junior Member
Join date: Nov 2010
Location:
Expertise:
Software:
 
Posts: 49
iTrader: 0 / 0%
 

mac is an unknown quantity at this point

  Old  Differences between HTML, XHTML and DHTML

I'm familiar with HTML and CSS, having done some website programming myself several years ago. But I'm not well-versed with XHTML and DHTML.

So, please bear with me with this: What are the differences between HTML, XHTML and DHTML?

Reply With Quote
Thanked by:
12-08-2010, 03:48 PM
#2
Hero is offline Hero
Hero's Avatar
Status: Very much the flyest.
Join date: Mar 2006
Location: Belgium
Expertise:
Software:
 
Posts: 1,171
iTrader: 1 / 100%
 

Hero is on a distinguished road

  Old

XHTML is HTML rewritten to follow XML guidelines, so it can work with XML based clients/agents. It's just a slightly differenct syntax, every tag must be closed, tags can't overlap each other...

I don't know anything about DHTML.

12-08-2010, 05:06 PM
#3
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

Originally Posted by mac View Post
What are the differences between HTML, XHTML and DHTML?

HTML

This is a broad umbrella under which other topics shelter. For the purposes of differentiating HTML from XHTML, the former is taken to mean "SGML-based HTML". That is, the traditional HTML that makes up the web.

XHTML

As traditional HTML is SGML-based, XHTML is XML-based. Because an XHTML document is an XML document, it must follow the latter's rules with the most common difference between it and HTML being that all elements must have closing tags (<p>…</p>) or close themselves (<br />). With HTML, closing tags are optional (<p>…. and <br> are fine).

There are a whole heap of other differences, great and small, but they're just a Google search away.

DHTML

Unlike HTML and XHTML, DHTML is not a type of document. It means "Dynamic HTML" and is a term used to encompass the use of a range of technologies ((X)HTML, JavaScript, CSS …) in order to change the page after it has loaded (i.e. changing a static page into a dynamic one). DHTML is quite an old term and is used far less than it once was.

Thanked by:
Gaz (12-18-2010)
12-08-2010, 06:21 PM
#4
Jake B is offline Jake B
Jake B's Avatar
Status: Member
Join date: Aug 2007
Location: SF
Expertise: Coder
Software: Sublime Text, Google Chrome
 
Posts: 211
iTrader: 1 / 100%
 

Jake B is on a distinguished road

Send a message via AIM to Jake B

  Old

I'd stick with XHTML primarily. There's really no difference, it's just that validation is a lot tougher than HTML (XHTML has more rules), and it forces you to just read cleaner code.

Reply With Quote
12-17-2010, 11:47 PM
#5
krymson is offline krymson
krymson's Avatar
Status: I'm new around here
Join date: Dec 2010
Location: Houston, USA
Expertise: SEO, Design, Programming
Software: Dreamweaver & Notepad++
 
Posts: 22
iTrader: 0 / 0%
 

krymson is on a distinguished road

Send a message via Skype™ to krymson

  Old

Xhtml is going to be your best bet with any coding. It's going to be cleaner, more organized and better for static sites. Now if you're looking to make your website more dynamic then I would go with php.

Reply With Quote
12-18-2010, 04:01 AM
#6
Jordan is offline Jordan
Jordan's Avatar
Status: #pugs {display: block;}
Join date: Jan 2007
Location: Chicago
Expertise: CSS, HTML, PHP
Software: Sublime Text 2
 
Posts: 1,187
iTrader: 7 / 100%
 

Jordan is on a distinguished road

  Old

Originally Posted by krymson View Post
Xhtml is going to be your best bet with any coding. It's going to be cleaner, more organized and better for static sites. Now if you're looking to make your website more dynamic then I would go with php.
How is XHTML going to be cleaner, more organized and better for static sites? It's up to the individual writing the code to make sure it's "clean" (validated?), organized and "better" for static sites.

I can use HTML 4.1 and have it validate under strict compliance and have just as good (if not better) of a site with clean and organized code.

Same can be said for HTML5.

Reply With Quote
12-18-2010, 05:49 AM
#7
mac is offline mac
Status: Junior Member
Join date: Nov 2010
Location:
Expertise:
Software:
 
Posts: 49
iTrader: 0 / 0%
 

mac is an unknown quantity at this point

  Old

Thanks for the replies folks. I see that Blogger uses XHTML then. I notice the space+"/" at the close of every "br" code. I've studied HTML before to help me with my blogging. The slight variation in the syntax has mystified me but I didn't bother to investigate til now

Reply With Quote
12-22-2010, 12:46 PM
#8
mac is offline mac
Status: Junior Member
Join date: Nov 2010
Location:
Expertise:
Software:
 
Posts: 49
iTrader: 0 / 0%
 

mac is an unknown quantity at this point

  Old

Now that you're mentioning XML, may I ask what does has to do with the new format of MS Office files? Files now have "x" added to the prefix (docx, xlsx, pptx). I gathered --- but I'm not sure --- that "x" refers to XML.

Reply With Quote
12-22-2010, 06:43 PM
#9
Jordan is offline Jordan
Jordan's Avatar
Status: #pugs {display: block;}
Join date: Jan 2007
Location: Chicago
Expertise: CSS, HTML, PHP
Software: Sublime Text 2
 
Posts: 1,187
iTrader: 7 / 100%
 

Jordan is on a distinguished road

  Old

Originally Posted by mac View Post
Now that you're mentioning XML, may I ask what does has to do with the new format of MS Office files? Files now have "x" added to the prefix (docx, xlsx, pptx). I gathered --- but I'm not sure --- that "x" refers to XML.
Yes, it does: http://en.wikipedia.org/wiki/Office_Open_XML

Reply With Quote
12-22-2010, 08:06 PM
#10
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

shrikrishnatech, that's some good copy-and-pasting there.

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed