I have 4 radio buttons in my quiz application. I need to style only one of them, which is the correct answer option. Here's the HTML snippet that was generated:
<p>
<input id="SelectedAnswer" type="radio" value="5" name="SelectedAnswer">
my wrong answer
</p>
<p>
<input id="SelectedAnswer" class="correct-answer" type="radio" value="6" name="SelectedAnswer">
my correct answer
However, the CSS code that I wrote to style the correct answer doesn't seem to work. Here's the CSS snippet:
.correct-answer input[type="radio"] {
background-color: #FFFF00;
color: #0000FF;
font-weight: bold;
}
I'm not sure what is causing the issue with the styling. Can anyone help me troubleshoot this problem?