{"id":14862,"date":"2017-11-16T15:30:49","date_gmt":"2017-11-16T15:30:49","guid":{"rendered":"https:\/\/www.techopedia.com\/definition\/viewport\/"},"modified":"2017-11-16T15:30:49","modified_gmt":"2017-11-16T15:30:49","slug":"viewport","status":"publish","type":"definition","link":"https:\/\/www.techopedia.com\/definition\/32644\/viewport","title":{"rendered":"Viewport"},"content":{"rendered":"
A viewport is a term for the visible area of a webpage on a
\ndisplay device. It is used in both code and analog design as a way to refer to the display screen and how layout fits into that screen.\n<\/p>\n
Since new devices have radically different screen sizes, the viewport has become a major consideration in responsive design. Engineers have to figure out how to fit webpages into a small viewport for a traditional smartphone or mobile device. Even tablets tend to be smaller than traditional computer screens.\n<\/p>\n
Designers can use a viewport meta tag in HTML and a tool in Cascading Style Sheets to set viewport parameters such as height and width as well as viewport scale and resolution.\n<\/p>\n
Using the viewport meta tag is an important part of matching page compatibility to a device screen. Typically, designers look at all of the text, images and functionality in a page and lay it out according to what the viewport can handle \u2013 and when they put in viewport limitations, this provides a technical set of parameters to work from.<\/p>\n","protected":false},"excerpt":{"rendered":"
What Does Viewport Mean? A viewport is a term for the visible area of a webpage on a display device. It is used in both code and analog design as a way to refer to the display screen and how layout fits into that screen. Techopedia Explains Viewport Since new devices have radically different screen […]<\/p>\n","protected":false},"author":7813,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_lmt_disableupdate":"","_lmt_disable":"","om_disable_all_campaigns":false,"footnotes":""},"definitioncat":[217,226,236,257,216],"class_list":["post-14862","definition","type-definition","status-publish","format-standard","hentry","definitioncat-hardware","definitioncat-home-networks","definitioncat-network-management","definitioncat-personal-tech","definitioncat-software-development"],"acf":[],"yoast_head":"\n