Horje
How to change Fonts Family of Text with HTML <h1> <p> | HTML Styles Code
How to change Fonts Family of Text with HTML <h1> <p>

The CSS font-family property defines the font to be used for an HTML element:


Example of Fonts Family of Text with HTML <h1> <p>

<h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>

Full Example of Fonts Family of Text with HTML <h1> <p>

The CSS font-family property defines the font to be used for an HTML element:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1 style="font-family:verdana;">This is a heading</h1>
<p style="font-family:courier;">This is a paragraph.</p>

</body>
</html>

Output should be:

Full Example of Fonts Family of Text with HTML <h1> <p>



Read Full::
HTML Styles Code
Category:
HTML Code
Sub Category:
HTML Styles Code
Uploaded:
10 months ago
Uploaded by:
Admin
Views:
43

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

Single Articles
Example of Fonts Family of Text with HTML <h1> <p>
Full Example of Fonts Family of Text with HTML <h1> <p>

Share on: