How to make the appearance of the text?

Hello. Saw an interesting feature on the site, but don't know how to do so.

[Скриншот1] - 5c99c0f665aef626781966.png

Label with text when clicked appears below the text - 5c99c11363db3879733430.png

Do not tell me how this can be implemented?
March 19th 20 at 08:35
6 answers
March 19th 20 at 08:37
March 19th 20 at 08:39
Implemented in JS, even easier with jquery. Quite simply, the unit with the text below is initially hidden (display: none) by clicking on "How to Activate the Code" his child is set to display:block. In jquery this .fadeIn() , .fadeOut()
All here
March 19th 20 at 08:41
March 19th 20 at 08:43
Excellent article here: Accordion with pure CSS
March 19th 20 at 08:45
depending on the task, and if you don't need support for internet explorer, and no js on pure html and css there is a tag details -
March 19th 20 at 08:47
Here is the answer to your question

Find more questions by tags Web DevelopmentHTMLjQueryJavaScriptCSS