The HTML 'details' Tag provides and expanded dialog without the need for any Javascript!
Normally to create a expandable area like this we would use some custom Javascript or reach for something like JQuery to help us create. But for simple scenarios this is not longer needed.
We can add a summary tag also that specifies the test that appears in the title of the drop down - so rather than simply saying 'details'
can also have it open by default by placing the 'open' attribute in the details Tag.
Checking 'canisuse.com' and browser coverate is 96% with only Opera mini not having support. So pretty good to use unless you need to support Opera mini!
#shorts
Смотрите видео HTML Expand - with no Javascript! онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь A shot of code 14 Апрель 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,935 раз и оно понравилось 92 людям.