Horje

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>



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


Related Articles
What is HTML Styles HTML Styles
How to create HTML Style Attribute HTML element HTML Styles
How to change body Background Color HTML Style HTML Styles
How to change Background Color of <h1> and <p> Elements HTML Styles
How to change Text Color HTML Styles
How to change Fonts Family of Text with HTML <h1> <p> HTML Styles
How to change Text Size with HTML <h1> and <p> HTML Styles
How to create Text Alignment HTML Styles
How to create HTML CSS Border HTML Styles
How to create HTML CSS Padding HTML Styles
How to create HTML CSS Margin HTML Styles

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



Share on: