diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/use-headings-to-show-hierarchical-relationships-of-content.english.md b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/use-headings-to-show-hierarchical-relationships-of-content.english.md index 992e882bd5..aa7138f0dd 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/use-headings-to-show-hierarchical-relationships-of-content.english.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-accessibility/use-headings-to-show-hierarchical-relationships-of-content.english.md @@ -17,7 +17,7 @@ One final point, each page should always have one (and only one) h1 ## Instructions
-Camper Cat wants a page on his site dedicated to becoming a ninja. Help him fix the headings so his markup gives semantic meaning to the content, and shows the proper parent-child relationships of his sections. Change all the h5 tags to the proper heading level to indicate they are subsections of the h2 ones. +Camper Cat wants a page on his site dedicated to becoming a ninja. Help him fix the headings so his markup gives semantic meaning to the content, and shows the proper parent-child relationships of his sections. Change all the h5 tags to the proper heading level to indicate they are subsections of the h2 ones. Use h3 tags for the purpose.
## Tests @@ -25,11 +25,14 @@ Camper Cat wants a page on his site dedicated to becoming a ninja. Help him fix ```yml tests: - - text: Your code should have six h3 tags. - testString: assert($('h3').length === 6, 'Your code should have six h3 tags.'); + - text: Your code should have 6 h3 tags. + testString: assert($("h3").length === 6, 'Your code should have 6 h3 tags.'); + - text: Your code should have 6 h3 closing tags. + testString: assert((code.match(/\/h3/g) || []).length===6,'Your code should have 6 h3 closing 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."); + - text: Your code should not have any h5 closing tags. + testString: assert(/\/h5/.test(code)===false, 'Your code should not have any h5 closing tags'); ```