Page 26 - PortGPT_V2.1_C7_Flipbook
P. 26
<BODY>
<H1>Tiles</H1>
</BODY>
</HTML>
Create an HTML web page by using the background properties.
<!DOCTYPE html>
<HTML>
<HEAD>
<STYLE>
BODY {background-image: url("Save water.jpg");
background-repeat:repeat-y;}
H1 {background-color:green;
text-align:center;}
</STYLE>
</HEAD>
<BODY>
<H1>SAVE WATER</H1>
</BODY>
</HTML>
FONT PROPERTIES
By using CSS, you can change the font face, colour, style and size. CSS provides various properties like
font-family to change the font face, color to change the colour of font, font-style to make the text
italic, font-weight to make the text bold, text-decoration to make the text underline or overline and
font-size to change the size of font.
Property Value Description
font-family Name of the font Specifies the font to be used.
Value is given in pixels. The default
font-size Specifies the font size used on the web page.
font size for the text is 16 px.
font-style normal, italic Specifies the style of the font.
24 Premium Edition-VII

