Question answer game where answer revealed after 3 attempts

Hi All

searched high and low and cannot find this answer.

Basically I want to create 6 questions with input boxes next to them for the user to inset their answer.

I want them to try three times and then if not correct the answer is displayed for them. In the box with a little description next to it.

eg: how many sides as a square

(answer in the box) = 4
(desc to side of box says) = A square has four equal sides.

Can anyone please give me some guidance on this? pretty stuck!

ty in advance :wink: