how to create a link on a page to go to a different part of the page, like an image [duplicate]

  Kiến thức lập trình

while creating a website using HTML how would i create a link on another place on the page to scroll to an image file that I have inserted?

i tried using the href command, but I am having trouble creating the id to connect to the image.
can I get a step by step example, please?

1

Just give an id to the image and append #id to your link. This could look like:-

<a href="#randomId"/>
<img src="srcOfImage" id="randomId"/>

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT