Use the s Tag to Strikethrough Text, can´t pass the test, why?

Tell us what’s happening:

Whats wrong with it?
Can´t pass the test but I included the word Alphabet.
Debug output:
// running tests

Include the word Alphabet in the h4 tag, without strikethrough formatting.

// tests completed

Your code so far


<style>
  h4 {
    text-align: center;
    height: 25px;
  }
  p {
    text-align: justify;
  }
  .links {
    text-align: left;
    color: black;
  }
  .fullCard {
    width: 245px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px 5px;
    padding: 4px;
  }
  .cardContent {
    padding: 10px;
  }
  .cardText {
    margin-bottom: 30px;
  }
</style>
<div class="fullCard">
  <div class="cardContent">
    <div class="cardText">
      <h4>Google</h4>
      <em><p><s>Google</s> Alphabet was founded by Larry Page and Sergey Brin while they were <u>Ph.D. students</u> at <strong>Stanford University</strong>.</p></em>
    </div>
    <div class="cardLinks">
      <a href="https://en.wikipedia.org/wiki/Larry_Page" target="_blank" class="links">Larry Page</a><br><br>
      <a href="https://en.wikipedia.org/wiki/Sergey_Brin" target="_blank" class="links">Sergey Brin</a>
    </div>
  </div>
</div>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0.

Link to the challenge:
https ://learn.freecodecamp.org/responsive-web-design/applied-visual-design/use-the-s-tag-to-strikethrough-text

Hi, read the instruction again:

Wrap the s tag around “Google” inside the h4 tag and then add the word Alphabet beside it, which should not have the strikethrough formatting.

1 Like

Thanks, you saved my day :wink:

1 Like

but how …

@usama829 like this <s>some content</s>. If this does not help - post your code. I will take a look.

The OP put the <s> tags inside the <EM> tags instead of inside the<h4> tags which was causing the tests to fail. By moving the <s> tag inside the <h4> tags (as specified in the assignment) you can complete the test.