Javatpoint Logo
Javatpoint Logo

How to Move Image in Html

If we want to move an image in Html then we have to follow the steps which are given below. Using these steps, we can easily move an image.

Step 1: Firstly, we have to type the Html code in any text editor or open the existing Html file in the text editor in which we want to move an image.

Step 2: Now, we have to place the cursor before the <img> tag of that image which we want to move. And, then we have to type the <marquee> tag. The marquee tag is used for moving the things on a web page.

Step 3: And after <img> tag, we have to close the <marquee> tag.

Step 4: And, at last, we have to save the Html file and then run the file in the browser.

Test it Now

The following screenshot shows the output of the above Html code:

How to Move Image in Html





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA