diff --git a/challenges/01-front-end-development-certification/bootstrap.json b/challenges/01-front-end-development-certification/bootstrap.json index b56ec96069..91edc3df47 100644 --- a/challenges/01-front-end-development-certification/bootstrap.json +++ b/challenges/01-front-end-development-certification/bootstrap.json @@ -48,7 +48,7 @@ "", "
Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", @@ -783,9 +783,9 @@ "", "Click here for cat photos.
", "", - "Click here for cat photos.
", "", - "img
element, and point to a specific image's URL using the src
attribute.",
"An example of this would be:",
"<img src=\"https://www.your-image-source.com/your-image.jpg\">
",
+ "All img
elements must have an alt
attribute. The text inside an alt
attribute is used for screen readers to improve accessibility and is displayed if the image fails to load.",
+ "Lets add an alt
attribute to our img
example above:",
+ "<img src=\"https://www.your-image-source.com/your-image.jpg\" alt=\"Author standing on a beach with two thumbs up. \">
",
"Note that in most cases, img
elements are self-closing.",
"Try it with this image:",
"https://bit.ly/fcc-relaxing-cat
"
@@ -1094,7 +1097,8 @@
],
"tests": [
"assert($(\"img\").length > 0, 'message: Your page should have an image element.');",
- "assert(new RegExp(\"\\/\\/bit.ly\\/fcc-relaxing-cat\", \"gi\").test($(\"img\").attr(\"src\")), 'message: Your image should have a src
attribute that points to the kitten image.');"
+ "assert(new RegExp(\"\\/\\/bit.ly\\/fcc-relaxing-cat\", \"gi\").test($(\"img\").attr(\"src\")), 'message: Your image should have a src
attribute that points to the kitten image.');",
+ "assert(code.match(/alt\\s*?=\\s*?(\\\"|\\')[\\s\\w\\.\\,\\!]+?(\\\"|\\')/), 'message: Your image element must have an alt
attribute.');"
],
"type": "waypoint",
"titleEs": "Añade imágenes a tu sitio web",
@@ -1164,7 +1168,7 @@
"",
"Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1251,7 +1255,7 @@ "", "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1330,7 +1334,7 @@ "", "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1400,7 +1404,7 @@ "", "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1485,7 +1489,7 @@ "", "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1577,7 +1581,7 @@ "", "cat photos", "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1662,7 +1666,7 @@ "", "Click here for cat photos.
", "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1708,7 +1712,7 @@ "description": [ "You can make elements into links by nesting them within ana
element.",
"Nest your image within an a
element. Here's an example:",
- "<a href=\"#\"><img src=\"https://bit.ly/fcc-running-cats\"></a>
",
+ "<a href=\"#\"><img src=\"https://bit.ly/fcc-running-cats\" alt=\"Three kittens running towards the camera. \"></a>
",
"Remember to use #
as your a
element's href
property in order to turn it into a dead link.",
"Place the existing image element within an anchor element.",
"Once you've done this, hover over your image with your cursor. Your cursor's normal pointer should become the link clicking pointer. The photo is now a link."
@@ -1745,7 +1749,7 @@
"",
"Click here for cat photos.
", "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -1767,91 +1771,6 @@ "titleDe": "Verlinke ein Bild", "challengeType": 0 }, - { - "id": "bad87fee1348bd9aedf08818", - "descriptionPtBR": [ - "Os atributosalt
, também conhecidos como texto alternativo
, serão apresentados caso se por qualquer motivo o navegador não possa mostrar a imagem. Os atributos alt
também são importantes para que usuários cegos ou com alguma deficiência visual possam entender o que uma imagem retrata. Além disso, os motores de busca também examinam os atributos alt
.",
- "Em resumo: Todas as imagem devem ter um atributo alt
!",
- "Você pode adicionar um atributo alt
já no elemento img
assim:",
- "<img src=\"www.your-image-source.com/your-image.jpg\" alt=\"seu texto alternativo\">
",
- "Adicione um atributo alt
com o texto A cute orange cat lying on its back
para a nossa foto com o gato."
- ],
- "namePtBR": "Dê Acessibilidade a uma Imagem com Texto Alternativo",
- "descriptionDe": [
- "alt
Attribute – auch alt text
genannt – werden von Browsern angezeigt, wenn sie ein Bild nicht laden können. Für blinde oder visuell eingeschränkte Menschen sind sie ebenfalls wichtig um zu verstehen, was ein Bild darstellt. Zudem werden diese Texte von Suchmaschinen genutzt.",
- "Kurz gesagt: Jedes Bild sollte ein alt
Attribut beinhalten!",
- "Du kannst das alt
Attribut direkt in das Img Element einfügen:",
- "<img src=\"www.deine-bild-quelle.com/dein-bild.jpg\" alt=\"dein alt Text\">
",
- "Füge zu unserem Katzen-Bild ein alt
Attribut mit dem Text \"A cute orange cat lying on its back\" hinzu."
- ],
- "titleRU": "Добавьте альтернативный текст к изображению для улучшения доступа",
- "descriptionRU": [
- "Атрибуты alt
, также известные как alt text
, являются тем, что браузеры отобразят, если изображение загрузить не получится. Атрибуты alt
важны для незрячих или пользователей с ограниченными возможностями в области зрения для понимания того, что отображает изображение. Также поисковые системы используют атрибуты alt
.",
- "Вкратце, каждое изображение должно иметь атрибут alt
!",
- "Вы можете добавить атрибут alt
прямо в элемент <img src=\"www.your-image-source.com/your-image.jpg\" alt=\"ваш альтернативный текст\">
",
- "Добавьте атрибут alt
с текстом A cute orange cat lying on its back
к нашему фото кота."
- ],
- "title": "Add Alt Text to an Image for Accessibility",
- "description": [
- "alt
attributes, also known as alt text
, are what browsers will display if they fail to load the image. alt
attributes are also important for blind or visually impaired users to understand what an image portrays. And search engines also look at alt
attributes.",
- "In short, every image should have an alt
attribute!",
- "You can add an alt
attribute right in the img element like this:",
- "<img src=\"www.your-image-source.com/your-image.jpg\" alt=\"your alt text\">
",
- "Add an alt
attribute with the text A cute orange cat lying on its back
to our cat photo."
- ],
- "challengeSeed": [
- "",
- "",
- "",
- "Click here for cat photos.
", - "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", - "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" - ], - "tests": [ - "assert($(\"img\").filter(function(){ return /cat/gi.test(this.alt) }).length > 0, 'message: Your image element should have analt
attribute set to A cute orange cat lying on its back
');"
- ],
- "type": "waypoint",
- "titleEs": "Agrega texto alternativo a una imagen para dar Accesibilidad",
- "descriptionEs": [
- "Los atributos alt
también conocidos como texto alternativo
, son lo que se presentarán en caso que el navegador no pueda mostrar la imagen. Los atributos alt
también son importantes para los usuarios ciegos o con deficiencia visual para entender lo que una imagen retrata. Los motores de búsqueda también examinan los atributos alt
. ",
- "En resumen, ¡cada imagen debe tener un atributo alt
!",
- "Puedes agregar un atributo alt
justo en el elemento img
así:",
- "<img src=\"www.fuente-de-tu-imagen.com/tu-imagen.jpg\" alt=\"tu texto alternativo\">
",
- "Añade un atributo alt
con el texto A cute orange cat lying on its back
a nuestra foto del gato."
- ],
- "titleDe": "Füge Alt Text für mehr Barrierefreiheit hinzu",
- "challengeType": 0
- },
{
"id": "bad87fee1348bd9aedf08827",
"descriptionPtBR": [
@@ -1924,7 +1843,7 @@
"",
"Click here for cat photos.
", "", - "Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.
", "Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.
" @@ -2020,7 +1939,7 @@ "", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", "Click here for cat photos.
", "", - "Things cats love:
", @@ -3128,7 +3047,7 @@ "", "Click here for cat photos.
", "", - "Things cats love:
", @@ -3242,7 +3161,7 @@ "", "Click here for cat photos.
", "", - "Things cats love:
", diff --git a/challenges/01-front-end-development-certification/json-apis-and-ajax.json b/challenges/01-front-end-development-certification/json-apis-and-ajax.json index 756f235968..1cd8f10183 100644 --- a/challenges/01-front-end-development-certification/json-apis-and-ajax.json +++ b/challenges/01-front-end-development-certification/json-apis-and-ajax.json @@ -289,7 +289,7 @@ "We've seen from the last two lessons that each object in our JSON array contains animageLink
key with a value that is the URL of a cat's image.",
"When we're looping through these objects, let's use this imageLink
property to display this image in an img
element.",
"Here's the code that does this:",
- "html += \"<img src = '\" + val.imageLink + \"'>\";
"
+ "html += \"<img src = '\" + val.imageLink + \"' \" + \"alt='\" + val.altText + \"'>\";
"
],
"challengeSeed": [
"fccss",
@@ -349,14 +349,14 @@
"Hemos visto en las dos últimas lecciones que cada objeto en nuestro vector JSON contiene una llave imageLink
con un valor que corresponde a la URL de la imagen de un gato.",
"Cuando estamos recorriendo estos objetos, usemos esta propiedad imageLink
para visualizar la imagen en un elemento img
.",
"Aquí está el código que hace esto:",
- "html += \"<img src = '\" + val.imageLink + \"'>\";
"
+ "html += \"<img src = '\" + val.imageLink + \"' \" + \"alt='\" + val.altText + \"'>\";
"
],
"titlePt": "Apresentar as imagens da fonte de dados",
"descriptionPt": [
"Como temos visto nas ultimas lições, cada objeto em nosso array JSON contém a chave imageLink
com um valor que corresponde a URL da imagem de um gato.",
"Quando estamos percorrendo por estes objetos, usamos a propriedade imageLink
para visualizar a imagem em um elemento img
.",
"Aqui está o código para fazer isso:",
- "html += \"<img src = '\" + val.imageLink + \"'>\";
"
+ "html += \"<img src = '\" + val.imageLink + \"' \" + \"alt='\" + val.altText + \"'>\";
"
]
},
{
@@ -387,7 +387,7 @@
"",
" html += \"