
Practical Web Design
Make the typing position visible with CSS caret-color
CSS caret-color styles the insertion point in editable text. Keep it visible across themes without confusing it with the pointer or focus outline.

CSS caret-color styles the insertion point in editable text. Keep it visible across themes without confusing it with the pointer or focus outline.

Use CSS focus-within to highlight a form group when one of its controls has focus, while preserving a clear indicator on the focused control itself.

CSS field-sizing lets supported text areas grow with their content. Add sensible size limits and a usable fallback, then test typing, pasting and mobile layout.

Design contact-form errors that explain what went wrong, preserve the user’s work and provide a clear route to correction or another contact method.