Skip to main content

Posts

Showing posts with the label font-family Property

CSS Font Properties | my experiences

Introduction to CSS Font Properties Through CSS you can change the size, style, weight, line-height, etc. of fonts. A separate property has been created for all these changes. Let us know about these properties. font-family Property To set the font's family of any HTML element, you use the font-family property. You give the name of any font family as the value of this property. The following is a list of some font families that you can use as values. Times new roman Verdana Arial Courier serif Let us try to understand the font family property with an example. <html> <head> <title> Font Family Property Demo </title> <style> p {    font-family: Arial; } </style> </head> <body> <h1> Example of Font Family  </h1> <p> This font  property will be shown in Arial. </p> </body> </html> The above code generates the output given below. CSS Font Properties ...