Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to collapse a text using HTML only? [closed]

Tags:

html

css

Is it possible in HTML only? I saw with CSS but my environment doesn't cater CSS. Please help. Thanks!

like image 932
Vina Chan Avatar asked Dec 03 '22 11:12

Vina Chan


1 Answers

Yes, it is possible using the HTML Details Element <details>:

<details>
    <summary>Summary</summary>

    <p>Detailed content goes here …</p>
</details>

Check browser support.

like image 173
insertusernamehere Avatar answered Dec 17 '22 23:12

insertusernamehere