\n Chris Coyier <\/a>\n <\/div>\n\n<\/article>\n <\/div>\n \n","protected":false},"excerpt":{"rendered":"We\u2019ve mentioned before just how great the <details> and <summary> elements are. They\u2019re great for quickly making accordions that are accessible to touch, mouse, and keyboard input: <details> and <summary> can even be used to play\/pause gifs! Click the pause button in the top right of this image to see it in action: Neat, eh? […]<\/p>\n","protected":false},"author":223806,"featured_media":325989,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[4],"tags":[1393,11523,502],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/11\/details-tooltip.png?fit=1200%2C600&ssl=1","jetpack-related-posts":[{"id":13503,"url":"https:\/\/css-tricks.com\/the-details-and-summary-elements\/","url_meta":{"origin":325866,"position":0},"title":"The details and summary elements","date":"August 9, 2011","format":false,"excerpt":"Tom Leadbetter from HTML5 doctor shows us all about the summary and details element. I think this will be a particularly useful pair of elements, especially as browser support grows, with its baked in hide\/show functionality.","rel":"","context":"In "Link"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":373372,"url":"https:\/\/css-tricks.com\/more-details-on-details\/","url_meta":{"origin":325866,"position":1},"title":"More Details on `details`","date":"September 15, 2022","format":false,"excerpt":"A lot of chatter around the ol' and elements lately! I saw Lea Verou recently tweet an observation about the element's display behavior and that sorta splintered into more observations and usage notes from folks, including a revived discussion on whether should be allowed to contain interactive\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/09\/details-box.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":332360,"url":"https:\/\/css-tricks.com\/two-issues-styling-the-details-element-and-how-to-solve-them\/","url_meta":{"origin":325866,"position":2},"title":"Two Issues Styling the Details Element and How to Solve Them","date":"January 13, 2021","format":false,"excerpt":"In the not-too-distant past, even basic accordion-like interactions required JavaScript event listeners or some CSS\u2026 trickery. And, depending on the solution used, editing the underlying HTML could get complicated. Now, the and elements (which combine to form what\u2019s called a \u201cdisclosure widget\u201d) have made creation and maintenance of\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/01\/details-summary-issues.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":268649,"url":"https:\/\/css-tricks.com\/quick-reminder-that-details-summary-is-the-easiest-way-ever-to-make-an-accordion\/","url_meta":{"origin":325866,"position":3},"title":"Quick Reminder that Details\/Summary is the Easiest Way Ever to Make an Accordion","date":"March 28, 2018","format":false,"excerpt":"Gosh bless the\u00a0\u00a0element. Toss some content inside it and you have an accessible expand-for-more interaction with just about zero work. CodePen Embed Fallback Toss a\u00a0\u00a0in there to customize what the expander text says. CodePen Embed Fallback Works great for FAQs. https:\/\/videopress.com\/v\/RQHByZSz?resizeToParent=true&cover=true&preloadContent=metadata&useAverageColor=true There is really no limit to how you can\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2018\/03\/accordion.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":303614,"url":"https:\/\/css-tricks.com\/creating-a-details-element-that-opens-but-never-closes\/","url_meta":{"origin":325866,"position":4},"title":"Creating a Details Element That Opens But Never Closes","date":"February 14, 2020","format":false,"excerpt":"The and elements in HTML are useful for making content toggles for bits of text. By default, you see the element with a toggle triangle (\u25b6\ufe0e) next to it. Click that to expand the rest of the text inside the element. But let's say you want\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2018\/03\/accordion.jpg?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":351915,"url":"https:\/\/css-tricks.com\/shadow-roots-and-inheritance\/","url_meta":{"origin":325866,"position":5},"title":"Shadow Roots and Inheritance","date":"September 16, 2021","format":false,"excerpt":"There is a helluva gotcha with styling a element, as documented here by Kitty Giraudel. It's obscure enough that you might never run into it, but if you do, I could see it being very confusing (it would confuse me, at least). Perhaps you're aware of the shadow DOM?\u2026","rel":"","context":"In "Link"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/09\/Screen-Shot-2021-09-15-at-3.57.50-PM.png?fit=1200%2C717&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"featured_media_src_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/11\/details-tooltip.png?fit=1024%2C512&ssl=1","_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/325866"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/223806"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=325866"}],"version-history":[{"count":10,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/325866\/revisions"}],"predecessor-version":[{"id":326389,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/325866\/revisions\/326389"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media\/325989"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=325866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=325866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=325866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}