diff --git a/challenges/01-responsive-web-design/applied-accessibility.json b/challenges/01-responsive-web-design/applied-accessibility.json index 6c53a4273..5930defdc 100644 --- a/challenges/01-responsive-web-design/applied-accessibility.json +++ b/challenges/01-responsive-web-design/applied-accessibility.json @@ -6,7 +6,8 @@ "challenges": [ { "id": "587d774c367417b2b2512a9c", - "title": "Add a Text Alternative to Images for Visually Impaired Accessibility", + "title": + "Add a Text Alternative to Images for Visually Impaired Accessibility", "description": [ "It's likely you've seen an alt attribute on an img tag in other challenges. Alt text describes the content of the image and provides a text-alternative. This helps in case the image fails to load or can't be seen by a user. It's also used by search engines to understand what an image contains to include it in search results. Here's an example:", "<img src="importantLogo.jpeg" alt="Company logo">", @@ -17,8 +18,10 @@ ], "tests": [ { - "text": "Your img tag should have an alt attribute, and it should not be empty.", - "testString": "assert($('img').attr('alt'), 'Your img tag should have an alt attribute, and it should not be empty.');" + "text": + "Your img tag should have an alt attribute, and it should not be empty.", + "testString": + "assert($('img').attr('alt'), 'Your img tag should have an alt attribute, and it should not be empty.');" } ], "solutions": [], @@ -26,15 +29,14 @@ "releasedOn": "Feb 17, 2017", "challengeType": 0, "translations": {}, - "guideUrl": "https://guide.freecodecamp.org/certificates/add-alt-text-to-an-image-for-accessibility", + "guideUrl": + "https://guide.freecodecamp.org/certificates/add-alt-text-to-an-image-for-accessibility", "files": { "indexhtml": { "key": "indexhtml", "ext": "html", "name": "index", - "contents": [ - "" - ], + "contents": [""], "head": [], "tail": [] } @@ -54,12 +56,16 @@ ], "tests": [ { - "text": "Your img tag should have an alt attribute.", - "testString": "assert(!($('img').attr('alt') == undefined), 'Your img tag should have an alt attribute.');" + "text": + "Your img tag should have an alt attribute.", + "testString": + "assert(!($('img').attr('alt') == undefined), 'Your img tag should have an alt attribute.');" }, { - "text": "The alt attribute should be set to an empty string.", - "testString": "assert($('img').attr('alt') == '', 'The alt attribute should be set to an empty string.');" + "text": + "The alt attribute should be set to an empty string.", + "testString": + "assert($('img').attr('alt') == '', 'The alt attribute should be set to an empty string.');" } ], "solutions": [], @@ -107,11 +113,13 @@ "tests": [ { "text": "Your code should have six h3 tags.", - "testString": "assert($('h3').length === 6, 'Your code should have six h3 tags.');" + "testString": + "assert($('h3').length === 6, 'Your code should have six h3 tags.');" }, { "text": "Your code should not have any h5 tags.", - "testString": "assert($('h5').length === 0, 'Your code should not have any h5 tags.');" + "testString": + "assert($('h5').length === 0, 'Your code should not have any h5 tags.');" } ], "solutions": [], @@ -161,11 +169,14 @@ "tests": [ { "text": "Your code should have one main tag.", - "testString": "assert($('main').length == 1, 'Your code should have one main tag.');" + "testString": + "assert($('main').length == 1, 'Your code should have one main tag.');" }, { - "text": "The main tags should be between the closing header tag and the opening footer tag.", - "testString": "assert(code.match(/<\\/header>\\s*?
\\s*?<\\/main>/gi), 'The main tags should be between the closing header tag and the opening footer tag.');" + "text": + "The main tags should be between the closing header tag and the opening footer tag.", + "testString": + "assert(code.match(/<\\/header>\\s*?
\\s*?<\\/main>/gi), 'The main tags should be between the closing header tag and the opening footer tag.');" } ], "solutions": [], @@ -207,11 +218,13 @@ "tests": [ { "text": "Your code should have three article tags.", - "testString": "assert($('article').length == 3, 'Your code should have three article tags.');" + "testString": + "assert($('article').length == 3, 'Your code should have three article tags.');" }, { "text": "Your code should not have any div tags.", - "testString": "assert($('div').length == 0, 'Your code should not have any div tags.');" + "testString": + "assert($('div').length == 0, 'Your code should not have any div tags.');" } ], "solutions": [], @@ -265,19 +278,25 @@ "tests": [ { "text": "Your code should have one header tag.", - "testString": "assert($('header').length == 1, 'Your code should have one header tag.');" + "testString": + "assert($('header').length == 1, 'Your code should have one header tag.');" }, { - "text": "Your header tags should wrap around the h1.", - "testString": "assert($('header').children('h1').length == 1, 'Your header tags should wrap around the h1.');" + "text": + "Your header tags should wrap around the h1.", + "testString": + "assert($('header').children('h1').length == 1, 'Your header tags should wrap around the h1.');" }, { "text": "Your code should not have any div tags.", - "testString": "assert($('div').length == 0, 'Your code should not have any div tags.');" + "testString": + "assert($('div').length == 0, 'Your code should not have any div tags.');" }, { - "text": "Make sure your header element has a closing tag.", - "testString": "assert(code.match(/<\\/header>/g) && code.match(/<\\/header>/g).length === code.match(/
/g).length, 'Make sure your header element has a closing tag.');" + "text": + "Make sure your header element has a closing tag.", + "testString": + "assert(code.match(/<\\/header>/g) && code.match(/<\\/header>/g).length === code.match(/
/g).length, 'Make sure your header element has a closing tag.');" } ], "solutions": [], @@ -334,19 +353,24 @@ "tests": [ { "text": "Your code should have one nav tag.", - "testString": "assert($('nav').length == 1, 'Your code should have one nav tag.');" + "testString": + "assert($('nav').length == 1, 'Your code should have one nav tag.');" }, { - "text": "Your nav tags should wrap around the ul and its list items.", - "testString": "assert($('nav').children('ul').length == 1, 'Your nav tags should wrap around the ul and its list items.');" + "text": + "Your nav tags should wrap around the ul and its list items.", + "testString": + "assert($('nav').children('ul').length == 1, 'Your nav tags should wrap around the ul and its list items.');" }, { "text": "Your code should not have any div tags.", - "testString": "assert($('div').length == 0, 'Your code should not have any div tags.');" + "testString": + "assert($('div').length == 0, 'Your code should not have any div tags.');" }, { "text": "Make sure your nav element has a closing tag.", - "testString": "assert(code.match(/<\\/nav>/g) && code.match(/<\\/nav>/g).length === code.match(/