Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
fix(challenges): change del tag to s tag
Browse files Browse the repository at this point in the history
Using s tag to strikethrough text instead of del tag in applied visual design challenge

ISSUES CLOSED: 17
  • Loading branch information
anku255 authored and scissorsneedfoodtoo committed Jul 4, 2018
1 parent 0cb0da8 commit 4dc7589
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions challenges/01-responsive-web-design/applied-visual-design.json
Original file line number Diff line number Diff line change
Expand Up @@ -462,24 +462,23 @@
},
{
"id": "587d781b367417b2b2512aba",
"title": "Use the del Tag to Strikethrough Text",
"title": "Use the s Tag to Strikethrough Text",
"description": [
"To strikethrough text, which is when a horizontal line cuts across the characters, you can use the <code>del</code> tag. It shows that a section of text is no longer valid. With the <code>del</code> tag, the browser applies the CSS of <code>text-decoration: line-through;</code> to the element.",
"To strikethrough text, which is when a horizontal line cuts across the characters, you can use the <code>s</code> tag. It shows that a section of text is no longer valid. With the <code>s</code> tag, the browser applies the CSS of <code>text-decoration: line-through;</code> to the element.",
"<hr>",
"Wrap the <code>del</code> tag around \"Google\" inside the <code>h4</code> tag and then add the word Alphabet beside it, which should not have the strikethrough formatting."
"Wrap the <code>s</code> tag around \"Google\" inside the <code>h4</code> tag and then add the word Alphabet beside it, which should not have the strikethrough formatting."
],
"tests": [
{
"text":
"Your code should add one <code>del</code> tag to the markup.",
"text": "Your code should add one <code>s</code> tag to the markup.",
"testString":
"assert($('del').length == 1, 'Your code should add one <code>del</code> tag to the markup.');"
"assert($('s').length == 1, 'Your code should add one <code>s</code> tag to the markup.');"
},
{
"text":
"A <code>del</code> tag should wrap around the Google text in the <code>h4</code> tag. It should not contain the word Alphabet.",
"A <code>s</code> tag should wrap around the Google text in the <code>h4</code> tag. It should not contain the word Alphabet.",
"testString":
"assert($('del').text().match(/Google/gi) && !$('del').text().match(/Alphabet/gi), 'A <code>del</code> tag should wrap around the Google text in the <code>h4</code> tag. It should not contain the word Alphabet.');"
"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":
Expand Down Expand Up @@ -605,7 +604,7 @@
"<div class=\"fullCard\">",
" <div class=\"cardContent\">",
" <div class=\"cardText\">",
" <h4><del>Google</del>Alphabet</h4>",
" <h4><s>Google</s>Alphabet</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>",
Expand Down

0 comments on commit 4dc7589

Please sign in to comment.