Using the Safari Developer Tools' User Agent switcher

For developing mobile-first applications, you will need to deploy them locally and test the various features you have developed. Many of the responsive web recipes we have worked on so far relied on media queries to determine layout based on size to deliver the optimized view of your site. This is not the only way in which apps can deliver mobile layout, there are more. One method is, by sniffing the user agent.

You may already know about the user agent, but let's assume you don't. Besides, knowing everything already simply defeats the purpose of buying this course, now doesn't it? The user agent exists in the request header and identifies the client software making the request. It contains ...

Get HTML5 and CSS3: Building Responsive Websites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.