Font family in css in web development

Table of Contents

What is font family?

Font family represents the different type of fonts for text.

Example:

<html>
<head>
<style>
.height_set
{
color : green;
background : yellow;
font-family:”Times New Roman”;
}
</style>
</head>
<body>
<div class=”height_set”>this is font family representation in time new roman</div></h1>
</body>
</html>

Output:

This is font family representation in time new roman

Different font families:

This is Times new roman
This is impact
This is verdana
This is Times comic sans ms

and many other font families are also available for use in CSS.

 

 

Fazal Rehman Shamil Click Here to Know More
Instructor, Researcher, Blogger, SEO Expert, Poet and Publisher of International Journal Of Software, Technology & Science ISSN : 2616 - 5325
Dear Professors and Resarchers!You are welome to Cite these tutorials in your research or slides etc. Please don't forget to mention the reference of website. Copy Paste of text is strcitly forbidden. Images can be reuse because images are protected with watermark.

Leave a Reply

Your email address will not be published. Required fields are marked *