I want to know about cellspacing and cellpadding in HTML
I was coding in vscode so when i tried typing cellspacing it didn’t show me as a table attribute.I just started learning HTML so can someone help me in this.
This is what I mean
Same problem for cellpadding too. Is there any other way to do this?
2
Answers
cellpadding
isdeprecatedobsolete, that’s why it won’t show up in vscode.Source: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table#cellpadding
cellpadding attribute is used to set padding between cells.
Same as style padding :
while cellspacing attribute is used to set space between cells.
cellpadding and cellspacing attribute in single code.