Prev | Current Page 590 | Next

Tommy Olsson and Paul O'Brien

"The Ultimate CSS Reference"

95
3 lbs

?‹® more table rows


For the table above, row headings like ???Blue Widgets??? will have a normal font
weight, regardless of whether the document uses HTML or XHTML, since the markup
includes explicit and tags.
Here??™s another example; this one omits the tags:






?‹® more table rows
Blue Widgets$12.953 lbs

The table above is a little different. In an HTML document, the row headings will
have a normal font weight: because the tbody element will be present in the DOM
tree, the second selector will match the th elements.
415 Differences Between HTML and XHTML
In an XHTML document, however, the row headings will be bold, because only the
first selector matches any th elements. Omitting the and tags
means that a tbody element won??™t appear in the DOM tree, so the second selector
won??™t match the th elements in this table.
Root Element Properties
For HTML, but not for XHTML, the CSS2.


Pages:
578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602