Sempervivum
I did provide a complete code.
But, it does not detect this line is incorrect:
#gt0-#gt2:hover {background-color: orange; color: red;}
Nor suggests any correction, which I was expecting. That is my big issue. WHich I need help here:
https://forum.webdeveloper.com/d/400062-how-to-change-text-colour-in-a-table-via-colgroup/8
See for yourself on this link:
https://validator.w3.org/nu/#textarea
Here is the full code I am testing:
<!DOCTYPE html>
<html>
<head>
<title>Table</title>
<style>
th:hover {background-color: black; color: gold;}
tr:hover {background-color: silver; color: white;}
#gt0-#gt2:hover {background-color: orange; color: red;}
</style>
</head>
<body>
<table border="20" width="100%" cellspacing="5" cellpadding="20" color="red" bgcolor="orange">
<caption>Caption</caption>
<colgroup>
<col span="3" style="background-color:white; color:green; font-family:courier; font-size:50%">
<col span="3" style="background-color:black; color:blue; font-family:verdana; font-size:40%">
<col span="3" style="color:red; font-family:arial; font-size:10%">
</colgroup>
<thead>
<tr>
<th colspan="3">GOOD</th><th colspan="3">BAD</th><th colspan="3">NEUTRAL</th>
</tr>
</thead>
<tbody>
<tr>
<td>Title</td><td>FIRST NAME</td><td>SURNAME</td><td>Title</td><td>FIRST NAME</td><td>SURNAME</td><td>Title</td><td>FIRST NAME</td><td>SURNAME</td>
</tr>
<tr>
<td id="gt0">Mr</td><td id="gf0">Muhammad</td><td id="gs0">Ali</td><td id="bt0">Mr</td><td id="bf0">Adolph</td><td id="bs0">Hitler</td><td id="nt0">Mr</td><td id="nf0">Mohandas</td><td id="ns0">Ghandi</td>
</tr>
<tr>
<td id="gt1">Mr</td><td id="gf1">Mike</td><td id="gs1">Tyson</td><td id="bt1">Mr</td><td id="bf1">Winston</td><td id="bs1">Churchill</td><td id="nt1">Mr</td><td id="nf1">Crocodile</td><td id="ns1">Dundee</td>
</tr>
<tr>
<td id="gt2">Mr</td><td id="gf2">Malcolm</td><td id="gs2">X</td><td id="bt2">Mr</td><td id="bf2">Joseph</td><td id="bs2">Stalin</td><td id="nt2">Mr</td><td id="nf2">Napolean</td><td id="ns2">Bonaparte</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3">GOOD</td><td colspan="3">BAD</td><td colspan="3">NEUTRAL</td>
</tr>
</tfoot>
</table>
</body>
</html>
@coothead
Why is that ?