difference margin and padding
Margin : any portion left from outside of any div or design block.
Padding : any portion left from inside of any div or design block.
Example
<!DOCTYPE html> <html> <head> <title>form arrays HTML</title> <style type="text/css"> div { margin: 10px; background-color: #F5BC92; } div div { padding: 25px; background-color: #B1E99A; } </style> </head> <body> <div> White portion is Margin <div> and this text has some gap from all sides, this is padding </div> </div> </body> </html>