What code do I have to use to change the position of an image in html code?
You have to use CSS.
img { display: block; margin-left: auto; margin-right: auto; width: 40%; }
You have to use CSS.