What is the point of having thead when you already have th?

So th is for table heading in rows. thead is to group the headings? Why do we need to group them?

Thead is for the top of the table, where the individual headings occur, and without thead the headings would need to be styed individually, the main function, however is to separate the headings from the body, as this would result in more problems including not being sure of the headings and the body(as th is also used in the body)(i am not very experienced, so there might be a few gaps in information, however this is the general idea)

1 Like