HTML scope attributes - HTML forms - Guide to HTML, XHTML Guide

Change Font Size: / / Directory List

9.6. HTML scope attribute

Scope attributes - definition of the row or column of the first table
  • Scope - This attribute can be defined by the row or column of the first table
  • Value
    • Col - Definitions first List
    • Row - the first definition to Table
    • Colgroup - defined in the header information group, is the acronym for column group
    • Rowgroup - definition to the table headers group is the acronym row group
  • Trackback Address: http://www.nt22.com/xhtml-html/attribute_scope/

Example

  <table Width = "80%" /> <tr> <th> </ th> = <th abbr "col" "com domain" scope =>. Com domain names the number of </ th th abbr> <= "cn domain" scope = "col" />. cn domain names the number of </ th> = <th abbr "col" "net domain" scope =>. net number of domain names </ th> </ tr> <tr> <th abbr = " 2003s "scope =" row " /> 2003 </ th> <td> 1000 </ td> <td> 2000 </ td> <td> 3000 </ td> </ tr> <tr> <th abbr =" 2004s "scope =" row " /> 2004 </ th> <td> 4000 </ td> <td> 5000 </ td> <td> 6000 </ td> </ tr> <tr> <th abbr =" 2005s " scope = "row" /> 2005 </ th> <td> 7000 </ td> <td> 8000 </ td> <td> 9000 </ td> </ tr> </ table> 

Note

  • Scope can usually attribute data linking cell forms and table first.
  • Another form of a data link table cells and the first approach is to use headers attributes, the use of this property is usually more complex forms in the circumstances.