How to add the s tag to the markup

Tell us what’s happening:
Describe your issue in detail here.
First, how do I wrap the s tag around the Google text in the h4 tag?

Secondly, how do I add the s tag to the markup?

  **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><s>Google<s/>Alphabet</h4>

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

Challenge: Use the s Tag to Strikethrough Text

Link to the challenge:

In your code you have closed the s tag in the wrong way.
You can close a tag in this format:

<s> Some text </s>

However you seem to have closed it like:

Thank you for your help. I have corrected it and it worked.

1 Like

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