News for hackers. Stuff that matters.
Re:What I learnt roasting 200 landing pages by moshmosh on Thursday May 13, 2021 @12:39PM (#27144237)
There's a built-in HTML tag for this that traditionally uses the dotted underline. Looks like it doesn't do that on all browsers, though, these days, but it's a CSS tweak to add it. Behavior also seems worse than it used to on some browsers—safari makes you hover for a little to see the expanded definition, while I recall clicking to see it before, which is better.

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ab...

Re:What I learnt roasting 200 landing pages by amatecha on Thursday May 13, 2021 @09:12PM (#27149483)
There's also the <details> element: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/de... It works quite nicely but is a block element by default. You can override that with some CSS (display: inline or inline-block) and style it to look more like a regular piece of inline content. Pretty useful IMO!