Okay this is my first time asking a question on the platform so hello everyone!
I want to make a site for medical students where their anatomical knowledge can be tested. I want to place an anatomical picture on the page with white divs covering all the names of the structures present on the image. My idea is to ask for an anatomical structure (let's say the 'manibrium sterni') and when the correct white div covering the word is selected, this div would then disappear. This is what I want to achieve:
- When the correct div(/answer) is chosen: Make the div disappear and show that the answer is correct.
- When the wrong div(/answer) is chosen: Don't hide the div and display a message that the answer is incorrect.
- Let the questions be asked in a random order each time the page is reloaded/opened (for replayability).
- Show a percentage(/score) whilst playing.
(see images for example).
I know how to make a div with HTML and CSS, but I do not know how to make it disappear/be hidden or stay visible based on the first two options that I listed above. I also do not know how to make the anatomical names be asked in a random order nor how to keep track of the score.
<div id="vak_1" style="margin-top: 245.691px; margin-left: 110.101px; width: 91px; height: 21px;"></div>
Is it possible to do this with only HTML and CSS (perhaps also with Javascript)?