Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-13-2010, 10:31 AM   PM User | #1
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
mobile website - doctype question

Hi,

soon, I am to build a web sbite for use on mobile smartphones eg bl*ckb*rry and Iph*ne etc.

Which doctype should be used? I wonder if the usual XHTML 1.0 strict is OK, and to use a stylsheet for media='handheld' or should I use a specific doctype?

bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.

Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
Useful MySQL resource
Useful MySQL link
bazz is offline   Reply With Quote
Old 08-13-2010, 04:19 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,703
Thanks: 5
Thanked 875 Times in 850 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
There is an XHTML mobile doctype which defines a subset of regular XHTML for those devices that can’t handle full XHTML. However, although I won’t claim any inerrability I have heard that most devices nowadays can indeed handle full XHTML so you won’t run into major problems. But I guess how a certain device is performing depends on how complex your website is. In any case it is important to provide proper alternative content, or use the approach of progressive enhancement for your site(s) to provide at least basic functionality without compromising the information.

For example, the iPhone doesn’t support Flash so an alternative is mandatory. Also, many smart phones such as the aforementioned don’t pass themselves off as handheld devices, so a media type of “handheld” won’t help here, they just use the screen stylesheet (because they claim to display “the real internet”). There are ways to adress these devices with CSS3 media queries as described on Put Your Content in my Pocket (and there’s a follow-up article).

I hope that helps.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
bazz (08-13-2010)
Old 08-13-2010, 06:54 PM   PM User | #3
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
Stephan thank you very much for that.

There isn't much flash content (yet) and for what I need, it wouldn't really be necessary for a mobile user.

Some reading for the weekend me thinks

bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.

Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
Useful MySQL resource
Useful MySQL link
bazz is offline   Reply With Quote
Old 08-14-2010, 04:39 AM   PM User | #4
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,292
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
The browsers on the blackberry suck. I have a blackberry and I hate it. Sure it kept me organized but browsing online isn't great. The browser buckles on larger pages. It can use some kind of IE rendering engine. There were talks of Skyfire being made for blackberry but I don't think there have been any updates on that.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 04:06 AM.


Advertisement
Log in to turn off these ads.