I've been trying and failing to change button font with CSS. I can change their background color and I can change a textarea input's font, but for some reason I don't seem to be able to change a button's font. From my limited understanding, the following code should work:
<html>
<head>
<style>
body {
font-family: monospace;
}
input[type=button] {
font-family: monospace;
}
</style>
</head>
<body>
This is a button:
<input type = "button" value = "Please click">
</body>
</html>
But only changes the font of the text, not the button. What am I missing?
[UPDATE] Per the responses here I changed input [type = button]
to input[type=button]
.