HTML (Hyper Text Markup Language) is the primary markup language that we use to layout web content.
For any developer who works within the front-en...
For further actions, you may consider blocking this person and/or reporting abuse
Note that you'll currently need to use a polyfill to use the element. It is so far only out-of-the-box enabled in Chrome. Firefox needs a setting turned on, and Safari doesn't support it.
Which element?
Whoops, seems like Dev.to's comment formatting swallowed it. I meant
<dialog>
.Oh! Thanks, good to know.
Yesterday I learnt about the datalist. Html native select search/autocomplete. developer.mozilla.org/en-US/docs/W...
Yeah only issue with that can be that users can also write in their own text so it's not a true autocomplete without a sprinkling of js on top.
I know what you mean though. We recently discovered this one after weeks of work on a custom autocomplete that was basically just this element! Talk about reinventing the wheel
Yes indeed, you're right, Grace!
Wow! I never knew most of these existed! Great article. (:3 」∠)
Neither did I at some point 🤷🏻♂️, glad I brought them into your attention🕵🏼♂️.
I always forget about dialogue. The rest I use all the time 😎
Bdi was a very recent discovery for me
I'm not sure main is a "less popular" element tbh though. That's pretty standard, like header and footer
Surprising as it is it's not used as much as it should be or we assume it is, especially compared to the header and footer elements. I tried checking a number of random websites including top sites such as Google (results page), Twitter, Instagram🤔, Medium, Geeksforgeeks etc and could not find it in their source code, though some e.g Google use the ARIA role="main" in its place (I guess partly in consideration of IE 11 users).
It is a limited set of data that I've based this on for my lack of knowledge of a better way to collect such stats, but it got me thinking that it just might not be as popular/used as I think it is.
Although some of the outputs are predictable, would have loved some sort of output gif/codepen element in the post :)