|
|
|
|
Thread title: Differences between HTML, XHTML and DHTML |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
12-08-2010, 01:43 PM
|
#1
|
Status: Junior Member
Join date: Nov 2010
Location:
Expertise:
Software:
Posts: 49
|
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?
|
|
12-08-2010, 03:48 PM
|
#2
|
Status: Very much the flyest.
Join date: Mar 2006
Location: Belgium
Expertise:
Software:
Posts: 1,171
|
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
|
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
Posts: 3,820
|
Originally Posted by mac
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.
|
|
12-08-2010, 06:21 PM
|
#4
|
Status: Member
Join date: Aug 2007
Location: SF
Expertise: Coder
Software: Sublime Text, Google Chrome
Posts: 211
|
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.
|
|
12-17-2010, 11:47 PM
|
#5
|
Status: I'm new around here
Join date: Dec 2010
Location: Houston, USA
Expertise: SEO, Design, Programming
Software: Dreamweaver & Notepad++
Posts: 22
|
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.
|
|
12-18-2010, 04:01 AM
|
#6
|
Status: #pugs {display: block;}
Join date: Jan 2007
Location: Chicago
Expertise: CSS, HTML, PHP
Software: Sublime Text 2
Posts: 1,187
|
Originally Posted by krymson
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.
|
|
12-18-2010, 05:49 AM
|
#7
|
Status: Junior Member
Join date: Nov 2010
Location:
Expertise:
Software:
Posts: 49
|
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
|
|
12-22-2010, 12:46 PM
|
#8
|
Status: Junior Member
Join date: Nov 2010
Location:
Expertise:
Software:
Posts: 49
|
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.
|
|
12-22-2010, 06:43 PM
|
#9
|
Status: #pugs {display: block;}
Join date: Jan 2007
Location: Chicago
Expertise: CSS, HTML, PHP
Software: Sublime Text 2
Posts: 1,187
|
Originally Posted by mac
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
|
|
12-22-2010, 08:06 PM
|
#10
|
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
Posts: 3,820
|
shrikrishnatech, that's some good copy-and-pasting there.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|