<html>
<head>
<style>
img {
position: absolute;
right: 50px;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<img src="smiley.gif" width="42" height="42">
</body>
<!-- Mirrored from www.w3schools.com/css/tryit.asp?filename=trycss_position_right by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:03:41 GMT -->
</html>