is it necessary to have table has 3 other tag
According to the HTML DTD this is the content model for HTML tables: So this is illegal syntax: It should be: Edit: As to why to use As an example of (5) you might do this: The with: which again excludes the Lastly, many of these same arguments apply to using in any table? even if table has no heading?
Heading of table
Heading of table elements aren't required anywhere. They're simply one of the two cell types (the other being ) that you can use in a table row. A is an optional table section that can contain one or more rows.
there are several reasons:
contents at the top of each page so people can understand what the columns meaning without flicking back several pages;
elements, elements, both or some other combination. It gives you something else to write a selector against;
$("table > tbody > tr:nth-child(odd)").addClass("odd");
element means those rows won't be styled that way. Or you might do:
$("table > tbody > tr").hover(function() {
$(this).addClass("hover");
}, function() {
$(this).removeClass("hover");
});
tr.hover { background: yellow; }
rows.
elements over elements: you're indicating that this cell isn't data but a header of some kind. Often such cells will be grouped together in one or more rows in the section or be the first cell in each row depending on the structure and nature of your table.