how to add curved border to an image in html code example Example: how to round the edges of an image in HTML img.rounded-corners { border-radius: 30px; }