diff --git a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md index 78b9d0247b3..846f13c15fa 100644 --- a/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md +++ b/curriculum/challenges/english/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc2385ff86c76b9248c6eb7.md @@ -28,10 +28,8 @@ assert(code.match(/<\/main\>/)); Your `main` element's opening tag should be below the `h1` element. You have them in the wrong order. ```js -const collection = [...document.querySelectorAll('main,h1')].map( - (node) => node.nodeName -); -assert(collection.indexOf('H1') < collection.indexOf('MAIN')); +const main = document.querySelector('main'); +assert.equal(main?.previousElementSibling?.tagName, "H1"); ``` Your `main` element's opening tag should be above the `h2` element. You have them in the wrong order.