+ 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

26th Sep 2017, 8:45 AM
B.D
B.D - avatar
3 Answers
+ 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
26th Sep 2017, 9:28 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 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.
26th Sep 2017, 8:53 AM
Ahri Fox
Ahri Fox - avatar
+ 2
Thanks
26th Sep 2017, 2:12 PM
B.D
B.D - avatar