Please take a careful look at this code and tell me why it is not working

type <p>Thank you to everyone for responding to Master Camper Cat's survey, Thursday, September<sup>th</sup<time datetime="2016-9-15"></time></p>

Hi @blessedonyi,

Could you be more precise about what is not working?

What I can see for now is that you have an issue with your sup tag, especially the closing tag:

<sup>th</sup

Also, if it is the time tag that gives you trouble, you have no label text between the opening and closing tag:

<time datetime="2016-9-15"></time>

The datetime attribute is used for machine but won’t print a visual result to your page.

This is the challenge:Camper Cat’s Mortal Kombat survey results are in! Wrap a time tag around the text Thursday, September 15<sup>th</sup> and add a datetime attribute to it set to 2016-09-15 .
I have changed the code so far which is:

<body>
  <header>
    <h1>Tournaments</h1>
  </header>
  <article>
    <h2>Mortal Kombat Tournament Survey Results</h2>

    <!-- Only change code below this line -->

    <p>Thank you to everyone for responding to Master Camper Cat's survey.<time datetime="2016-9-15">Thursday, September<sup>th</sup></time></p>

    <!-- Only change code above this line -->

Did you fix the issue? With the updates you made, it looks to be good

Hello , From what i can see you didn’t close the </sup > tag …

but its not working. pls take a look at it again, maybe am not seeing the problem.

Can you give the challenge link and the code you have at this moment?

Just to add, you didn’t close the article tag

Applied Accessibility: Standardize Times with the HTML5 datetime Attribute | freeCodeCamp.org . The code I have now is the last one I gave you:

<body>
  <header>
    <h1>Tournaments</h1>
  </header>
  <article>
    <h2>Mortal Kombat Tournament Survey Results</h2>

    <!-- Only change code below this line -->

    <p>Thank you to everyone for responding to Master Camper Cat's survey.<time datetime="2016-9-15">Thursday, September<sup>th</sup></time></p>

    <!-- Only change code above this line -->

    <section>
      <h3>Comments:</h3>
      <article>
        <p>Posted by: Sub-Zero on <time datetime="2016-08-13T20:01Z">August 13<sup>th</sup></time></p>
        <p>Johnny Cage better be there, I'll finish him!</p>
      </article>
      <article>
        <p>Posted by: Doge on <time datetime="2016-08-15T08:12Z">August 15<sup>th</sup></time></p>
        <p>Wow, much combat, so mortal.</p>
      </article>
      <article>
        <p>Posted by: The Grim Reaper on <time datetime="2016-08-16T00:00Z">August 16<sup>th</sup></time></p>
        <p>Looks like I'll be busy that day.</p>
      </article>
    </section>
  </article>
  <footer>&copy; 2018 Camper Cat</footer>
</body>

Might it be the datetime attribute that is not formatted correctly?
You’re missing a zero in “2016-09-15”.

You’re also missing the actual date here: Thursday, September 15

I have corrected the two things you pointed out. I have gotten it. Thank you.

Thank you for your sharing. You have now two issues. First:

<time datetime="2016-9-15">

Compare the value of your attribute datetime and the one they ask you in the challenge (you should respect exactly the value they ask to validate the challenge, such as the other challenges):

add a datetime attribute to it set to 2016-09-15

Second issue:

<time datetime="2016-9-15">Thursday, September<sup>th</sup></time>

The label text is not complete:

Wrap a time tag around the text Thursday, September 15<sup>th</sup>

Do you see what is missing?

Yes coach. Thank you sir

1 Like

Haha you’re welcome @blessedonyi !

Ok , Can see the error … You need to reset your code first .

When you do , You need to read carefully as to where you asked to put the time tag and also where to close it …

it should start right after is

you should something like this …

The best day to host the vaunted Mortal Kombat tournament is<time datetime="2016-09-15"> Thursday, September 15<sup>th</sup></time>.

Thats the only part you were instructed to change .

Regards.

Nice … Had to go back to solve the issue to be double sure

Nice to see it has solved .

Great, glad it worked! :slightly_smiling_face:

1 Like

When you are closing the tag, you forgot to put “>” at the end
like: “</sup” instead of “
”
so, add it then try to run it, will work…

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