My code is woeking but codepen test says it is not

In the 4th project of Responsive Web Design my code is working in sublime text but when I paste that code in codepen it says failure.
I have followed all the instructions given by them but still not working. I am stuck here for last 3 days

Welcome to the forum!
Can you share a link so we can see what you are having trouble with?

here is the link to my codepen
you can see content no 4

if it is this : Do not mix tabs and spaces for indentation.
then do not mind it
but if u want to read more information about it, here is the link: coding style - What are the downsides of mixing tabs and spaces? - Software Engineering Stack Exchange

Are you referring to this failing test?
4. Each <section> element with the class of "main-section" should also have an id comprised of the <header> innerText contained within it, with underscores in place of spaces. The id may include special characters if there are special characters in the respective <header> innerText. (e.g. The <section> that contains the header, “JavaScript & Java”, should have a corresponding id=“JavaScript_&_Java”).

This is the part of the error message you need to pay attention to.
Each ‘main-section’ should have an id attribute : expected false to equal true

Looking at your code, you wrote this

		<section class="main-section">

I don’t see any id’s there.

Instead you placed them in the header tag

			<header id="Alphonse">Alphonse Elric </header>

You need to move all of those id’s out of the header tags and into the section tags.

Hope that helps!

thank you for the help.
finally i completed the project.

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