Use the s Tag to Strikethrough Text what goes wrong?

Tell us what’s happening:

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>
      <p><em> <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>.</em></p>
    </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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36.

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

You’re super close, but you’re striking out the wrong reference to Google. Check out the instructions again: “Wrap the s tag around “Google” inside the h4 tag and then add the word Alphabet beside it.”

I did both in the instructions

Here’s the specific section in your code:

<h4>Google</h4>
<p><em> <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>.</em></p>

The instructions say that the strike through and the addition of the word Alphabet need to be in the h4 tag. At the moment you have it in the paragraph tag below. So you have to remove that and instead do it on the h4.

Ty, sorry im very unattractive)

1 Like

No problem! Sometimes the solution is really obvious but you’ve been staring at the same code for so long your brain just doesn’t see it. Happens to me all the time. In those instances I’ll walk away for a little while and do something else. I’ll come back with a clearer perspective and take my time looking over my code, usually then I’ll spot the mistake.