XHTML and CSS Tutorial - 19 - text-align and Changing Background Color


<!DOCTYPE html PUBLIC” -//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml/DTD/xhtmll-transitional.dtd>
<html>

<head>
<style type ="text/css">
h3 {text- align:centre;}
</style>
</head>

<body>
<h3>Thileban’s Blog</h3>
<p>This is the best day ever.  This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever.  </p>
</body>
</html>

<!DOCTYPE html PUBLIC” -//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml/DTD/xhtmll-transitional.dtd>
<html>

<head>
<style type ="text/css">
h3 {text- align:centre;}
p {text-indent: 25px; }
body {background-color:blue; Color:white;}
</style>
</head>

<body>
<h3>Thileban’s Blog</h3>
<p>This is the best day ever.  This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever. This is the best day ever.  </p>
</body>
</html>

Comments