Understanding of Viewport (html) | SoloLearn: Learn to code for FREE!

+1

Understanding of Viewport (html)

If I make something(coding) on a desktop(computer), is there a way to make it show the desktop view on iPhone screen; So it's not zoomed in and it shows only part of the code on iPhone screen. I want the code I made on desktop to show up on my phone screen without cutting any parts; of course it will be smaller on iPhone, but I don't want it to be as big as the desktop and cut off parts. Which viewport would you use to do that?

5/11/2019 11:07:42 PM

Ginfio

2 Answers

New Answer

+5

Add this inside of head tag: <meta name="viewport" content="width=device-width, initial-scale=1"/> Watch this tutorial to get basic understanding of responsive web design. https://youtu.be/h3IdEqpjMvQ