a
element. In this case, the a
element is used in the middle of a paragraph element, which means the link will appear in the middle of a sentence.",
"<p>Here's a <a href=\"http://freecodecamp.com\"> link to Free Code Camp</a> for you to follow.</p>
.",
- "Create an a
element that links to http://catphotoapp.com
and has \"cat photos\" as its anchor text
."
+ "Create an a
element that links to http://freecatphotoapp.com
and has \"cat photos\" as its anchor text
."
],
"tests": [
"assert((/cat photos/gi).test($(\"a\").text()), 'Your a
element should have the anchor text
of \"cat photos\"')",
- "assert(/http:\\/\\/catphotoapp\\.com/gi.test($(\"a\").attr(\"href\")), 'You need an a
element that links to http://catphotoapp.com
.')",
+ "assert(/http:\\/\\/catphotoapp\\.com/gi.test($(\"a\").attr(\"href\")), 'You need an a
element that links to http://freecatphotoapp.com
.')",
"assert(editor.match(/<\\/a>/g) && editor.match(/<\\/a>/g).length === editor.match(/a element has a closing tag.')"
],
"challengeSeed": [
@@ -1118,7 +1118,7 @@
"descriptionPt": [],
"nameDe": "Waypoint: Verlinke externe Seiten mit Anker Elementen",
"descriptionDe": [
- "Erstelle ein a
Element oder \"Anker Element\", das auf http://catphotoapp.com verlinkt und den Link-Text \"cat photos\" oder \"anchor text\" beinhaltet.",
+ "Erstelle ein a
Element oder \"Anker Element\", das auf http://freecatphotoapp.com verlinkt und den Link-Text \"cat photos\" oder \"anchor text\" beinhaltet.",
"So sieht ein a
Element aus. In diesem Fall wird es innerhalb eines Paragraphen Elements verwendet. Das bedeutet dein Link wird innerhalb des Satzes erscheinen.",
"<p>Hier ist ein <a href=\"http://freecodecamp.com\"> Link zum Free Code Camp</a> für dich zum Folgen.</p>
."
@@ -1136,10 +1136,10 @@
"Now nest your a
element within a new p
element so that the surrounding paragraph says \"click here for cat photos\", but where only \"cat photos\" is a link, and the rest of the text is rest is plain text."
],
"tests": [
- "assert($(\"a\").attr(\"href\").match(/catphotoapp.com/gi).length > 0, 'You need an a
element that links to \"catphotoapp.com\".')",
+ "assert($(\"a\").attr(\"href\").match(/freecatphotoapp.com/gi).length > 0, 'You need an a
element that links to \"freecatphotoapp.com\".')",
"assert($(\"a\").text().match(/cat\\sphotos/gi).length > 0, 'Your a
element should have the anchor text of \"cat photos\"')",
"assert($(\"p\") && $(\"p\").length > 2, 'Create a new p
element around your a
element.')",
- "assert($(\"a[href=\\\"http://www.catphotoapp.com\\\"]\").parent().is(\"p\"), 'Your a
element should be nested within your new p
element.')",
+ "assert($(\"a[href=\\\"http://www.freecatphotoapp.com\\\"]\").parent().is(\"p\"), 'Your a
element should be nested within your new p
element.')",
"assert($(\"p\").text().match(/click\\shere\\sfor/gi), 'Your p
element should have the text \"click here for\".')",
"assert(editor.match(/<\\/p>/g) && editor.match(//g).length === editor.match(/
p elements has a closing tag.')",
"assert(editor.match(/<\\/a>/g) && editor.match(//g).length === editor.match(/a elements has a closing tag.')"
@@ -1174,7 +1174,7 @@
"",
"CatPhotoApp
",
"",
- "cat photos",
+ "cat photos",
"",
"",
"",
@@ -1242,7 +1242,7 @@
"",
"
Click here for cat photos.
", + "Click here for cat photos.
", "", "