How to add a picture to this test?

Hello.

I was asked to do a test of 5 questions. Found a good option, and I don't know how to add a normal image. Just to each question must be accompanied by a picture. If there are options, please write!

Below attached the link to the codepen:

https://codepen.io/UndLegendary/pen/Baymemg
April 4th 20 at 00:47
1 answer
April 4th 20 at 00:49
Solution
Question is not clear, what exactly do you want?

Pictures are added mostly two sposobomi:
1) Tag img: time, two, three
example

<img src="images/me.png" alt="me">

2) CSS property background-image: times, two, three
example

.block {
 background-image: url(images/bg.jpg);
 background-size: 100% 100%;
 background-repeat: no-repeat;
}


You can also add via JS:
example

New tag: (read More)
let img = document.createElement("img");
Adding attributes: (read More)
img.src = "path_to_img.jpg";
img.alt = "image definition";

Insert tag in the HTML (DOM): (read More)
document.getElementById("where_to_paste").append(div);

In this case, the questions added via JavaScript picture to each question needs its own, so adding images is through the JavaScript code - jennie67 commented on April 4th 20 at 00:52
Added - teagan.Deckow commented on April 4th 20 at 00:55
@teagan.Deckow, you could demonstrate these skills on this example, I just generally have no idea how! - jennie67 commented on April 4th 20 at 00:58

Find more questions by tags JavaScript