Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

12 HOUR 1: Improving Mobile Web Application Development with HTML5 Summary In this hour, you have learned how HTML started and the reasons for the move from HTML to XHTML to HTML5. You know the basic differences between HTML 4, XHTML 1, and HTML5 as well as what web applications are and how they relate to the Open Web Standard. You learned how to write a basic HTML web page and why HTML5 fits in so well with mobile devices. You also learned some powerful tips for building mobile web pages. The most important things to remember from this hour are the best practices for building a website for mobile users: . Focus first on building a website or application for every user, not just mobile ones. . Determine who your mobile users are and what they are looking for, and present that content to them first, but not only that content. . Build a site that uses standards-based technology so that your applications are more future proofed. . Always test your sites and applications in as many web browsers and devices as you can. Q&A Q. I am not familiar with HTML, and I'm worried that I will have trouble building an HTML5 application. Do I need to know HTML 4 before I learn HTML5? A. Although knowing HTML 4 will make moving forward easier for you, learning HTML5 is a fairly straightforward process. Although this book focuses mostly on HTML5, by copying the code samples provided and looking at the source files for the companion website (www.html5in24hours.com/), you should be able to figure it out. Q. I already have a website, and I want to make sure that mobile users can get the most out of it. How do I make sure that I am providing what mobile users need? A. The best way to do this is to ask them. Surveys asking your customers how they access your site and what parts are most useful to them are a good indicator of what they want. But you can also look at your web statistics. If you don't have analytics on your website, I recommend installing one such as Google Analyt- ics or Piwik to track what people are looking at on your site. After you know what the popular pages are, you can ensure those pages are easy to access in your mobile version.