How to resize desktop html page to mobile view page in html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to resize desktop html page to mobile view page in html?

I have made a html page in my laptop but when I ran that page in my mobile elements are not adjusted as I adjust them in laptop. So what is the solution?

12th Dec 2017, 12:21 PM
Vishesh
3 Answers
+ 9
Responsive Web Design When making responsive web pages, add the following <meta> element in all your web pages: Example: <meta name="viewport"content="width=device-width, initial-scale=1.0"> Read more here: https://www.w3schools.com/html/html_responsive.asp
12th Dec 2017, 5:16 PM
Deviiartt
+ 4
visit w3schools.com and learn the media queries css element.. it will help your site to become responsive.. or you can use css framework such as Bootstrap, Materialize..
12th Dec 2017, 12:30 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
Thanks, @Sami Khan and @WorkPrompt
13th Dec 2017, 9:46 AM
Vishesh