All tags
html
Narrow down
Web39
- Tip
import { format } from "dates";An HTML import map lets your scripts import a library by a short nameWrite import statements without long URLs and without a build step.1 Dec 2026 - TipThe HTML optgroup element puts headings inside a long dropdownGroup the choices of a select so people find theirs faster.1 Dec 2026
- TipAn HTML noindex meta tag keeps one page out of search resultsAsk search engines not to list a thank you page or a draft.1 Dec 2026
- Tip
title="Example blog" href="/feed.xml">One HTML link tag lets feed readers discover your RSS feed by itselfPeople can paste your site address into a reader and it finds the feed.1 Dec 2026 - TipAn empty alt in HTML tells screen readers to skip a decorative imageStop screen readers from announcing file names of pictures that mean nothing.1 Dec 2026
- Tip
Save draftFormnovalidate on a Save draft button skips the required fields checkOne button submits without validation while the main button still checks everything.30 Nov 2026 - Tip
spellcheck="false"Spellcheck="false" and autocorrect="off" keep phones away from usernames and codesFields for usernames, commands or codes stop getting red lines and corrected words.30 Nov 2026 - Tip
const form = document.querySelector("#settings");Fieldset disabled switches off every field in a form at onceDisable a whole group of inputs while a form is being sent, with one attribute.30 Nov 2026 - Tip
q { quotes: auto; }The q element adds the right quotation marks for the page languageShort quotes get German, French or English quote marks automatically from the lang attribute.30 Nov 2026 - Tip
Total: € <output name="total" for="qty">9.00</output>The output element shows a calculated result that screen readers announceA form result updates in place and is read out without moving focus.30 Nov 2026 - Tip
accept="image/*" capture="environment">Capture="environment" on a file input opens the phone's back cameraAn upload button on a phone goes straight to the camera instead of the file picker.30 Nov 2026 - Tip
kbd kbd {Nest kbd elements to write keyboard shortcuts like Ctrl+Shift+PKeyboard shortcuts get proper markup and can be styled as keys.30 Nov 2026 - Tip
20 GB free. See Fig. 3 and page 12.</p>A non-breaking space keeps 10 GB and other number and unit pairs on one lineValues and their units never end up split across two lines.30 Nov 2026 - TipThe form attribute connects a button or input that sits outside the formA save button in a sticky footer can still submit a form elsewhere in the page.30 Nov 2026
- Tip
srcset="photo-400.jpg 400w,srcset with w descriptors and sizes lets the browser pick the right image filePhones download a small file and large screens a sharp one, from one img tag.30 Nov 2026 - TipClosedby="any" lets people close a dialog by clicking outside itA modal closes on a backdrop click or Escape without a custom click handler.30 Nov 2026
- TipCommandfor and command on a button open a dialog without a click handlerButtons can open modals and toggle popovers declaratively, with no JavaScript.30 Nov 2026
- Tip
alt="Boats in the harbour at sunset">Width and height on every img stop the page from jumping while images loadThe browser reserves the right space for an image before the file arrives.30 Nov 2026 - Tip
href="/fonts/source-serif-regular.woff2"Rel="preload" for a font only works with the crossorigin attributeA preloaded font arrives before the stylesheet asks for it, instead of being fetched twice.30 Nov 2026 - TipOl reversed counts a list down, for a top 10 that ends at number oneA countdown list without typing the numbers by hand.30 Nov 2026
- TipDefer and async on a script tag behave differently, and order is the reasonPick defer for scripts that depend on each other and async for independent ones.30 Nov 2026
- TipEnterkeyhint changes the label of the Enter key on a phone keyboardSets the label of the Enter key on mobile keyboards, like search, next or send.28 Nov 2026
- TipDatalist adds autocomplete suggestions to an input without JavaScriptOffers suggestions under a text input while still allowing any typed value.28 Nov 2026
- TipMeta theme-color tints the browser bar on a phone, with a light and dark versionColors the browser toolbar to match your site, with separate light and dark values.28 Nov 2026
- TipHidden="until-found" hides content that Ctrl+F can still findHides content but lets browser search and #links still find and reveal it.28 Nov 2026
- TipThe download attribute on a link suggests the filename, with a same-origin catchMakes a link save the file with a name you suggest, only for same-origin URLs.28 Nov 2026
- Tip<time datetime> gives a date a machine-readable versionGives a visible date a precise machine-readable value for browsers and scripts.28 Nov 2026
- TipThe <search> element replaces role="search" on a formMarks the search or filter part of a page as a landmark without an ARIA role.28 Nov 2026
- Tip
width="800" height="600" decoding="async">Decoding="async" on an image lets the page paint before the image is decodedHints that an image can be decoded after the rest of the page has painted.28 Nov 2026 - Tip<link rel="preconnect"> in your HTML warms up the connection to another site earlyLets the browser set up the connection to a critical third-party server before it is needed.26 Nov 2026
- TipThe HTML <template> element holds markup that a script copies for each itemKeeps a block of HTML ready but hidden, so a script can copy it for each new item.26 Nov 2026
- TipFetchpriority="high" in your HTML makes the browser load the hero image firstTells the browser which image matters most, so the main picture of a page appears sooner.26 Nov 2026
- Tip
...the page behind the drawer...The inert attribute switches off a whole part of a pageMakes part of a page unclickable, unfocusable and hidden from screen readers with one attribute.25 Nov 2026 - Tip
inputmode="numeric" autocomplete="one-time-code">Autocomplete="one-time-code" lets browsers fill in SMS verification codesMarks an input as a one-time code field so browsers can offer the code from a text message.25 Nov 2026 - TipThe HTML datalist element adds autocomplete suggestions to an inputGives a text input a list of suggested values without JavaScript, while still allowing free typing.25 Nov 2026
- TipThe HTML inputmode attribute picks the right keyboard on phonesHints which virtual keyboard a phone should show for a field, without changing validation.25 Nov 2026
- TipThe HTML picture element serves other formats and crops per screenOffers the browser alternative image files by format or by media condition, with an img fallback.25 Nov 2026
- Tip
Delete this item?The dialog element gives you a modal without a libraryOpens a real modal dialog with a backdrop, focus handling and Escape to close, using one HTML element.24 Nov 2026 - TipThe details element gives you an accordion without JavaScriptMakes a click-to-expand block in plain HTML, with no JavaScript.19 Nov 2026
CSS6
- Tip
.field:focus-within {:focus-within highlights the whole group around a focused inputStyles a container while any element inside it has keyboard focus.28 Nov 2026 - Tip
textarea {Field-sizing: content makes textareas grow with their textLets textareas and text inputs resize to fit what is typed, without JavaScript.28 Nov 2026 - Tip
ul li::marker {::marker styles list bullets without extra markupColours or replaces the bullets and numbers of a list directly in CSS.28 Nov 2026 - Tip
hyphens: auto;Hyphens: auto breaks long Dutch words, as long as lang is setLets the browser hyphenate long words at the end of a line, using the page language.27 Nov 2026 - Tip
input:user-invalid {CSS :user-invalid shows form errors only after the visitor has typed somethingMarks invalid form fields red only after interaction, not on an empty form that just loaded.26 Nov 2026 - TipThe HTML popover attribute gives you a dropdown with zero JavaScriptMakes a menu or tooltip that opens and closes from a button, without writing JavaScript.26 Nov 2026
Media2
- Tip
width="640" height="360" poster="demo.jpg">HTML video needs muted and playsinline to autoplay nicely on phonesMake a short silent clip start by itself without taking over the screen.1 Dec 2026 - Tip
srclang="en" label="English" default>An HTML track element adds captions to your own video with a small text fileOffer subtitles on a self hosted video with a WebVTT file.1 Dec 2026
Network2
- Tip
https://example.com/docs/setup#:~:text=back%20up%20the%20database#:~:text= in a link scrolls to and highlights one sentence on any pageLink to the exact sentence you mean, even on a page without anchors.30 Nov 2026 - Tip
https://example.com<wbr>/some<wbr>/very<wbr>/long<wbr>/path<wbr>/to<wbr>/a-file.pdf<wbr> marks where a long URL may break instead of overflowingMarks places where a long URL or path may wrap, without adding a hyphen.28 Nov 2026
Security1
Storage1
Home Assistant1
Posts1
Nothing matches.