|
708 | 708 | "id": "bad87fee1348bd9aedf08816",
|
709 | 709 | "title": "Link to External Pages with Anchor Elements",
|
710 | 710 | "description": [
|
711 |
| - "<code>a</code> elements, also known as <code>anchor</code> elements, are used to link to content outside of the current page.", |
712 |
| - "Here's a diagram of an <code>a</code> element. In this case, the <code>a</code> element is used in the middle of a paragraph element, which means the link will appear in the middle of a sentence.", |
| 711 | + "<code>a</code> elements, also known as <code>anchor</code> elements, are used to link to content inside, as well as outside of the current page. For this lesson, we are going to focus on using the <code>a</code> element for external links.", |
713 | 712 | "<a href=\"https://i.imgur.com/hviuZwe.png\" target=\"_blank\" data-lightbox=\"img-enlarge\"><img class=\"img-responsive\" title=\"Click to enlarge\" alt=\"a diagram of how anchor tags are composed with the same text as on the following line\" src=\"https://i.imgur.com/hviuZwe.png\">Click to enlarge </a>",
|
| 713 | + "The above diagram of an <code>a</code> element demonstrated that you can use an anchor element almost anywhere, even inside another element. In this case, the link will appear in the middle of the paragraph.", |
714 | 714 | "Here's an example:",
|
715 | 715 | "<blockquote><p><br> Here's a <br> <a href=\"http://freecodecamp.org\"> <br> link to freecodecamp.org<br> </a><br> for you to follow.<br></p></blockquote>",
|
716 | 716 | "Let's break down the example:",
|
|
856 | 856 | "id": "bad87fee1348bd9aede08817",
|
857 | 857 | "title": "Nest an Anchor Element within a Paragraph",
|
858 | 858 | "description": [
|
859 |
| - "Again, here's a diagram of an <code>a</code> element for your reference:", |
| 859 | + "Below is the diagram showing that you can nest an <code>a</code> element inside a <code>p</code> element:", |
860 | 860 | "<a href=\"https://i.imgur.com/hviuZwe.png\" target=\"_blank\" data-lightbox=\"img-enlarge\"><img class=\"img-responsive\" title=\"Click to enlarge\" alt=\"a diagram of how anchor tags are composed with the same text as on the following line\" src=\"https://i.imgur.com/hviuZwe.png\">Click to enlarge </a>",
|
861 | 861 | "Here's an example:",
|
862 | 862 | "<blockquote><p><br> Here's a <a href=\"http://freecodecamp.org\"> link to freecodecamp.org</a> for you to follow.<br></p></blockquote>",
|
|
867 | 867 | "The text, <strong>\"link to freecodecamp.org\"</strong>, within the anchor element called <code>anchor text</code>, will display a link to click:<br> <code><a href=\" ... \">link to freecodecamp.org</a></code>",
|
868 | 868 | "The final output of the example will look like this:<br><p>Here's a <a href=\"http://freecodecamp.org\"> link to freecodecamp.org</a> for you to follow.</p>",
|
869 | 869 | "<hr>",
|
870 |
| - "Now nest your existing <code>a</code> element within a new <code>p</code> element (just after the existing <code>main</code> element) so that the surrounding paragraph says \"View more cat photos\", but where only \"cat photos\" is a link, and the rest of the text is plain text." |
| 870 | + "Now nest your existing <code>a</code> element within a new <code>p</code> element (just after the existing <code>main</code> element). The new paragraph should have text that says \"View more cat photos\", where \"cat photos\" is a link, and the rest of the text is plain text." |
871 | 871 | ],
|
872 | 872 | "challengeSeed": [
|
873 | 873 | "<h2>CatPhotoApp</h2>",
|
|
1032 | 1032 | "title": "Make Dead Links Using the Hash Symbol",
|
1033 | 1033 | "description": [
|
1034 | 1034 | "Sometimes you want to add <code>a</code> elements to your website before you know where they will link.",
|
1035 |
| - "This is also handy when you're changing the behavior of a link using <code>jQuery</code>, which we'll learn about later.", |
| 1035 | + "This is also handy when you're changing the behavior of a link using <code>JavaScript</code>, which we'll learn about later.", |
1036 | 1036 | "<hr>",
|
1037 | 1037 | "The current value of the <code>href</code> attribute is a link that points to \"http://freecatphotoapp.com\". Replace the <code>href</code> attribute value with a <code>#</code>, also known as a hash symbol, to create a dead link.",
|
1038 | 1038 | "For example: <code>href=\"#\"</code>"
|
|
0 commit comments