0

I want to make an HTML table, but honestly, it doesn't need a <thead>. Is it optional to have a head? Sorry if the is beginner level.

FlipFloop
  • 1,233
  • 1
  • 14
  • 25

2 Answers2

2

Is is optional but explicitly grouping header rows with THEAD, will give the browsers the ability to include the header rows if there is a need to print tables with multi pages. This will also give you the possibility for a large table to have a scrolling body and static header rows. Many browsers support THEAD, so you can use it without problems. That sad, it's up to you if you want to use it or not.

Franco
  • 2,309
  • 1
  • 11
  • 18
1

As Franco said, it is optional. However, if you start using JQuery plugins, say like DataTable ( http://www.datatables.net/ ) will expected them to be there and will give errors if they are not.

Bindrid
  • 3,655
  • 2
  • 17
  • 18