Choose markup by the actual browser behavior, then check what still belongs to the application.
Review the decisions
- HTML viewport metadata: let a mobile layout use device width
- HTML data element: pair visible labels with machine values
- HTML pattern: validate a field's syntax without claiming identity
- HTML dirname: submit text direction beside the user's words
- HTML details name groups: open one disclosure at a time
- HTML track languages: label subtitles and captions honestly
Common Mistakes
Keep browser hints separate from server validation and ownership of files.
