Is there a property called "rowgroup", for example "colgroup" in XHTML?

The following w3c rowgroup mention rowgroup

<!ENTITY % Scope "(row|col|rowgroup|colgroup)">

Is there such an attribute or property?

+4
source share
6 answers

No, there is no such element. If you want to group strings, you can put individual tr elements in one class.


The "rowgroup" you are referring to is a group of lines, which, of course, is formed by an element of the type thead , tbody and tfoot . And Scope is used to determine the value given in the so-called scope attribute , which is used to refer to the area in which the current th element provides information for:

 <!ELEMENT (TH|TD) - O (%flow;)* -- table header cell, table data cell--> <!-- Scope is simpler than headers attribute for common tables --> <!ENTITY % Scope "(row|col|rowgroup|colgroup)"> <!-- TH is for headers, TD for data, but for cells acting as both use TD --> <!ATTLIST (TH|TD) -- header or data cell -- %attrs; -- %coreattrs, %i18n, %events -- abbr %Text; #IMPLIED -- abbreviation for header cell -- axis CDATA #IMPLIED -- comma-separated list of related headers-- headers IDREFS #IMPLIED -- list of id for header cells -- scope %Scope; #IMPLIED -- scope covered by header cells -- rowspan NUMBER 1 -- number of rows spanned by cell -- colspan NUMBER 1 -- number of cols spanned by cell -- %cellhalign; -- horizontal alignment in cells -- %cellvalign; -- vertical alignment in cells -- > 

Here Scope is a parameter object with the value (row|col|rowgroup|colgroup) . This object is then referenced in the declaration of the scope attribute's value list with reference to the entity of the %Scope; parameter %Scope; .

SGML parameter objects are similar to variables, and references to such parameter objects are replaced with their values. This means that the following two attribute definitions are equal:

 <!ENTITY % Scope "(row|col|rowgroup|colgroup)"> <!ATTLIST (FOOBAR) scope %Scope; #IMPLIED > <!ATTLIST (FOOBAR) scope (row|col|rowgroup|colgroup) #IMPLIED > 
+6
source

Table rows can be grouped into a table, a stack of tables, and one or more sections of the table body using the THEAD, TFOOT, and TBODY elements, respectively. This division allows user agents to support scrolling of table bodies regardless of table head and foot. When tables are printed, the table head and leg information can be repeated on each page containing table data.

The table for the head and table should contain information about the columns of the table. The body of the table must contain the rows of the table data.

When present, each THEAD, TFOOT, and TBODY contain a group of strings. each row group must contain at least one row defined by the TR element.

Source: http://www.w3.org/TR/html401/struct/tables.html#h-11.2.3

+9
source

There is no such element, but I think TBODY does what you need - it contains all the relevant rows of data in your table. This way you can create your own styles using CSS instructions such as TBODY TD {color:red}

+1
source

You can group row sections in table with

  • thead to represent a row block consisting of column labels (headers)
  • tbody to represent a block of rows consisting of a collection of data
  • tfoot to represent a row block consisting of column summaries (footers)
+1
source

The W3C specification in the th element shows an example of using the scope and several groups of strings, i.e. multiple tbody elements.

Note. The tbody elements in this example define a range of row groups.

 <table> <thead> <tr> <th> ID <th> Measurement <th> Average <th> Maximum <**tbody**> <tr> <td> <th **scope**=rowgroup> Cats <td> <td> <tr> <td> 93 <th **scope**=row> Legs <td> 3.5 <td> 4 <tr> <td> 10 <th **scope**=row> Tails <td> 1 <td> 1 </**tbody**> <**tbody**> <tr> <td> <th **scope**=rowgroup> English speakers <td> <td> <tr> <td> 32 <th **scope**=row> Legs <td> 2.67 <td> 4 <tr> <td> 35 <th **scope**=row> Tails <td> 0.33 <td> 1 </**tbody**> </table> 
0
source

Source: https://habr.com/ru/post/1304739/


All Articles