Chapter 3C
(This unit covers changing Font’s Family
through in-line styling)
We have learned about changing font’s color through in-line
styling in the previous chapter. In this article we will learn about how we can
change font’s family (i.e. to Arial, Times New Roman etc)
The syntax for changing font’s family is very much similar
to the syntax for changing font’s color.
The only thing we need to change is its attribute (i.e color)
and its value (i.e. blue) from previous syntax with new attribute (i.e font-family)
and its value (i.e. Garamond) respectively.
For E.g.
![]() |
Changing Font-Family |
The above example changes the family of font from default
(i.e. Calibri) to Garamond.
For better understanding let’s do some change in the code.
![]() |
Click on the Image to Enlarge |
Now Lets do something different, we'll change the font family
of paragraph section to Helvetica.
![]() |
Changing Font-Family of Heading & Paragraph |
In the above example we have changes the Font Family of the
paragraph through in-line styling.
For any query related to this topic, please leave comment.
Do not spam as it will be removed.
0 comments:
Post a Comment