Jitendra Vyas Jitendra Vyas - 2 months ago 8
HTML Question

Is there a property named "rowgroup" like "colgroup" in XHTML?

The following

w3c
documents mentions
rowgroup





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



Is there such an attribute or property?

Answer

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 tfoot. 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
>
Comments