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

Responsive Text Size

Text size can be specified using the “vw” unit, representing the “viewport width”.

This ensures that the text size adjusts according to the dimensions of the browser window.

IMG_3860

Example

<h1 style=”font-size:10vw”>Hello World</h1>

The viewport refers to the size of the browser window. In this context, 1vw equals 1% of the viewport width. For example, if the viewport is 50cm wide, then 1vw would equate to 0.5cm.