I want something that's open more content when clicking on it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

I want something that's open more content when clicking on it

I want some help to make a tab In html with the help of css and JavaScript, I want something that we click on it like button but it is a form of text when we clicked on it activates and give us text/information/paragraph something like button that link more content or short words something like (Tabs)

14th Aug 2021, 5:03 AM
Technical Hassaan
Technical Hassaan - avatar
2 Answers
+ 3
I see that one of the links Prashanth Kumar gave you helped you, but I will still link one more for people who have got the same question but mean something somewhat different: There is a <details> tag in HTML. If you click on it, it expands and you can see some additional information (basically, like the sections in Wikipedia pages for mobile devices): https://www.w3schools.com/tags/tag_details.asp , https://developer.mozilla.org/en/docs/Web/HTML/Element/details .
28th Nov 2021, 8:05 AM
#0009e7 [get]
#0009e7 [get] - avatar
14th Aug 2021, 6:45 AM
Prashanth Kumar
Prashanth Kumar - avatar