Button | SoloLearn: Learn to code for FREE!

+2

Button

I want to make buttons which will display the definition of each animal, when clicked. How can I do it? https://code.sololearn.com/W17385wf5Yek/?ref=app

9/26/2017 8:45:27 AM

B.D

3 Answers

New Answer

+5

Use details/summary tag <details> <summary>tiger</summary>The tiger is the largest cat species, most recognisable for their pattern of dark vertical stripes on reddish-orange fur with a lighter underside. </details> https://code.sololearn.com/WKBI8q4OafGE/?ref=app

+7

javascript I imagine, although I'm sure theres some clever way to do it through css. I don't know web languages well at all so I hope someone else can give more specific advice.

+2

Thanks