Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Web topic 25 mobile optimized website


Published on

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Web topic 25 mobile optimized website

  1. 1. Web Authoring Topic 25 –Mobile Optimized Websites
  2. 2. ObjectivesStudents should able to:1. Explain the need for mobile-optimized websites.2. Explain the difference between desktop and mobile experience of the web.3. List the limitations for mobile users.
  3. 3. Mobile-optimized websitesUntil recently, the way a website displayed ona mobile phone’s browser was only aperipheral concern for most web designers.Browsing on mobile devices still represents asmall percentage of all browsing.However, mobile browsing is growing at anastonishing rate.
  4. 4. Mobile-optimized websitesHow is the mobile experience of the webdifferent than the desktop?The most obvious answer to this question isscreen size. Comparing the screen resolution of a typical desktop screen (left) to a mobile screen (right) (This diagram is not to actual size)
  5. 5. Mobile-optimized websitesHow is the mobile experience of the webdifferent than the desktop?The two most common screen resolutionsin use today for desktop browsing are1024 x 768 pixels and 1280 x 800 pixels.Mobile phone resolutions can range from240 x 320 (for a non-smartphone) to 640 x960 (for a smartphone).
  6. 6. Mobile-optimized websitesYou also need to take into account screenorientation:For computer monitors, the defaultorientation is horizontal.For mobile phones, it is vertical.In addition, older mobile phones can onlydisplay web pages vertically, while newersmartphones can rotate the screen fromportrait to landscape format.
  7. 7. Limitations for Mobile users- Most websites are designed to be usedwith a mouse and keyboard. Modernsmartphones address this with touchscreens and QWERTY keyboards, but formany users, navigation on a cell phone islimited to arrow keys and numericalkeypads.
  8. 8. Limitations for Mobile users- Older mobile web browsers have limitedability to render CSS. For example, theymight ignore CSS layout such as floateddivs, but maintain the text styles.- Multimedia such as audio, video and Flashhave limited or no support on many mobiledevices. Javascript might also not besupported.
  9. 9. Limitations for Mobile users- The speed of the mobile phone’s internetconnection is a major factor in the user’sexperience. In addition to multimedia files,large images can slow down theperformance of a page.
  10. 10. Limitations for Mobile users- Many mobile devices have limitedprocessing power and memory, which mayresult in incomplete or delayed pagerendering. Features such as copy and pastemay either be completely missing orlimited.
  11. 11. Mobile-optimized websitesHow do websites know what browser youare using?There are hidden communications takingplace between your browser and theserver where the website is hosted.All web browsers identify themselveswith a user agent string.
  12. 12. Mobile-optimized websitesA user agent string identifies the visitingbrowser as Internet Explorer 8, iPhone OS3.0, and so on.You can add user agent detectors to yourweb pages.A detector can be a small piece ofJavaScript code that identifies the useragent (in this case, a visiting browser),and then changes the default behavior ofthe website in some way.
  13. 13. Style SheetsDifferent browsers render the exact samepage differently depending on variousfactors. This is especially the case withmobile web browsers.A solution to this problem was proposedin 1999 when the original specificationsfor CSS were developed.
  14. 14. Style SheetsThis code:<link rel=”stylesheet” href=”base.css”type=”text/css” />is the same as this code:<link rel=”stylesheet” media=”all”href=”base.css” type=”text/css” />
  15. 15. Style SheetsIn some cases, you can create a separatestyle sheet and attach it to your pages sothat certain handheld devices will usethis style sheet accordingly.An issue today is that some of the mostpopular and high-profile mobile webbrowsers do not announce themselvesas handheld devices at all.
  16. 16. CSS3 Media QueriesUse media queries in CSS3 to recognizedevices that are visiting your website.Instead of looking for a device thatannounces itself as handheld, a mediaquery looks at the capability of thedevice.
  17. 17. CSS3 Media QueriesFor example, the media query mightlook for the width and height of thebrowser window, the device width andheight, the device orientation(landscape or portrait), and theresolution, among other things.
  18. 18. Test Design on Mobile DevicesThe best way to test your page designs is tohave access to the mobile device in question.There is a category of software programscalled emulators that allow you to test yourdesigns in software versions of differentmobile devices.
  19. 19. Mobile Navigation TipsNavigation that is easy to use is key to thesuccess of your website.There are certain navigation guidelines youshould remember for mobile devices,particularly touchscreen mobile devices.
  20. 20. Mobile Navigation Tips- Navigation should be at or near top of thescreen so the user can easily access it.Consider repeating your navigation at thebottom of all your pages so the user does nothave to scroll back up when she is donereading a page.
  21. 21. Mobile Navigation Tips- For touchscreen devices, use a large targetsize for navigation links. This will preventaccidental clicking by your users.- Touchscreen devices do not have a hovercapability, which is triggered on the desktopby the cursor, so plan your styles accordingly.- Refrain from using image-based navigationand use list-based navigation that is styledwith CSS.