Using the Flag Icon Script

This page demonstrates how to use the custom <flag-icon> element after including the flag-icon.js script.

Examples

You can use the two-letter country code for Japan or write out the full country name for Germany .

The script is case-insensitive, so "FR" , "fr" , and "France" all work.

It also handles multi-word countries, like the United Arab Emirates .