Use the del Tag to Strikethrough Text how can I fix it?

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><del>Google</del></h4>
      <em><p>Google 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

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

You could start with reading the instructions :slight_smile:

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

2 Likes

Yes try to carefully look over your code a couple times before coming to the forums (not saying you didn’t, sometimes you just can’t see what’s wrong.) If you really can’t figure it out still (sometimes when you write or program something your brain sees something several times and says “Okay, this part of the code works,” even when it doesn’t.) you didn’t add the word Alphabet next to the <del> tags.

Everything is fine you just have to add Alphabet between your closing del and closing h4 tag :grinning:

What do you mean alphabet between?

<h4><del>Google</del>Alphabet</h4>

GoogleAlphabet

1 Like