28 ◾ Lauren Collins
types, which styles the page for monitor display using a computer.
e other is for the mobile device; it styles the page for smartphones
and tablets. If you have ever tried this, you already know that many
devices do not support the handheld media type; they display their
pages with the screen media type instead. Older devices do not sup-
port CSS at all.
Use PHP, JSP, and ASP to detect user- agent: It is possible to redirect
mobile users to a mobile version of a site, because it doesn’t rely on
a scripting language or CSS that the mobile device does not use.
Instead, it uses a server- side language (PHP, ASP, JSP, ColdFusion,
etc.) to look at the user- agent and then change the HTTP request to
point to a mobile page ...