Space Around Image

I was trying to add some space arnd picture in a HTML page. Later I found that I can achieve it by adding margin:5px p img { padding: 0; max-width: 100%; margin:5px; }