© Risto Viita/Shutterstock
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.
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 ...