5 ms·
I suppose some experienced developer just found out that some interessting features have been added since 1996? another, not that well known, tag which is IMHO
by salzig 5y ago
I suppose some experienced developer just found out that some interessting features have been added since 1996?
another, not that well known, tag which is IMHO quite useful when you have to serve static pages <base>[0].
[0] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ba...
Edit: 1996 is just a random reference, not actually checked.
Edit2: Link to English MDN.
- lkuty 5y agoOr https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ba... for english
- salzig 5y agouh, missed that. Thanks.
- bondant 5y agoSometimes those interesting features are not easy to find. When looking up on how to do something for the web, one get tons of answers describing how to do it with javascript and usually with js frameworks. The simple methods (which do not cover all cases but are sometimes enough) are usually buried under. So unless beginner learn by heart all the html tags (and that is not beginner friendly) they won't know those basic features, so I think that's cool to have a reminder.
- salzig 5y agoAbsolutly, that was exact the feeling when i realised that datalist exist. How on earth could i miss that? The Internet is getting more and more "sources", but all of them seem to be almost direct copies of already existing source of information, just with a different layout.
- tannhaeuser 5y agoI'm not a fan of the whole WHATWG spec/process, but it has datalist and other not-so-well-known elements covered. If you prefer a succinct reference (rather than the full browser-melting spec), there are other other sources than WHATWG's spec or MDN helping with discoverability, such as mine (as a proper SGML DTD grammar, no less) [1]. [1]: <http://sgmljs.net/docs/w3c-html52-dtd.html http://sgmljs.net/docs/w3c-html52-dtd.html>
- rplnt 5y agoI absolutely hate the web dev community. Any HTML or JS related question was answered by "just use jquery" for maybe a decade.
- colejohnson66 5y agoThe jQuery cliche was such a meme: https://imgur.com/Q3mkcnl.gif https://imgur.com/Q3mkcnl.gif
- jonnycomputer 5y agoYeah, I didn't now about data-* attributes until about two years ago. I quickly leveraged it to make creating forms with branching less of hassle: instead of relying on complicated state to hide and show different divs, I simply used data-next and data-previous attributes to govern navigation through the tree.
- varrock 5y agoWhen you say branching, are you talking about a dynamic input, e.g., an email text input that appears after a subscribe checkbox is selected?
- jonnycomputer 5y agoWhen there are dependencies between questions in a form (e.g. only ask for date married if answered yes to married). Its confusing if those elements are visible when not needed, so yeah, becomes dynamic. Also, I used "tree" loosely. I meant something closer to a DAG.
- swiley 5y agoMost of the web seems like the devs are stuck in the early 2000s just with faster computers. I think part of it is stack overflow where 15 years ago the only way to do a lot of stuff was a couple functions full of jquery so that's what the "correct" answers say to do.
- japanuspus 5y agoJust used `base` today: building a whole reporting framework that needs to work from static files, and base is one of those little tricks that makes it all nicer. I am hitting a lot of weird little things running from static files, but I think it helps me quite a bit that I know html from when it was young -- hand crafting html for your angelfire site in the 1990's sort of prepared me for semantic tags...