SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: scope="col"

  1. #1
    SitePoint Guru
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    scope="col"

    i see some one put scope="col" in <th> tag

    what does it means ?

  2. #2
    SitePoint Addict Phidev's Avatar
    Join Date
    Oct 2008
    Location
    Texas
    Posts
    204
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Guru
    Join Date
    Sep 2008
    Location
    Dubai
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you

  4. #4
    SitePoint Addict Phidev's Avatar
    Join Date
    Oct 2008
    Location
    Texas
    Posts
    204
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not a problem

  5. #5
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,276
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    I remember running into that site when I first waded into tables. It's nice.
    For complex data tables, you must use newer accessibility tags such as SCOPE, CAPTION, SUMMARY, ABBR, ACRONYM, TFOOT and THEAD as needed to further organize information in complex data tables.
    I don't know why, but it doesn't mention "headers" attribute (I know these are mostly tags listed but then there's summary!). Headers is pretty much what you use if your table is "complex" (not every data cell match the row to their left or their column above). This is often when single data cells belong under more than one category. I use headers, though likely it's my bad table-writing skills since everyone says it's rather rare to use them.

    A read an argument-- er, discussion about HTML where some people pointed out that scope isn't available to all popular screen readers, but I don't know who those are. JAWS knows scope, headers, and even axis! Which I didn't know but think is way cool (3-d tables, or database-style table searching... neat).

  6. #6
    SitePoint Member vvdven's Avatar
    Join Date
    Mar 2010
    Location
    Curacao
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great, I just encountered this myself but I would prefer using CSS for this.

  7. #7
    SitePoint Wizard Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,276
    Mentioned
    50 Post(s)
    Tagged
    2 Thread(s)
    Great, I just encountered this myself but I would prefer using CSS for this.
    You can't. Scope and headers attributes are content information. You can't style them.

    Unless you meant, use CSS to make a non-table look like a table instead of using a table for layout... but layout tables don't use scope anyway.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •