Changed the text enclosed by strong tag
This commit is contained in:
@ -331,7 +331,7 @@
|
||||
"description": [
|
||||
"To make text bold, you can use the <code>strong</code> tag. This is often used to draw attention to text and symbolize that it is important. With the <code>strong</code> tag, the browser applies the CSS of <code>font-weight: bold;</code> to the element.",
|
||||
"<hr>",
|
||||
"Wrap a <code>strong</code> tag around the entire <code>h4</code> element and its contents."
|
||||
"Wrap a <code>strong</code> tag around \"Stanford University\" inside the <code>p</code> tag."
|
||||
],
|
||||
"challengeSeed": [
|
||||
"<style>",
|
||||
@ -375,7 +375,8 @@
|
||||
],
|
||||
"tests": [
|
||||
"assert($('strong').length == 1, 'message: Your code should add one <code>strong</code> tag to the markup.');",
|
||||
"assert($('strong').children('h4').length == 1, 'message: The <code>strong</code> tag should wrap around the <code>h4</code> tag and its contents.');"
|
||||
"assert($('p').children('strong').length == 1, 'message: The <code>strong</code> tag should be inside the <code>p</code> tag.');",
|
||||
"assert($('strong').text().match(/Stanford University/gi), 'message: The <code>strong</code> tag should wrap around the words \"Stanford University\".');"
|
||||
],
|
||||
"solutions": [],
|
||||
"hints": [],
|
||||
@ -439,8 +440,8 @@
|
||||
"<div class=\"fullCard\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4>Google</h4></strong>",
|
||||
" <p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p>",
|
||||
" <h4>Google</h4>",
|
||||
" <p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <a href=\"https://en.wikipedia.org/wiki/Larry_Page\" class=\"links\">Larry Page</a><br><br>",
|
||||
@ -515,8 +516,8 @@
|
||||
"<div class=\"fullCard\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4>Google</h4></strong>",
|
||||
" <p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p>",
|
||||
" <h4>Google</h4>",
|
||||
" <p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <u>",
|
||||
@ -592,8 +593,8 @@
|
||||
"<div class=\"fullCard\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4>Google</h4></strong>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p></em>",
|
||||
" <h4>Google</h4>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p></em>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <u>",
|
||||
@ -671,9 +672,9 @@
|
||||
"<div class=\"fullCard\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4><del>Google</del>Alphabet</h4></strong>",
|
||||
" <h4><del>Google</del>Alphabet</h4>",
|
||||
" ",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p></em>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p></em>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <u>",
|
||||
@ -686,7 +687,7 @@
|
||||
],
|
||||
"tests": [
|
||||
"assert($('hr').length == 1, 'message: Your code should add an <code>hr</code> tag to the markup.');",
|
||||
"assert(code.match(/<\\/strong>\\s*?<hr(>|\\s*?\\/>)\\s*?<em>/gi), 'message: The <code>hr</code> tag should come between the title and the paragraph.');"
|
||||
"assert(code.match(/<\\/h4>\\s*?<hr(>|\\s*?\\/>)\\s*?<em>/gi), 'message: The <code>hr</code> tag should come between the title and the paragraph.');"
|
||||
],
|
||||
"solutions": [],
|
||||
"hints": [],
|
||||
@ -755,9 +756,9 @@
|
||||
"<div class=\"fullCard\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4>Alphabet</h4></strong>",
|
||||
" <h4>Alphabet</h4>",
|
||||
" <hr>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p></em>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p></em>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <u>",
|
||||
@ -836,9 +837,9 @@
|
||||
"<div class=\"fullCard\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4>Alphabet</h4></strong>",
|
||||
" <h4>Alphabet</h4>",
|
||||
" <hr>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p></em>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p></em>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <u>",
|
||||
@ -921,9 +922,9 @@
|
||||
"<div class=\"fullCard\" id=\"thumbnail\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4>Alphabet</h4></strong>",
|
||||
" <h4>Alphabet</h4>",
|
||||
" <hr>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p></em>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p></em>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <u>",
|
||||
@ -1009,9 +1010,9 @@
|
||||
"<div class=\"fullCard\" id=\"thumbnail\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4>Alphabet</h4></strong>",
|
||||
" <h4>Alphabet</h4>",
|
||||
" <hr>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p></em>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p></em>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <u>",
|
||||
@ -1094,9 +1095,9 @@
|
||||
"<div class=\"fullCard\" id=\"thumbnail\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4>Alphabet</h4></strong>",
|
||||
" <h4>Alphabet</h4>",
|
||||
" <hr>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p></em>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p></em>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <u>",
|
||||
@ -1193,9 +1194,9 @@
|
||||
"<div class=\"fullCard\" id=\"thumbnail\">",
|
||||
" <div class=\"cardContent\">",
|
||||
" <div class=\"cardText\">",
|
||||
" <strong><h4>Alphabet</h4></strong>",
|
||||
" <h4>Alphabet</h4>",
|
||||
" <hr>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at Stanford University.</p></em>",
|
||||
" <em><p>Google was founded by Larry Page and Sergey Brin while they were Ph.D. students at <strong>Stanford University</strong>.</p></em>",
|
||||
" </div>",
|
||||
" <div class=\"cardLinks\">",
|
||||
" <u>",
|
||||
|
Reference in New Issue
Block a user