Adding the Viewpoint Meta Tag to the Responsive Template InMotion Hosting ContributorUpdated on August 16, 2021 2 Minute Read Now that you have your stylesheets linked in your code for the Responsive Template, you will need to add the “Viewport Meta Tag” to your head section of your code. What is the viewport Meta tag? The viewport Meta tag alters the behavior of a mobile browser by modifying the “virtual viewport” of the device. The virtual viewport is the view of a mobile device screen that is other than the default view; therefore being deemed “virtual“. This allows the screen on devices to have specified zoom behaviors. Below is the code snippet we will use in our Responsive Template. This Meta tag tells the mobile device to not zoom. This allows the Responsive Template for mobile devices to be loaded in the scripts. Below is a table of different properties that can be used for the viewpoint Meta Tag. Meta tag “content” property attributes for “viewport“ Below is a table with an explanation of the Meta tag Viewpoint properties. Property Description width The width of the virtual viewport of the device. device-width The physical width of the device’s screen. height The height of the “virtual viewport” of the device. device-height The physical height of the device’s screen. initial-scale The initial zoom when visiting the page. 1.0 does not zoom. minimum-scale The minimum amount the visitor can zoom on the page. 1.0 does not zoom. maximum-scale The maximum amount the visitor can zoom on the page. 1.0 does not zoom. user-scalable Allows the device to zoom in and out. Values are yes or no. Add the Meta tag to the head section Add the following Meta tag into your head section of your website. You will want to place the Meta tag below the other Meta tags in your head section or above your title tag. <meta content="width=device-width" name="viewport"> That’s all for the Responsive template. You should see your site appear normal in all types of devices. Share this Article Related Articles How to Align and Float Images with CSS Margin vs Padding Preview Shared Content With Facebook Debugger Accessing Your Website via IP Address The Role of Blocks and Animations in WordPress Is Django supported? Using the Under Construction Page provided by InMotion Hosting Creating an Under Construction or Coming Soon page Beginner Web Design: Guides to HTML and CSS Links to the stylesheets in Responsive Templates