Horje
How to change Text Size with HTML <h1> and <p>

The CSS font-size property defines the text size for an HTML element:


Example of Text Size with HTML <h1> and <p>

<h1 style="font-size:300%;">This is a heading</h1>
<p style="font-size:160%;">This is a paragraph.</p>

Full Example of Text Size with HTML <h1> and <p>

The CSS font-size property defines the text size for an HTML element:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1 style="font-size:300%;">This is a heading</h1>
<p style="font-size:160%;">This is a paragraph.</p>

</body>
</html>

Output should be:

Full Example of Text Size with HTML <h1> and <p>





Category:
Web Tutorial
Sub Category:
HTML Styles
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference