programming-examples/css/Color background color font for a label control.html

27 lines
692 B
HTML
Raw Permalink Normal View History

2019-11-15 12:59:38 +01:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Color Background Color Font For A Label Control</title>
<style type="text/css">
label {
background-color: pink;
color: blue;
font-weight: normal;
}
</style>
</head>
<body>
<form method="post">
<label for="pc">pc</label>
<input type="text" name="pc" id="pc" value="" /><br />
<label for="phone">phone</label>
<input type="text" name="phone" id="phone" value="" /> <br />
<input type="submit" name="Submit" value="Submit" class="buttonSubmit" />
</form>
</body>
</html>