Responsive web development

my code meets all the criteria but the tests don’t show that It does what might be the issue?

Please post your code and a link to the Step. Thanks

1 Like

these steps:
Each .main-section should have an id that matches the text of its first child, having any spaces in the child’s text replaced with underscores (_ ) for the id’s.
Each .nav-link should have text that corresponds to the header text of its related section (e.g. if you have a “Hello world” section/header, your #navbar should have a .nav-link which has the text “Hello world”).

Welcome to the forum @malshakeralaseer

Remove all the header elements.
This is what is causing the h1 elements to become children of the header element.
The header element in this case is the first child element of .main-section.

Happy coding

1 Like

thanks, i removed the headers then readded them since the project requires headers and it worked, eventthough it was exactly the same as before

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.