Exercise 8.1

 

<!doctype html>

<html>

<head>

<title>Chapter 8 - Font and Text</title>   

 

<style type="text/css">

 

#sampletext{

width: 300px;

border: 1px solid black;

padding: 20px;

font-family: Times, "Times New Roman", Georgia, serif;

font-size: 1em;

font-style: normal;

font-weight: normal;

color: black;

text-align: left;

text-decoration: none;

letter-spacing: 0px;

word-spacing: 0px;

line-height: 1;

}

 

</style>

</head>

<body>

                <h3>Sample Text</h3>    

                <p id="sampletext">This paragraph of text is used to demonstrate the effects of various font and text properties. Modify the CSS declaration for "sampletext" and observe what happens to this paragraph of text. A border is given to this paragraph of text in order to show the effect of 'justify'.</p>

</body></html>