diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/step-001.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/step-001.md index 1cdf25502b..eb462d349d 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/step-001.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/step-001.md @@ -51,10 +51,10 @@ Your `html` element should have a closing tag. assert(code.match(/<\/html\s*>/)); ``` -Your `html` element should be below the `DOCTYPE` declaration. +Your `DOCTYPE` declaration should be at the beginning of your HTML. ```js -assert(code.match(/\s*(\r?\n)+<\s*html\s*>/gi)); +assert(__helpers.removeHtmlComments(code).match(/^\s*/i)); ``` You should have an opening `head` tag.