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.
What is the Most Recent XHTML Doctype?
#1
Posted 20 January 2008 - 06:04 AM
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?
#2
Posted 20 January 2008 - 09:59 AM
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/
#3
Posted 20 January 2008 - 10:49 AM
#4
Posted 16 February 2008 - 08:44 AM
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 (
). 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
#5
Posted 25 August 2008 - 06:23 AM
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">
#6
Posted 15 September 2009 - 04:29 AM
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
#7
Posted 15 September 2009 - 07:04 AM
#8
Posted 07 December 2009 - 09:00 PM
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
#9
Posted 18 May 2010 - 12:36 AM
#10
Posted 11 October 2010 - 02:56 AM
#11
Posted 29 November 2010 - 06:27 PM
XHTML 1.1,on 2001..
XHTML5,undergoing development as of 2009 as part of the HTML5 specification.
#12
Posted 09 December 2010 - 07:03 AM
HTML Code:
<!DOCTYPE html>
It's the shortest way to trigger standards mode in any browser.
#13
Posted 24 December 2010 - 08:15 AM
#14
Posted 11 January 2011 - 10:13 AM
Joe Develper, on 09 December 2010 - 07:03 AM, said:
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
#15
Posted 17 January 2011 - 10:27 PM


Help
This topic is locked
MultiQuote











