Cellpadding (along with cellspacing) is a term used in the computer language HTML (Hypertext Markup Language). 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 be assigned its own cellpadding value,[3] if not assigned however, the default value for cellpadding is 1. 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]

References

edit
  1. ^ Tables in HTML documents
  2. ^ cellPadding property (table) JavaScript
  3. ^ "How to Specify Table Cellpadding and Cellspacing in CSS | Easy Programing". Archived from the original on 2013-10-16. Retrieved 2013-10-31.
  4. ^ RFC 1942 – HTML Tables
  5. ^ Goodman, Danny. Dynamic HTML: The Definitive Reference
  6. ^ Cellpadding and Cellspacing – The Pocket HTML Tutorial
  7. ^ William R. Stanek (1997). Web publishing unleashed. Sams.net. ISBN 9781575211985.
  8. ^ How to set cellpadding and cellspacing in CSS?
  9. ^ CompX Digital. HTML5 for Web Designers. CompX Digital. pp. 18–. GGKEY:PDWT9YZB032.
  10. ^ 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.
  11. ^ Steven E. Callihan (2002). Cascading Style Sheets (CSS) by Example. Que Publishing. pp. 281–. ISBN 978-0-7897-2617-9.
  12. ^ Christopher Schmitt (15 December 2009). CSS Cookbook. "O'Reilly Media, Inc.". pp. 453–. ISBN 978-1-4493-8294-0.