What is attribute in html?

What is the importance of the HTML DOCTYPE?

How to use Cellpadding and Cellspacing Attributes in HTML code.?