Page 100 - 2611_SmartGPT Pro V(5.0) C-6
P. 100
Code 5. Write the HTML code to present the given web page using CSS text properties.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Using Text Properties </TITLE>
</HEAD>
<BODY STYLE="BACKGROUND-COLOR: LIGHTYELLOW;">
<H1 STYLE="COLOR: DARKBLUE; TEXT-ALIGN:CENTER; TEXT-DECORATION:
UNDERLINE;">The Importance of Reading</H1>
<P STYLE="TEXT-ALIGN: JUSTIFY; COLOR: DARKGREEN;"> Reading is one of
the most important skills we can develop. It opens up new worlds, sparks
creativity and helps us learn about different perspectives.
</P>
</BODY>
Create a web page to display information
</HTML>
about the sun.
FONT PROPERTIES
Font properties control text appearance, including family, size, style and weight. The table lists
common properties, values and descriptions:
Property Value Description
Name
FONT-FAMILY Name of the font. This property sets the font of the text.
Size of the font as a number
FONT-SIZE This property controls the size of the text.
with units like px, pt, em, etc.
NORMAL, BOLD, BOLDER or This property sets the weight of the text. It
FONT-WEIGHT
LIGHTER can be numeric values.
FONT-STYLE NORMAL, ITALIC or OBLIQUE This property defines the style of the font.
Code 6. Write the HTML code to present the given web page using CSS font properties.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE>Using Font Properties
</TITLE>
</HEAD>
98 Computer Science (V5.0)-VI

