New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

HTML 5 vs. XHTML


Post Reply New Thread Subscribe

 
Thread Tools
kahlil88

 
kahlil88's Avatar
 
Member Since: Jan 29, 2008
Location: Mendocino, CA
Posts: 678
kahlil88 is a jewel in the roughkahlil88 is a jewel in the rough
Mac Specs: 17" MacBook Pro A1151 2.16 GHz

kahlil88 is offline
I learned HTML in 2000 and sharpened my skills over the next few years, but lately have converted to XHTML. I've been hearing a lot about HTML 5 in the news, and I'm wondering if I should stick with XHTML or switch to the new HTML 5 specification. Is there any particular reason to favor one over the other?

There is no system but GNU and Linux is one of its kernels.
Join the FSF as an Associate Member!

QUOTE Thanks
eddielee

 
eddielee's Avatar
 
Member Since: Sep 19, 2008
Location: Nottingham, UK
Posts: 302
eddielee is on a distinguished road
Mac Specs: 20" iM ac,13.3" Aluminium Unibody Macbook, iPhone 4

eddielee is offline
Taken from the HTML5 manual

Quote:
1.6 HTML vs XHTML

This section is non-normative.

This specification defines an abstract language for describing documents and applications, and some APIs for interacting with in-memory representations of resources that use this language.

The in-memory representation is known as "DOM5 HTML", or "the DOM" for short.

There are various concrete syntaxes that can be used to transmit resources that use this abstract language, two of which are defined in this specification.

The first such concrete syntax is "HTML5". This is the format recommended for most authors. It is compatible with all legacy Web browsers. If a document is transmitted with the MIME type text/html, then it will be processed as an "HTML5" document by Web browsers.

The second concrete syntax uses XML, and is known as "XHTML5". When a document is transmitted with an XML MIME type, such as application/xhtml+xml, then it is processed by an XML processor by Web browsers, and treated as an "XHTML5" document. Authors are reminded that the processing for XML and HTML differs; in particular, even minor syntax errors will prevent an XML document from being rendered fully, whereas they would be ignored in the "HTML5" syntax.

The "DOM5 HTML", "HTML5", and "XHTML5" representations cannot all represent the same content. For example, namespaces cannot be represented using "HTML5", but they are supported in "DOM5 HTML" and "XHTML5". Similarly, documents that use the noscript feature can be represented using "HTML5", but cannot be represented with "XHTML5" and "DOM5 HTML". Comments that contain the string "-->" can be represented in "DOM5 HTML" but not in "HTML5" and "XHTML5". And so forth.

Thanks, Eddie
Software Engineering Student, NTU
QUOTE Thanks
eddielee

 
eddielee's Avatar
 
Member Since: Sep 19, 2008
Location: Nottingham, UK
Posts: 302
eddielee is on a distinguished road
Mac Specs: 20" iM ac,13.3" Aluminium Unibody Macbook, iPhone 4

eddielee is offline
If that made no sence...

XHTML will have the new features that HTML5 gains, XHTML is just the standardized version.

The only changes are new tags like <nav> and <footer> which act exactly the same as a <div> tag but basically allows search engines to know what there looking at and small screen devices render pages better... so like will help into the move to web 3.0 and beyond.

Thanks, Eddie
Software Engineering Student, NTU
QUOTE Thanks

Post Reply New Thread Subscribe


« Good Starter Webhosting | I'm trying to build a web site... »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
not displaying HTML files rianm7 Web Design and Hosting 5 09-15-2011 06:10 AM
Batch Update HTML Files? hadfiiw Web Design and Hosting 2 01-13-2009 07:45 AM
Sending HTML through Email pyrofusion Web Design and Hosting 4 08-11-2008 03:32 PM
Problems using HTML with Entourage markw10 OS X - Apps and Games 4 09-18-2007 05:18 PM
#include for HTML? mac57 Web Design and Hosting 9 01-14-2007 01:58 PM

All times are GMT -4. The time now is 01:05 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?