Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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

#1 User is offline   The Lion

  • W.R. Private
  • Icon
  • 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   Marc Amos

  • W.R. General
  • Icon
  • Group: Administrators
  • Posts: 2,835
  • Joined: 04-April 06
  • Gender:Male
  • Location:Massachusetts - USA
  • Interests:My wife's happiness, my own happiness, and front-end web development. In that order.

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-w...ure_of_the_web/
0

#3 User is offline   The Lion

  • W.R. Private
  • Icon
  • 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
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 30-August 07
  • Gender:Male
  • Location:Vienna, Austria
  • Interests:travel, cg art, mac in general, music, skateboarding, relaxing, webdesign

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
  • Icon
  • 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
  • Icon
  • 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
  • Icon
  • Group: Members
  • Posts: 263
  • Joined: 30-August 07
  • Gender:Male
  • Location:Vienna, Austria
  • Interests:travel, cg art, mac in general, music, skateboarding, relaxing, webdesign

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
  • Icon
  • 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   sarona

  • W.R. Private
  • Icon
  • Group: Members
  • Posts: 39
  • Joined: 09-February 10

Posted 09 February 2010 - 04:26 AM

Hello,

Meta tags are as old as the web itself. Being the original means in which search engines functioned. They have managed to hang around and are still important in search engine optimization today. Who knew that the order in which meta tags appear in the HTML documents really mattered.

This is a new validation error since it does not appear in HTML 4.1, or XHTML 1 or 1.1 doctypes.

Thanks.
0

#10 User is offline   maggie

  • W.R. Private
  • Icon
  • 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

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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