How to test html file for mobile responsiveness

user5372593 picture user5372593 · Dec 21, 2015 · Viewed 33.6k times · Source

I need to test an html file for mobile responsiveness, but all the resources I have found to do this need a URL or a localhost, is there any way to test responsiveness with just an html file?

Answer

Hans picture Hans · Dec 21, 2015

Yes, simply open the .html file with Chrome or Firefox. These browsers have device mode.

You can change the screen size and see how it looks on mobile or tablet sized screens.