I have a simple table with styles applied via inline CSS, and it is working. But when I try to add the CSS to the document via the element, it doesn't work in Chrome. I checked the W3Schools CSS tutorials, but couldn't find a solution.
My code is this:
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
tr {
border: solid 1px black;
padding-left: 7px;
padding-right: 7px;
}
</style>
</head>
<body>
<table id="t01" style="border: 1px solid black; background-color: #E4E5E0; margin-left: 40px;">
<tr style="border: 1px solid black;">
<th>Available<br>On</th>
<th>Ids</th>
</tr>
<tr>
<td style="border: solid 1px black; padding-left: 7px; padding-right: 7px;"><b>Phone</b></td>
<td style="border: solid 1px black; padding-left: 7px; padding-right: 7px;"><b>9999999
</td>
</tr>
</table>
<br><br>
<table id="t01" style="border: 1px solid black; background-color: #E4E5E0; margin-left: 40px;">
<tr style="border: 1px solid black;">
<th style="border: solid 1px black; padding-left: 7px; padding-right: 7px;">Available<br>On</th>
<th style="border: solid 1px black; padding-left: 7px; padding-right: 7px;">Ids</th>
</tr>
<tr>
<td style="border: solid 1px black; padding-left: 7px; padding-right: 7px;"><b>Phone</b></td>
<td style="border: solid 1px black; padding-left: 7px; padding-right: 7px;"><b>9999999
</td>
</tr>
</table>
</body>
</html>
https://www.w3schools.com/code/tryit.asp?filename=FIDUIS25NER6
Out put:


styleelement in the head?