---
id: 587d781b367417b2b2512aba
title: Use the s Tag to Strikethrough Text
challengeType: 0
videoUrl: ''
localeTitle: استخدم علامة s إلى نص يتوسطه خط
---

## Description
<section id="description"> لإنشاء خط يتوسطه النص ، وهو عندما يقطع خط أفقي عبر الأحرف ، يمكنك استخدام العلامة <code>s</code> . يُظهر أن جزءًا من النص لم يعد صالحًا. باستخدام علامة <code>s</code> ، يقوم المستعرض بتطبيق CSS من <code>text-decoration: line-through;</code> إلى العنصر. </section>

## Instructions
<section id="instructions"> التفاف <code>s</code> الكود حول &quot;جوجل&quot; داخل <code>h4</code> العلامة ثم قم بإضافة كلمة الأبجدية بجانبه، والذي لا ينبغي أن يكون تنسيق يتوسطه خط. </section>

## Tests
<section id='tests'>

```yml
tests:
  - text: يجب أن تضيف الشفرة علامة <code>s</code> واحدة إلى الترميز.
    testString: 'assert($("s").length == 1, "Your code should add one <code>s</code> tag to the markup.");'
  - text: يجب أن تلتف العلامة <code>s</code> حول نص Google في علامة <code>h4</code> . يجب ألا يحتوي على الكلمة الأبجدية.
    testString: 'assert($("s").text().match(/Google/gi) && !$("s").text().match(/Alphabet/gi), "A <code>s</code> tag should wrap around the Google text in the <code>h4</code> tag. It should not contain the word Alphabet.");'
  - text: قم بتضمين الكلمة الأبجدية في علامة <code>h4</code> ، بدون تنسيق يتوسطه خط.
    testString: 'assert($("h4").html().match(/Alphabet/gi), "Include the word Alphabet in the <code>h4</code> tag, without strikethrough formatting.");'

```

</section>

## Challenge Seed
<section id='challengeSeed'>

<div id='html-seed'>

```html
<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>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>

```

</div>



</section>

## Solution
<section id='solution'>

```js
// solution required
```
</section>
