To set the type of font for an element, start by adding the font-family
property.
<body>
<p style="font-family">Avatar</p>
</body>
There are all kinds of possible values for font-family
, from Times New Roman
to Helvetica
. Here, let's use Courier New
.
<body>
<p style="font-family: Courier New;">Avatar</p>
</body>