fieldset border: 1px solid royalblue;
<!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' xml:lang='en'>
<head>
<title>Attribute Selectors</title>
<style type='text/css'>
* {
font-size: 12px;
}
fieldset {
border: 1px solid royalblue;
}
legend, label {
color: royalblue;
}
input[type='text'] {
background: blue;
color: white;
border: 3px solid royalblue;
}
</style>
</head>
<body>
<form method='post' action='Example_3-3.html'>
<fieldset>
<legend>Feedback Form</legend>
<table>
<tbody>
<tr>
<td><label for='first-name'>First Name:</label></td>
<td><input type='text' name='first_name' id='first-name' value='Richard' size='25' /></td>
</tr>
</tbody>
</table>
</fieldset>
</form>
</body>
</html>
Related examples in the same category