TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 01-16-2009, 04:30 PM   #1 (permalink)
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Default Which DocType for the most accessbile / mobile / cross browser site?

Hello all,

I am starting a design from scratch. I would like the site to be accessible / 508 compliant, mobile friendly and cross browser compatible.

Is there a doctype that would be the best one to use and why?

Currently I am thinking of using:

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
From what I have read, this would be the best, but haven't gotten a real firm grasp of why this would be important.

Thanks!
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote
Old 01-16-2009, 05:05 PM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

How about one of the XHTML Mobile Profile DOCTYPES?

xml Code:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

 
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN"
"http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">

 
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN"
"http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 01-16-2009, 05:16 PM   #3 (permalink)
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Default

Do those DOCTYPE's have any issues when just rendering in the standard web browsers? Could I use a mobile DOCTYPE for the entire site? Or would it be best to create a subdirectory redirect?
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote
Old 01-16-2009, 06:40 PM   #4 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

You could try, but I suspect it will to problems if you use the mobile DOCTYPE on a computer. I think you should have a sub-directory redirect. But of course, try the mobile DOCTYPE first on both platforms, and also try the XHTML Strict in the same scenario, as I am not too sure when it comes to this. Sorry.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 01-17-2009, 11:02 AM   #5 (permalink)
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

Because you can't properly design a website for a desktop and mobile device in one - because of the huge difference in screen size f.e. - this is what I am always doing:

First I design the desktop website, mostly with a XHTML 1.0 Strict DOCTYPE <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">, but there is nothing wrong with using your HTML 4.01 Strict DOCTYPE either.

Then, after I have finished the desktop website, I design a mobile website and put it for example on a subdomain or dotMobi domain (m.domain.com or domain.mobi). For this mobile website I use the following DOCTYPE: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">

Then you can forward any mobile device to the mobile version or you can put a link to the mobile version on the desktop version. Although I haven't tested this script, it seems like this one will do: http://detectmobilebrowsers.mobi/.

Good luck!
maZtah is offline  
Reply With Quote
The Following User Says Thank You to maZtah For This Useful Post:
buildakicker (01-21-2009)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
cross browser issues Evulness XHTML, HTML, CSS 5 08-18-2008 04:18 PM


All times are GMT. The time now is 11:57 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design