Cellpadding: Difference between revisions
Anne Delong (talk | contribs) removing AfC templates |
this too |
||
Line 1: | Line 1: | ||
'''Cellpadding''' is a term used in the computer language [[HTML]]. When used in conjunction with the [[HTML_element#Tables|table]] element, it specifies the amount of space between the border of a table cell and its contents.<ref>[http://www.w3.org/TR/html4/struct/tables.html#adef-cellpadding Tables in HTML documents<!-- Bot generated title -->]</ref><ref>[http://help.dottoro.com/ljnnunde.php cellPadding property (table) JavaScript<!-- Bot generated title -->]</ref> |
'''Cellpadding''' (along with cellspacing) is a term used in the computer language [[HTML]]. When used in conjunction with the [[HTML_element#Tables|table]] element, it specifies the amount of space between the border of a table cell and its contents.<ref>[http://www.w3.org/TR/html4/struct/tables.html#adef-cellpadding Tables in HTML documents<!-- Bot generated title -->]</ref><ref>[http://help.dottoro.com/ljnnunde.php cellPadding property (table) JavaScript<!-- Bot generated title -->]</ref> |
||
Cellpadding is an attribute of an individual cell in a table, so each cell in a table can have its own cellpadding value.<ref>[http://easyprograming.com/index.php/html-a-css/56-how-to-specify-table-cellpadding-and-cellspacing-in-css How to Specify Table Cellpadding and Cellspacing in CSS | Easy Programing<!-- Bot generated title -->]</ref> The cellpadding attribute was added to version 2.0 of the HTML language in 1996.<ref>[http://tools.ietf.org/html/rfc1942 RFC 1942 - HTML Tables<!-- Bot generated title -->]</ref> |
Cellpadding is an attribute of an individual cell in a table, so each cell in a table can have its own cellpadding value.<ref>[http://easyprograming.com/index.php/html-a-css/56-how-to-specify-table-cellpadding-and-cellspacing-in-css How to Specify Table Cellpadding and Cellspacing in CSS | Easy Programing<!-- Bot generated title -->]</ref> The cellpadding attribute was added to version 2.0 of the HTML language in 1996.<ref>[http://tools.ietf.org/html/rfc1942 RFC 1942 - HTML Tables<!-- Bot generated title -->]</ref> |
||
Space between text and borders is an important element of web page design, because it improves the readability of text and visual appeal of graphics in table cells.<ref>Goodman, Danny. [http://books.google.ca/books?id=GEQlVcVf_zkC&pg=PA255&dq=Cellpadding++readability&hl=en&sa=X&ei=A5DjU6yyKs6UyATh54KADQ&ved=0CCkQ6AEwAg#v=onepage&q=Cellpadding%20%20readability&f=false''Dynamic HTML: The Definitive Reference'']</ref> Cellpadding makes this possible, and web design experts emphasize the importance of carefully selecting the cellpadding values.<ref>[http://www.goer.org/HTML/tables/cellpadding_and_cellspacing/ Cellpadding and Cellspacing - The Pocket HTML Tutorial<!-- Bot generated title -->]</ref><ref name="Stanek1997">{{cite book|author=William R. Stanek|title=Web publishing unleashed|url=http://books.google.com/books?id=Z80QAQAAMAAJ|year=1997|publisher=Sams.net}}</ref> |
Space between text and borders is an important element of web page design, because it improves the readability of text and visual appeal of graphics in table cells.<ref>Goodman, Danny. [http://books.google.ca/books?id=GEQlVcVf_zkC&pg=PA255&dq=Cellpadding++readability&hl=en&sa=X&ei=A5DjU6yyKs6UyATh54KADQ&ved=0CCkQ6AEwAg#v=onepage&q=Cellpadding%20%20readability&f=false''Dynamic HTML: The Definitive Reference'']</ref> Cellpadding makes this possible, and web design experts emphasize the importance of carefully selecting the cellpadding values.<ref>[http://www.goer.org/HTML/tables/cellpadding_and_cellspacing/ Cellpadding and Cellspacing - The Pocket HTML Tutorial<!-- Bot generated title -->]</ref><ref name="Stanek1997">{{cite book|author=William R. Stanek|title=Web publishing unleashed|url=http://books.google.com/books?id=Z80QAQAAMAAJ|year=1997|publisher=Sams.net}}</ref> The same effect can be accomplished in [[CSS]].<ref>[http://stackoverflow.com/questions/339923/how-to-set-cellpadding-and-cellspacing-in-css How to set cellpadding and cellspacing in CSS?]</ref> |
||
Presentational HTML elements such as cellpadding are becoming obsolete, as more and more web designers move to the use of [[CSS]] and other newer methods of creating web pages, available in HTML versions 5 and newer.<ref name="Digital">{{cite book|author=CompX Digital|title=HTML5 for Web Designers|url=http://books.google.com/books?id=Yey8AwAAQBAJ&pg=PA18|publisher=CompX Digital|pages=18–|id=GGKEY:PDWT9YZB032}}</ref> One reason for this is that, although cellpadding makes reading easier for sighted users, text-to-speech software for non-sighted users has difficulty in interpreting complex table data.<ref name="Robbins2012">{{cite book|author=Jennifer Niederst Robbins|title=Learning Web Design: A Beginner's Guide to HTML, CSS, JavaScript, and Web Graphics|url=http://books.google.com/books?id=A-tltyafYmEC&pg=PA142|date=7 August 2012|publisher="O'Reilly Media, Inc."|isbn=978-1-4493-3755-1|pages=142–}}</ref> However, because visual spacing of text in tables is still important, developers of these newer methods continue to use the term "cellpadding" or "cell padding" to describe whatever process is used to provide it.<ref name="Callihan2002">{{cite book|author=Steven E. Callihan|title=Cascading Style Sheets (CSS) by Example|url=http://books.google.com/books?id=hFcLl3MobHEC&pg=PA281|year=2002|publisher=Que Publishing|isbn=978-0-7897-2617-9|pages=281–}}</ref><ref name="Schmitt2009">{{cite book|author=Christopher Schmitt|title=CSS Cookbook|url=http://books.google.com/books?id=dNvXnUz-pwwC&pg=PA453|date=15 December 2009|publisher="O'Reilly Media, Inc."|isbn=978-1-4493-8294-0|pages=453–}}</ref> |
Presentational HTML elements such as cellpadding are becoming obsolete, as more and more web designers move to the use of [[CSS]] and other newer methods of creating web pages, available in HTML versions 5 and newer.<ref name="Digital">{{cite book|author=CompX Digital|title=HTML5 for Web Designers|url=http://books.google.com/books?id=Yey8AwAAQBAJ&pg=PA18|publisher=CompX Digital|pages=18–|id=GGKEY:PDWT9YZB032}}</ref> One reason for this is that, although cellpadding makes reading easier for sighted users, text-to-speech software for non-sighted users has difficulty in interpreting complex table data.<ref name="Robbins2012">{{cite book|author=Jennifer Niederst Robbins|title=Learning Web Design: A Beginner's Guide to HTML, CSS, JavaScript, and Web Graphics|url=http://books.google.com/books?id=A-tltyafYmEC&pg=PA142|date=7 August 2012|publisher="O'Reilly Media, Inc."|isbn=978-1-4493-3755-1|pages=142–}}</ref> However, because visual spacing of text in tables is still important, developers of these newer methods continue to use the term "cellpadding" or "cell padding" to describe whatever process is used to provide it.<ref name="Callihan2002">{{cite book|author=Steven E. Callihan|title=Cascading Style Sheets (CSS) by Example|url=http://books.google.com/books?id=hFcLl3MobHEC&pg=PA281|year=2002|publisher=Que Publishing|isbn=978-0-7897-2617-9|pages=281–}}</ref><ref name="Schmitt2009">{{cite book|author=Christopher Schmitt|title=CSS Cookbook|url=http://books.google.com/books?id=dNvXnUz-pwwC&pg=PA453|date=15 December 2009|publisher="O'Reilly Media, Inc."|isbn=978-1-4493-8294-0|pages=453–}}</ref> |
||
== See also == |
|||
*[[border spacing]] |
|||
== References == |
== References == |
||
Revision as of 17:49, 19 September 2014
Cellpadding (along with cellspacing) is a term used in the computer language HTML. When used in conjunction with the table element, it specifies the amount of space between the border of a table cell and its contents.[1][2] Cellpadding is an attribute of an individual cell in a table, so each cell in a table can have its own cellpadding value.[3] The cellpadding attribute was added to version 2.0 of the HTML language in 1996.[4] Space between text and borders is an important element of web page design, because it improves the readability of text and visual appeal of graphics in table cells.[5] Cellpadding makes this possible, and web design experts emphasize the importance of carefully selecting the cellpadding values.[6][7] The same effect can be accomplished in CSS.[8]
Presentational HTML elements such as cellpadding are becoming obsolete, as more and more web designers move to the use of CSS and other newer methods of creating web pages, available in HTML versions 5 and newer.[9] One reason for this is that, although cellpadding makes reading easier for sighted users, text-to-speech software for non-sighted users has difficulty in interpreting complex table data.[10] However, because visual spacing of text in tables is still important, developers of these newer methods continue to use the term "cellpadding" or "cell padding" to describe whatever process is used to provide it.[11][12]
See also
References
- ^ Tables in HTML documents
- ^ cellPadding property (table) JavaScript
- ^ How to Specify Table Cellpadding and Cellspacing in CSS | Easy Programing
- ^ RFC 1942 - HTML Tables
- ^ Goodman, Danny. Dynamic HTML: The Definitive Reference
- ^ Cellpadding and Cellspacing - The Pocket HTML Tutorial
- ^ William R. Stanek (1997). Web publishing unleashed. Sams.net.
- ^ How to set cellpadding and cellspacing in CSS?
- ^ CompX Digital. HTML5 for Web Designers. CompX Digital. pp. 18–. GGKEY:PDWT9YZB032.
- ^ Jennifer Niederst Robbins (7 August 2012). Learning Web Design: A Beginner's Guide to HTML, CSS, JavaScript, and Web Graphics. "O'Reilly Media, Inc.". pp. 142–. ISBN 978-1-4493-3755-1.
- ^ Steven E. Callihan (2002). Cascading Style Sheets (CSS) by Example. Que Publishing. pp. 281–. ISBN 978-0-7897-2617-9.
- ^ Christopher Schmitt (15 December 2009). CSS Cookbook. "O'Reilly Media, Inc.". pp. 453–. ISBN 978-1-4493-8294-0.