XHTML and CSS Tutorial - 24 - Width & Height

<!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">
h4 {background-color:red;color:white;}



</style>

</head>

<body>
<h4>My name is Thileban</h4>
</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">
h4 {background-color:red;
color:white;
Width: 350px;
Height:150px;}



</style>

</head>

<body>
<h4>My name is Thileban</h4>
</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">
h4 {background-color:red;
color:white;
Width: 350px;
Height:150px;
Border: 3px solid black;}



</style>

</head>

<body>
<h4>My name is Thileban</h4>
</body>

</html>

Comments