Conceptually, viewport is the screen space where the site is rendered. This space determines important items in the layout, such as size of elements and images. With the viewport meta tag you can set the initial size of resolution within the device screen size in use, for example mobile phones, tablets, smartphones and even computers.

The viewport meta tag will allow that a layout designed for larger monitors can be rendered on smaller screens, without incurring a loss of quality or even content for lack of space.


Indicating the size of the viewport, the content is adjusted according to the screen size setted. In this case, the values to be rendered end up being proportional to what was set on the viewport meta tag of the page.




Setting the Viewport Meta Tag


The syntax of the viewport metagtag is very simple to apply:

<meta name=”viewport” content=””>

In the “content” field, the values related to the tag should be included. Each must be configured according to the elements that are being worked on and also according to the different screen sizes in which the site will appear.


Find below the list of values that can be entered in the viewport metagtag:


Width This item sets the width of the viewport to be worked on. The value can be set in pixels or the “device-width” value can be used to be automatically set according to the device width.
Height This item sets the height of the viewport to be worked on. The value can be set in pixels or the value “device-height” can be used to be automatically set according to the device height.
Initial-scale This value defines the initial viewport scale.
User-scalabe Allows the user to use the zoom function. (NO/YES)


Using Scriptcase as a development tool, no need to worry about the screen size of the application user. That’s because all applications created in the tool are fully focused on the mobile version.


Take a test, please visit our form mobile!

You might also like…

Scriptcase uses the MVC template?

Maybe you might have thought about this at some point, “Scriptcase uses the MVC templates?" Well, ...

How to implement A2F using Own Development in NodeJS in a Scriptcase application

A2F using Own Development in NodeJS A2F: In a previous article, we talked about Swivel as an extern...

Specialists or generalists, who gets a better advantage by using Scriptcase?

Hey there! Today  we will figure what are the ideal profiles for those who wish to take advantage o...

Comment this post

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at Learn more about our Privacy Police.