Jump to content

What is the Most Recent XHTML Doctype?

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

What is the Most Recent XHTML Doctype? Rate Topic: -----

#1 User is offline   The Lion 

  • W.R. Private
  • Group: Members
  • Posts: 40
  • Joined: 04-January 08
  • Gender:Male
  • Location:Connecticut
  • Interests:Experimenting with font-end web design, making my lovely wife happy, and working toward owning a home and having kids.

Post icon  Posted 20 January 2008 - 06:04 AM

I was reading around in other forums (shame on me, I know), and I heard something about XHTML 1.1 and 2.0, and whatnot. Are these smaller, better versions of XHTML Strict 1.0?

This is important to me because if I'm going to start coding along DTD lines, I really want to go with the best and latest, and then keep up on it as the standards evolve.

Any ideas?
0

#2 User is offline   marcamos 

  • W.R. General
  • Group: Administrators
  • Posts: 2,849
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA

Posted 20 January 2008 - 09:59 AM

XHTML 1.1 is definitely the latest not-in-draft DOCTYPE, but it requires that the content be served as application/xhtml+xml instead of the more common text/html. Normally, this would be fine, but Internet Exploder 6 doesn't understand application/xhtml+xml. This basically forces everyone who cares for their site to work in IE6 to use XHTML 1.0 Strict.

XHTML 2, which is still in working draft, is a giant leap forward, but far from being standard and up against some stiff competition (HTML 5). Read this for more information: http://www.digital-web.com/articles/html5_...ure_of_the_web/
0

#3 User is offline   The Lion 

  • W.R. Private
  • Group: Members
  • Posts: 40
  • Joined: 04-January 08
  • Gender:Male
  • Location:Connecticut
  • Interests:Experimenting with font-end web design, making my lovely wife happy, and working toward owning a home and having kids.

Post icon  Posted 20 January 2008 - 10:49 AM

Thanks, I'll check it out...
0

#4 User is offline   temhawk 

  • W.R. Private First-Class
  • Group: Members
  • Posts: 322
  • Joined: 30-August 07
  • Gender:Male
  • Interests:travel, cg art, macs, music, skateboarding, programming, discovery channel, TextMate 2

Posted 16 February 2008 - 08:44 AM

I read that article and even though some of it confused me, found it informative. The concluding paragraph especially made me skeptical of whether it is good to make my pages for XHTML.

I used to think that XHTML is the successor of HTML, and while it should be as far as I understood it, it wont be because of the non-existing support for XHTML's next version (XHTML2). So I guess it'd be better for me to adapt HTML markup again in thought of the future??

-----------------------------------------------------------------------------------------

I also had this problem one or two weeks ago with one of my web-pages: it would display fine in Safari, Firefox and Opera but would display the source code in IE (wtf?!).

For days I was absolutely clueless as to why IE did that; it also made me hate IE even more, as if I didn't hate it enough already (Posted Image). Then I started thinking: 'It's absolutely valid XHTML 1.0 Transitional, it's got to be something at the top!' So I looked at the top of my code...

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>...


and changed it to...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />...


which then made the page display correctly in IE too.

And obviously that had something to do with Microsoft's inability to make a browser that doesn't just happens to be the worst piece of software I can think of right now.


Anyway, my concern is whether it'd be good to continue developing for XHTMl or start getting used to HTML.

This post has been edited by temhawk: 16 February 2008 - 08:45 AM

0

#5 User is offline   Antoan123 

  • W.R. Private
  • Group: Members
  • Posts: 1
  • Joined: 25-August 08

Posted 25 August 2008 - 06:23 AM

DOCTYPES THAT WORK
The following complete DOCTYPEs are the ones we need:

HTML 4.01 Strict, Transitional, Frameset
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
XHTML 1.0 Strict, Transitional, Frameset
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
XHTML 1.1 DTD
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
0

#6 User is offline   soumali 

  • W.R. Private
  • Group: Members
  • Posts: 2
  • Joined: 15-September 09

Posted 15 September 2009 - 04:29 AM

Document Type Definitions (DTD) of XHTML coding is the same as the DTD of HTML coding. If you venture into learning XML, you will also be learning about creating an actual DTD file. For the purposes of a regular XHTML document, a standard DTD from the W3C can be used.

The DTD tag goes at the start of your coding before the starting html tag. There is no closing tag or termination for the DTD tag.

There are 3 Doctypes usable by an XHTML document. Strict, Transitional, and Frameset. The doctype is used when validating an XHTML document's content against a DTD and reporting markup errors. (The DOCTYPE lines below are broken in parts only to prevent the examples from being too wide for non-horizontal scrolling - you can keep it all on one line).

XHTML 1.0 Strict

Use this when you want really clean markup, free of presentational clutter. Use this together with Cascading Style Sheets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


