From the course: HTML: Images and Figures

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Testing screen resolutions

Testing screen resolutions - HTML Tutorial

From the course: HTML: Images and Figures

Start my 1-month free trial

Testing screen resolutions

- [Instructor] Admittedly, I cheated a bit in the previous video. I added the width, number of pixels, of the image on the image itself, so it would be obvious which one the browser is displaying. That was a proof of concept to convince you the sourceset and sizes work as advertised. The real issue is this. Now that you could specify a variety of images, you want to know what you're page will look like on a particular mobile device or tablet. And resizing by hand is not the answer. Luckily, both Firefox and Chrome provide a tool to help you with this. In Firefox, you use web developer. Web console. And then click the responsive design mode icon. And then select the inspector view. Now you can select a device to see what the page will look like on that device. When you hover over the image source element in the inspector, you can see the dimensions of the currently selected image. If I go to landscape view, I can again, see what everything will look like and see which image is…

Contents