Page 26 - KEC Khaitan C7 Flipbook
P. 26
FONT PROPERTIES
The font properties are used to change the font family, font size, and font style of the text. The
various font properties and their values are given in the table.
Property Value Description
font-family Name of the font Specifies the font to be used.
Value is given in pixels. The default font size for Specifies the font size used
the text is 16 px. HTML also allows us to specify on the webpage.
font-size the size in em or percentage, where 1 em =
16px and the percentage is given in percent
for the default font size in the <body> element.
font-style normal, italic Specifies the style of the font.
Create an HTML webpage by using font properties.
<!DOCTYPE html>
<HTML> <HEAD> <STYLE>
H1 {color: blue; font-family: verdana; font-size: 32px; text-align:
center}
H2 {color: Green; font-family: Arial; font-size: 25px; text-align:
center}
</STYLE> </HEAD>
<BODY>
<H1>Measurement</H1>
<P style="font-family: verdana; font-size: 1.5em">Measurement is the
quantification of attributes of an object or event, which can be used
to compare with other objects or events.</P>
<H2>Types of Measurement</H2>
<P style="font-family:Arial Black; font-size: 1.5em">The three standard
systems of measurement are the International System of Units (SI units),
the British Imperial System, and the US Customary System.
</P>
</BODY>
</HTML>
24 Premium Edition-VII

