An object by default is aligned to the left of the screen. I would like to know how to align an image on the right of the screen, so that when I change the size of the window the image remains "leaning" in the right corner of the screen, without being cut, it follows below my progress with the code, emoji is on the right of the screen, but when I decrease the width of the browser window emoji stays and stays hidden. What I'm trying to do is have his position corrected automatically so that he's always leaning against the right corner of the window, which occurs naturally in the left corner of the window.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Posicionar um objeto na tela_2</title>
<style type="text/css">
#imgpos {
position:absolute;
left:100%;
top:50%;
}
</style>
</head>
<body>
<p>Para retornar ao tutorial use o botão "Voltar" do seu navegador.</p>
<img src="https://criemoda.files.wordpress.com/2012/08/sorriso.png"width="220" height="220" alt="logo maujor" id="imgpos">
</body>
</html>
In advance, thank you for reading and answering!