Everyone talks about shiny new HTML5 APIs that are not very useful but few talk about essential web platform features that are being overlooked. This talk raises awareness of these APIs.
plain text and password. Input type controls the keyboard layout on mobile devices. Pick the right one. Most popular: email, tel, url, number https://html.spec.whatwg.org/multipage/input.html#states-of-the-type-attribute
30% faster when using autofill. User agent needs hints on what it should autofill otherwise it falls back to heuristics. https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill
CSS with :invalid and :valid pseudo-classes. Use novalidate or formnovalidate attribute to disable native tooltips. https://html.spec.whatwg.org/multipage/forms.html#client-side-form-validation https://html.spec.whatwg.org/dev/form-control-infrastructure.html#the- constraint-validation-api
in the source document. <!-- The base url: --> <base href="http: // www.example.com/"> <!-- The anchor: --> <a href=“#anchor">Click Me </a> <!-- Refers to: --> <!-- http: // www.example.com/#anchor --> https://html.spec.whatwg.org/multipage/semantics.html#the-base-element
=> { switch (document.visibilityState) { case 'hidden': console.log('Tab is hidden') break; case 'visible': console.log('Tab is visible') break; } }) https://www.w3.org/TR/page-visibility/
padding are calculated with respect to the width of the box’s containing block? I know, odd, right? https://www.w3.org/TR/CSS22/box.html#margin-properties