Flags
Flags come from flag-icons

flag-icons 7.6.0 (github.com/lipis/flag-icons, MIT license). One SVG file per country in flags/. The browser loads only the flags you use.

Flags with an accessible name

Beside the country name

  • Thailand
  • Singapore
  • Vietnam

Sizes: sm, default, lg and xl

Attributes

Attribute / element Values Description
.flag A 4:3 box, 16px tall, with a hairline edge so white flags show on a white background.
.flag-{code} ISO 3166 code, e.g. th, gb-eng Picks the flag; see the list below.
data-size sm, default, lg, xl Height 12, 16, 24 or 32px.
role="img" + aria-label text For a flag on its own, so it has a name.
aria-hidden="true" When the country name is next to it.

Every flag

Search by code or name; click a flag to copy its HTML.