From 53ca3704a4694a3e8f731448c257851c24bcede6 Mon Sep 17 00:00:00 2001 From: Panayiotis Lipiridis Date: Sat, 23 Oct 2021 21:36:36 +0300 Subject: [PATCH] Add alt to images --- assets/docs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/docs.js b/assets/docs.js index b51ef327..ddfc5cc6 100644 --- a/assets/docs.js +++ b/assets/docs.js @@ -36,6 +36,7 @@ const addFlag = (country, rowDiv) => { const flagImg = document.createElement('img'); flagImg.classList.add('flag-img'); flagImg.src = country.flag_4x3; + flagImg.alt = `Flag of ${country.name}`; colDiv.appendChild(flagDiv); flagDiv.appendChild(countryDiv);