Forms are awesome

Internet
Joined August 2016
Fun with Forms retweeted
With Safari 16 (released Sep 12) `requestSubmit` is now cross-browser supported. 🎉
HTMLFormElement.requestSubmit() in a nutshell. 👇 Spec: html.spec.whatwg.org/multipa… MDN: developer.mozilla.org/en-US/… #devsheets Video alt: Form that is not submitting on button click due to failing validations. `submit()` ignores errors and submits – `requestSubmit()` validates first.
6
17
Fun with Forms retweeted
The best way to learn Berlin boroughs is to make a silly demo, right? Well, there you go: new <selectmenu> and <popup> elements combo as a styleable <select> alternative. ⚠️ Works only in Chrome with Experimental Web Platform features flag enabled. codepen.io/pepelsbey/pen/zYE…
1
1
1
16
Fun with Forms retweeted
Whoop whoop! 🎉 `input-security` (the standardized way to toggle the display of password input values) ships in Safari Tech preview. 💪 🔗 Spec: drafts.csswg.org/css-ui/#inp… Video alt: Showing the usually obscured input field value using `input-security`.
2
64
6
279
Fun with Forms retweeted
Great to get to work with Michael on web.dev/learn/forms! Please let us know if anything doesn't make sense, or if anything is missing. 👍🙏
So excited that this course is out now.
3
8
54,4% of the top 1,000,000 web pages have at least one missing `<label>` element. webaim.org/projects/million/… Let's improve accessibility across the web, and learn how to build accessible forms web.dev/learn/forms/accessib…
1
4
⚡ We've launched a whole bunch of new courses on web.dev today! ⚡ First up is Learn Forms! Everything you need to know about building fantastic forms. → web.dev/learn/forms/ Written by @justmarkup
3
56
4
223
The text input. It can do so much more than accept a random piece of text. Simple and minimal yet packed with potential.
What's your favourite HTML form element and why?
2
4
61
Fun with Forms retweeted
Replying to @funwithforms
<label>, make them display block and put the related input inside them.
Input for me. It can do allot
What's your favourite HTML form element and why?
1
1
Replying to @funwithforms
Checkbox. Obvious what it is, great to use with label to create CSS solutions that work with keyboard.
1
2
<button> is a labelable element
Somebody tell the <div role=button> people that <button> can be wrapped in <label>: codepen.io/simevidas/pen/bGw…
4
25
I’d forgotten that <input type="image"> is a thing. It behaves “in much the same way as a regular <img> element, but with the capabilities of a submit button” MDN: developer.mozilla.org/en-US/… Basically, a form Submit button that’s an image. Or an image that submits a form. #HTML
13
12
3
176
Inclusive Dates, a human-friendly and fully accessible date picker. Demo fymmot.github.io/inclusive-d… GitHub repo github.com/fymmot/inclusive-…
5
54
8
436
Fun with Forms retweeted
Oh my god 😱
2
1
21