Padding

Padding is the space inside an element, between its edge and its content. In the example, the arrows show the space between the edges of the Continue button and its label.
Padding keeps content from touching the edges, which makes it easier to read. When padding is part of an interactive button, it also enlarges the area people can tap or click.
The difference: margin is space outside an element’s border. Padding is space between the content and the border.