Initially, my intention was to hide the entire body and display only one image. However, I discovered that using display:none would also hide all of its children. To resolve this issue, I modified my code to hide specific parameters.
In essence, I aim to reveal hidden content when clicking on non-hidden elements.
Below is my HTML Code: enter image description here JS code: enter image description here And CSS code: enter image description here
Although the code may appear simple, I am facing a challenge as nothing happens when I click on the image.
I apologize if my question lacks clarity. This is my first time posting on stackoverflow, and I am open to providing more context. Thank you in advance.