HTML: Image margin

This entry is part 33 of 34 in the series HTML

If we find the text to be too close to the image, we can set a margin to the the image.

Here we set a right margin of 10px to the image.
Codecrawl.com-Image

<!DOCTYPE html>
<html>
<head lang='en'>     
    <meta charset='UTF-8'>
    <title>Codecrawl.com-Image</title>
</head>
<body>

<img src='//codecrawl.com/code/images/ushuaia1.jpg' style='float: left; margin-right: 10px'>
<h3>Welcome to Ushuaia!</h3>

</body>
</html>

Series Navigation<< HTML: Controlling image size
HTML: Creating graphical hyperlink >>