←back to thread

Just use a button

(gomakethings.com)
284 points moebrowne | 1 comments | | HN request time: 0.203s | source
Show context
flemhans ◴[] No.45774727[source]
Why is the <div> option proposed by anyone in the first place?
replies(3): >>45774762 #>>45774882 #>>45775944 #
Joker_vD ◴[] No.45774882[source]
Well, have you been on, I don't know, TV Tropes? They have those long lists, that are separated into "folders" on a single page. You can click on those "folders" to expand/collapse them, and it's implemented as a <div> with "onclick" property and <ul> inside it (well, used to IIRC; nowadays this <ul> is a child of a sibling <div>).
replies(2): >>45775658 #>>45777722 #
1. zahlman ◴[] No.45777722[source]
> You can click on those "folders" to expand/collapse them, and it's implemented as a <div> with

... Isn't that what <details> and <summary> are for?