Color input

Changing input text and background colors
 avatar
messywebdev
html
a year ago
604 B
3
Indexable
Never
<!DOCTYPE html>
<html>
	<head>
		<title>color input box</title>
	</head>
	<body>
	<label for="text"></label>
	 <input style="color:#99f;font-weight:bold;font-size:12px;background-color:#ccf;" id="text" type="text" placeholder="type something!" size="10" maxlength="30">
	</body>
</html>

or

<!DOCTYPE html>
<html>
<head>
<title>color input</title>
<style>
input {
color: #99f;
font-weight: bold;
font-size: 12px;
background-color: #ccf;
</style>
</head>
<body>
<label for="text">Colored input:</label>
<input id="text" type="text" placeholder="type something!" size="10" maxlength="30">
	</body>
</html>