tips
14 tips Html
One command, setting or habit at a time about Html: what it does, the line to copy and a caveat or two.
Web development 14
-
Write import statements without long URLs and without a build step.
import { format } from "dates"; -
Make a short silent clip start by itself without taking over the screen.
width="640" height="360" poster="demo.jpg"> -
Group the choices of a select so people find theirs faster.
-
Offer subtitles on a self hosted video with a WebVTT file.
srclang="en" label="English" default> -
Ask search engines not to list a thank you page or a draft.
-
People can paste your site address into a reader and it finds the feed.
title="Example blog" href="/feed.xml"> -
Stop screen readers from announcing file names of pictures that mean nothing.
-
Lets the browser set up the connection to a critical third-party server before it is needed.
-
Keeps a block of HTML ready but hidden, so a script can copy it for each new item.
-
Tells the browser which image matters most, so the main picture of a page appears sooner.
-
Makes a menu or tooltip that opens and closes from a button, without writing JavaScript.
-
Gives a text input a list of suggested values without JavaScript, while still allowing free typing.
-
Hints which virtual keyboard a phone should show for a field, without changing validation.
-
Offers the browser alternative image files by format or by media condition, with an img fallback.
Nothing in this filter yet.