Dear Sir,

please see what is wrong with my codes

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Bismillah Cotton</title>

<style type="text/css">

.foramt
{
border-color:green;
border-width:2px;
border-style:solid;
width:200px;
height:50px;
color:red;
font-family:verdana;
font-size:14px;
font-style:italic;
text-align:center;
}
</style>
</head>

<body>

<div class="format"><p>How are you?</p></div>

</body>
</html>

Your format problem is because you misspelled the selector in your style block...

 .foramt { ... }

Should be "format"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Bismillah Cotton</title>

<style type="text/css">

.format
{
border-color:green;
border-width:2px;
border-style:solid;
width:200px;
height:50px;
color:red;
font-family:verdana;
font-size:14px;
font-style:italic;
text-align:center;
}
</style>
</head>

<body>

<div class="format"><p>How are you?</p></div>

</body>
</html>

try this

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.