Curriculum
Course: HTML Basic
Login

Curriculum

HTML Basic

HTML Introduction

0/1

HTML Editors

0/1

HTML Attributes

0/1

HTML Paragraphs

0/1

HTML Formatting

0/1

HTML Comments

0/1

HTML Favicon

0/1

HTML Page Title

0/1

HTML Iframes

0/1

HTML Java Script

0/1

HTML File Paths

0/1

HTML Symbols

0/1
Text lesson

Setting The Viewport

For responsive website creation, include the following <meta> tag on all your web pages:

Example

<meta name=”viewport” content=”width=device-width, initial-scale=1.0″>

This sets the viewport of your page, providing the browser with directives on managing the page’s dimensions and scaling.

Below is an example illustrating a web page without the viewport meta tag, followed by the same web page with the viewport meta tag:

ffa5a795-27ed-48a1-b4ef-cf9b51958129

Note: If you are viewing this page on a smartphone or tablet, you can tap on the two links above to observe the contrast.