Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    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

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,636
    Thanks
    6
    Thanked 1,003 Times in 976 Posts
    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.

  • Users who have thanked VIPStephan for this post:

    bazz (08-13-2010)

  • #3
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    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

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •