Here is the basic button hover program. I can control what the color of the button is depending on it's hover state, but can I change the text inside the button if someone hovers over it?
for example: a button that says "Understand?" and when you hover over it, the text changes to "Yes"
.button {
width: 100px;
height: 50px;
background-color: gold;
border: 2px solid firebrick;
border-radius: 10px;
font-weight: bold;
color: black;
cursor: pointer;
}
.button:hover {
background-color:rgb(0, 255, 0)
}
<button class="button">hover over me!</button>