Why isn't it bold?

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
        table, td, th{
            border: 1px solid blue;
            border-collapse: collapse;
            padding: 5px;
            text-align: left;
                <th colspan="2">Report Card</th>


My table

2021-02-20 (2)
Mosh’s table

I don’t understand why the “Total” and “92” are not in bold for me
Can someone please help me out?!

First of all: You have defined your whole table content inside a thead element?

If you inspect the header cells to see why they are bold you will see that the bold font-weight comes from a rule in the user agent stylesheet for the th element. So by default thead and tfoot have nothing to do with the font weight.

If you compare your markup in the tfoot element with Mosh’s you will see that he uses th elements while you are using td elements. That’s why your table looks different.

BTW: In my opinion wrapping a data value with a th is not correct sematically. I would write


which is more correct semantically and we don’t have the alignment issue Mosh has at the end of the video.



My bad I didn’t notice it…

Thanks for the help @SAM

SAM's previous answer is correct.
I made th*s reply and could not remove it.