SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Mobile Site

  1. #1
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mobile Site

    Can I use this xhtml and CSS codeing I'm learning to make a website that can be viewed on mobile devices in Australia?

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    Yes. The same (x)html and CSS will work fine on mobiles. You can offer up slightly different CSS to mobiles if you want that are optimized for mobiles, but it's not essential. It's just an optional enhancement.

    EDIT: of course, different mobiles have different support for CSS. I'm thinking of smartphones like iPhone and Android devices, but any mobile with web connectivity will be happy with html and some CSS. For really simple mobiles, the key is to keep styles very simple--just a bit of coloring, basically. Fancy layouts will struggle to display well.

    One thing you can do is view a site in Opera and choose mobile view to get a sense of what the mobile view might look like. There are also some online testing tools that purport to give you some idea of how various mobiles will render the site, such as http://www.springbox.com/mobilizer/

  3. #3
    Life is not a malfunction gold trophysilver trophybronze trophy
    TechnoBear's Avatar
    Join Date
    Jun 2011
    Location
    Argyll, Scotland
    Posts
    5,334
    Mentioned
    214 Post(s)
    Tagged
    5 Thread(s)
    There's a special version of the W3C Validator for checking mobile compatibility, which might help: http://validator.w3.org/mobile/

    There's also a version of xhtml called xhtml basic, which is supposed to work with all phones, even the most basic. It's just a subset of the standard rules. However, most modern phones can handle "normal" (x)html, as ralph.m says, so unless you have to support very basic handsets, you don't need to worry about it.

  4. #4
    SitePoint Enthusiast
    Join Date
    Nov 2011
    Posts
    78
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for making that clear to me.
    Barry


Bookmarks

Posting Permissions

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