XHTML 1.0 Transitional

Use this when you need to take advantage of HTML's presentational features because many of your readers don't have the latest browsers that understand Cascading Style Sheets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


XHTML 1.0 Frameset

Use this when you want to use HTML Frames to partition the browser window into two or more frames.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">








Web Site Promotions
0

#7 User is offline   temhawk 

  • W.R. Private First-Class
  • Group: Members
  • Posts: 322
  • Joined: 30-August 07
  • Gender:Male
  • Interests:travel, cg art, macs, music, skateboarding, programming, discovery channel, TextMate 2

Posted 15 September 2009 - 07:04 AM

Hi soumali, I understand doctypes pretty well now, but I'm sure someone else will benefit from your explanation. It should also be mentioned that using an XHTML doctype has no practical advantage when the server doesn't send it with the correct MIME type. And browsers must interpret it as such too according to the XML standards, which is a big issue when you want to make the site as compatible as possible, because a lot of browsers still have their flaws, some more than others...
0

#8 User is offline   joshua brown 

  • W.R. Private
  • Group: Members
  • Posts: 2
  • Joined: 13-November 09

Posted 07 December 2009 - 09:00 PM

Hi temhawk..

As you said it was very helpful to others like me..
but how do you inculcate all types together, if you want all the features to be used in your application, sorry if the ques was stupid.. I was a newbie to XHTML.

Thanx

_________________________
Web Development Services
0

#9 User is offline   maggie 

  • W.R. Private
  • Group: Members
  • Posts: 3
  • Joined: 17-May 10

Posted 18 May 2010 - 12:36 AM

The XHTML 1.1 document type is a fully functional document type with rich semantics. It is not, however, as varied in functionality as the XHTML 1.0 Transitional or Frameset document types. These document types defined many presentational components that are better handled through style sheets or other similar mechanisms. Moreover, since the XHTML 1.1 document type is based exclusively upon the facilities defined in the XHTML modules [XHTMLMOD], it does not contain any of the deprecated functionality of XHTML 1.0 nor of HTML 4. Despite these exceptions, or perhaps because of them, the XHTML 1.1 document type is a solid basis for future document types that are targeted at varied user agent environments.
0

#10 User is offline   siddu 

  • W.R. Private
  • Group: Members
  • Posts: 2
  • Joined: 11-October 10
  • Gender:Male
  • Location:Hyderabad

Posted 11 October 2010 - 02:56 AM

Yes XHTML 1.1 is most recent XHTML Doctype..
SIDOOZ is a Trouble shooting Blog

http://www.sidooz.com/
0

#11 User is offline   che09 

  • W.R. Corporal
  • Group: Members
  • Posts: 50
  • Joined: 22-November 10

Posted 29 November 2010 - 06:27 PM

XHTML 1.0 ,recommended on 2000..
XHTML 1.1,on 2001..
XHTML5,undergoing development as of 2009 as part of the HTML5 specification.
0

#12 User is offline   Joe Develper 

  • W.R. Corporal
  • Group: Members
  • Posts: 50
  • Joined: 07-December 10
  • Gender:Male
  • Interests:Web development, Internet Surfing etc.

Posted 09 December 2010 - 07:03 AM

Use the HTML5 one:

HTML Code:

<!DOCTYPE html>

It's the shortest way to trigger standards mode in any browser. :whistling1:
0

#13 User is offline   denny 

  • W.R. Private
  • Group: Members
  • Posts: 23
  • Joined: 31-March 10

Posted 24 December 2010 - 08:15 AM

XMHTL 1,0 used for this purpose.
0

#14 User is offline   Rob Kaper 

  • W.R. Corporal
  • Group: Members
  • Posts: 97
  • Joined: 19-July 08
  • Gender:Male
  • Location:Rotterdam, NLD

Posted 11 January 2011 - 10:13 AM

View PostJoe Develper, on 09 December 2010 - 07:03 AM, said:

It's the shortest way to trigger standards mode in any browser. :whistling1:


Also, you can legitimately serve your pages as "text/html". To comply with standards you should serve XHTML as "application/xhtml+xml" (some exceptions for XHTML 1.0 exist), but Googlebot breaks on that content type. HTML5 is definitely the way to go.

This post has been edited by Rob Kaper: 11 January 2011 - 10:13 AM

Rob Kaper - Rotterdam
0

#15 User is offline   JakeMcGreg 

  • W.R. Private
  • Group: Members
  • Posts: 46
  • Joined: 15-December 10

Posted 17 January 2011 - 10:27 PM

Thanks for the info Rob. Now I know that Googlebot breaks on that content type. I'm a newbie and starting to learn new things here. Thanks again!
Website Design Packages - CMS Website, SEO Tools & a personalised 12 month strategy guide
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users