The browser identifies itself with every request, so no, you are constantly volunteering that info and that’s how you get sites your browser can render properly. You can change your browser’s “user agent” value and sites will give you different pages based on that. For apps that demand you use their app on mobile but have a web site for PCs, you can make your browser pretend to be the desktop version so you don’t have to install a spyware app, for example. Look up “user agent spoofing” if you’re curious.
No, websites use CSS for styling and layout, basically how elements should look, behave and how they are placed in relation to each other, CSS can query the browser for screen width and adjust the view in real time.
As a result, if you resize your browser, it may switch to a taller display style, which is what you want on mobile devices.
Note: there are many reasons you wouldn’t want to check for device type, this is why display width is used.
Dumb question maybe, but do tuey have to track browser types to be able to serve phones vs desktops?
The browser identifies itself with every request, so no, you are constantly volunteering that info and that’s how you get sites your browser can render properly. You can change your browser’s “user agent” value and sites will give you different pages based on that. For apps that demand you use their app on mobile but have a web site for PCs, you can make your browser pretend to be the desktop version so you don’t have to install a spyware app, for example. Look up “user agent spoofing” if you’re curious.
No, websites use CSS for styling and layout, basically how elements should look, behave and how they are placed in relation to each other, CSS can query the browser for screen width and adjust the view in real time.
As a result, if you resize your browser, it may switch to a taller display style, which is what you want on mobile devices.
Note: there are many reasons you wouldn’t want to check for device type, this is why display width is used.