I have a HTML code like: -
<!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>
<title></title>
<style type="text/css">
body
{
font-family:"Verdana",Arial,Helvetica,sans-serif;
}
.myfont
{
font-family:"Verdana",Arial,Helvetica,sans-serif;
}
</style>
</head>
<body>
Hello
<select>
<option>
Hello
</option>
</select>
<select class="myfont">
<option>
Hello
</option>
</select>
</body>
</html>
Why the first "select" is not inheriting the "font-family" from the specification for "body"?
If I have to change the font for a "select" why do I have to copy the style?