tags:

views:

100

answers:

4

There is no "rowgroup" listed on W3c Schools site. Does it exist or not?

http://www.w3schools.com/TAGS/tag_colgroup.asp

But here it is :

<!ENTITY % Scope "(row|col|rowgroup|colgroup)"> http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6

and here http://www.w3.org/TR/html401/struct/tables.html#rowgroups

+2  A: 

Refer the following URL

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

muruga
+1 thanks for this link
metal-gear-solid
+1  A: 

There is no such element, however I think that TBODY does what you need - contains all the relevant data rows in your table. So, you can create your styles using CSS statements like TBODY TD {color:red}

naivists
here is mentioned rowgroup `<!ENTITY % Scope "(row|col|rowgroup|colgroup)">` http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6 . but no detailed info
metal-gear-solid
here also http://www.w3.org/TR/html401/struct/tables.html#rowgroups
metal-gear-solid
A: 

No, there is no such element. If you want to group rows, you can put the particular tr elements in the same class.


The “rowgroup” you are referring to is a row group that is naturally formed by an element like thead, tbody and tfooter. And Scope is used to define the value set in the same-named attribute scope that is used to refer to the scope the current th element is providing 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's 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 entity with the value (row|col|rowgroup|colgroup). This entity is then refered to in the declaration of the attribute value list of scope with the parameter entity reference %Scope;.

Parameter entities in SGML are like variables and references to such parameter entities are replaced by its values. That means 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
>
Gumbo
but see my comments in @naivists answer
metal-gear-solid
@jitendra: You’re just misinterpreting something.
Gumbo
A: 

The link that you posted in your question answers the question for you. Row groups are defined by the thead, tfoot and tbody elements. In the other part you mention, rowgroup is simply a value for the scope attribute.

DisgruntledGoat