image

© Risto Viita/Shutterstock

chapter31

Browser Identification

AS THE CAPABILITIES YOU include within a webpage increase, you may want to determine a user’s browser type so that you can process accordingly. For example, you might want to customize the code you are using to integrate video, or you may want to format page content differently for a Web and mobile browser.

Learning Objectives

This chapter examines a few techniques you can use to determine a browser’s capabilities. By the time you finish this chapter, you will understand the following key concepts:

   What “hacks” are, and why Web developers try to avoid them

   How to determine a ...

Get Introduction to Web Development Using HTML 5 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.