Padding can be added using CSS or inline styles. Here’s an example of how to add padding using inline styles:
<div style="padding: 20px;"> Your content here </div>
In this example, the padding is set to 20 pixels on all sides of the div element. You can also specify different padding values for each side (top, right, bottom, left) using shorthand notation:
<div style="padding: 10px 20px 30px 40px;"> Your content here </div>
This applies 10px padding to the top, 20px to the right, 30px to the bottom, and 40px to the left.