Image Alt Tag - Multiple identical Images

Image Alt Tag - Multiple identical Images

Not sure if SEO questions are relevant for StackOverflow. Feel free to correct me if not.

Not sure if SEO questions are relevant for StackOverflow. Feel free to correct me if not.

Have a "quiz" website that shows many duplicate images. For example - when users are going through a "goals" section of the quiz the image stays the same until the section changes.

 <p class= id='question1'> I'm very motivated.</p>

<img id='image1' src='https://i.imgur.com/DfxbRDL.jpg' alt= "Woman shooting bow">

<p class= id='question2'> I want to succeed.</p>

<img id='image2' src='https://i.imgur.com/DfxbRDL.jpg' alt= "Woman shooting bow">

The images are hidden and shown depending on the question.

My question is:

What is the best way to handle this from an SEO standpoint? Just make different alt tags for the same image?

Should I create a variable and somehow use it for the images>

html image

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Know Everything About HTML With HTML Experts

HTML Assignment Help Australia @30% OFF from Sample Assignment, with Our Best HTML assignment help experts. Get HTML homework help online at affordable price. 100% Plag free assignment solution.

Commonly Used HTML Tags with Examples

HTML tags are keywords used in HTML to display web-pages with certain properties. They are further used for defining HTML elements. An HTML element consists of a starting tag.

Preprocessing your images for machine learning (image recognition)

During my studies at JKU there was a task for preprocessing images for a machine learning project. It is necessary to clean the raw images…

HTML Images - HTML Img Tag

Learn about HTML Images - How to insert images in html document, background image, create image borders, create links on images, animated & floating images

HTML Basics to Learn HTML for Web Development

HTML is the mark-up language most websites are written in. In this article, we will delve into the most basics of HTML like tags and elements that are of utmost importance while writing any code in HTML. These tags help in the structuring and display of content on the web pages.