fix: language update suggestions for basic-css and basic-html (#16767)

* fix: language update suggestions for basic-css and basic-html

* Fix plural
This commit is contained in:
Schalk Neethling
2018-03-08 18:13:20 +02:00
committed by Quincy Larson
parent 6750f6f1b6
commit 9ef7d8e405
2 changed files with 24 additions and 25 deletions

View File

@ -1049,7 +1049,7 @@
"For example, if we wanted to create a red, 5 pixel border around an HTML element, we could use this class:", "For example, if we wanted to create a red, 5 pixel border around an HTML element, we could use this class:",
"<blockquote>&#60;style&#62;<br>&nbsp;&nbsp;.thin-red-border {<br>&nbsp;&nbsp;&nbsp;&nbsp;border-color: red;<br>&nbsp;&nbsp;&nbsp;&nbsp;border-width: 5px;<br>&nbsp;&nbsp;&nbsp;&nbsp;border-style: solid;<br>&nbsp;&nbsp;}<br>&#60;/style&#62;</blockquote>", "<blockquote>&#60;style&#62;<br>&nbsp;&nbsp;.thin-red-border {<br>&nbsp;&nbsp;&nbsp;&nbsp;border-color: red;<br>&nbsp;&nbsp;&nbsp;&nbsp;border-width: 5px;<br>&nbsp;&nbsp;&nbsp;&nbsp;border-style: solid;<br>&nbsp;&nbsp;}<br>&#60;/style&#62;</blockquote>",
"<hr>", "<hr>",
"Create a class called <code>thick-green-border</code>. This class should add a 10px, solid, green border around a HTML element. Apply the class to your cat photo.", "Create a class called <code>thick-green-border</code>. This class should add a 10px, solid, green border around an HTML element. Apply the class to your cat photo.",
"Remember that you can apply multiple classes to an element using its <code>class</code> attribute, by separating each class name with a space. For example:", "Remember that you can apply multiple classes to an element using its <code>class</code> attribute, by separating each class name with a space. For example:",
"<code>&lt;img class=\"class1 class2\"&gt;</code>" "<code>&lt;img class=\"class1 class2\"&gt;</code>"
], ],
@ -1178,7 +1178,7 @@
"description": [ "description": [
"Your cat photo currently has sharp corners. We can round out those corners with a CSS property called <code>border-radius</code>.", "Your cat photo currently has sharp corners. We can round out those corners with a CSS property called <code>border-radius</code>.",
"<hr>", "<hr>",
"One of the units you can use to specify the radius of a border is with pixels. Give your cat photo a <code>border-radius</code> of <code>10px</code>.", "You can specify a <code>border-radius</code> with pixels. Give your cat photo a <code>border-radius</code> of <code>10px</code>.",
"Note: this challenge allows for multiple possible solutions. For example, you may add <code>border-radius</code> to either the <code>.thick-green-border</code> class or the <code>.smaller-image</code> class." "Note: this challenge allows for multiple possible solutions. For example, you may add <code>border-radius</code> to either the <code>.thick-green-border</code> class or the <code>.smaller-image</code> class."
], ],
"challengeSeed": [ "challengeSeed": [
@ -1292,9 +1292,7 @@
"description": [ "description": [
"In addition to pixels, you can also specify the <code>border-radius</code> using a percentage.", "In addition to pixels, you can also specify the <code>border-radius</code> using a percentage.",
"<hr>", "<hr>",
"Give your cat photo a <code>border-radius</code> of <code>50%</code>.", "Give your cat photo a <code>border-radius</code> of <code>50%</code>."
"<hr>",
"As you can tell from the end result, this is an easy way to create circular images."
], ],
"challengeSeed": [ "challengeSeed": [
"<link href=\"https://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\" type=\"text/css\">", "<link href=\"https://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\" type=\"text/css\">",

View File

@ -708,7 +708,7 @@
"id": "bad87fee1348bd9aedf08816", "id": "bad87fee1348bd9aedf08816",
"title": "Link to External Pages with Anchor Elements", "title": "Link to External Pages with Anchor Elements",
"description": [ "description": [
"<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.", "<code>a</code> elements, also known as <code>anchor</code> elements, are used to link to content outside of the current page.",
"<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>", "<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>",
"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.", "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.",
"Here's an example:", "Here's an example:",
@ -1174,11 +1174,11 @@
"id": "bad87fee1348bd9aedf08827", "id": "bad87fee1348bd9aedf08827",
"title": "Create a Bulleted Unordered List", "title": "Create a Bulleted Unordered List",
"description": [ "description": [
"HTML has a special element for creating <code>unordered lists</code>, or bullet point-style lists.", "HTML has a special element for creating <code>unordered lists</code>, or bullet point style lists.",
"Unordered lists start with a <code>&#60;ul&#62;</code> element. Then they contain some number of <code>&#60;li&#62;</code> elements.", "Unordered lists start with an opening <code>&#60;ul&#62;</code> element, followed by any number of <code>&#60;li&#62;</code> elements. Finally, unordered lists close with a <code>&#60;/ul&#62;</code>",
"For example: ", "For example: ",
"<blockquote>&#60;ul&#62;<br>&nbsp;&nbsp;&#60;li&#62;milk&#60;/li&#62;<br>&nbsp;&nbsp;&#60;li&#62;cheese&#60;/li&#62;<br>&#60;/ul&#62;</blockquote>", "<blockquote>&#60;ul&#62;<br>&nbsp;&nbsp;&#60;li&#62;milk&#60;/li&#62;<br>&nbsp;&nbsp;&#60;li&#62;cheese&#60;/li&#62;<br>&#60;/ul&#62;</blockquote>",
"would create a bullet point-style list of \"milk\" and \"cheese\".", "would create a bullet point style list of \"milk\" and \"cheese\".",
"<hr>", "<hr>",
"Remove the last two <code>p</code> elements and create an unordered list of three things that cats love at the bottom of the page." "Remove the last two <code>p</code> elements and create an unordered list of three things that cats love at the bottom of the page."
], ],
@ -1256,8 +1256,8 @@
"id": "bad87fee1348bd9aedf08828", "id": "bad87fee1348bd9aedf08828",
"title": "Create an Ordered List", "title": "Create an Ordered List",
"description": [ "description": [
"HTML has a special element for creating <code>ordered lists</code>, or numbered-style lists.", "HTML has another special element for creating <code>ordered lists</code>, or numbered lists.",
"Ordered lists start with a <code>&#60;ol&#62;</code> element. Then they contain some number of <code>&#60;li&#62;</code> elements.", "Ordered lists start with an opening <code>&#60;ol&#62;</code> element, followed by any number of <code>&#60;li&#62;</code> elements. Finally, ordered lists close with a <code>&#60;/ol&#62;</code>",
"For example:", "For example:",
"<blockquote>&#60;ol&#62;<br>&nbsp;&nbsp;&#60;li&#62;Garfield&#60;/li&#62;<br>&nbsp;&nbsp;&#60;li&#62;Sylvester&#60;/li&#62;<br>&#60;/ol&#62;</blockquote>", "<blockquote>&#60;ol&#62;<br>&nbsp;&nbsp;&#60;li&#62;Garfield&#60;/li&#62;<br>&nbsp;&nbsp;&#60;li&#62;Sylvester&#60;/li&#62;<br>&#60;/ol&#62;</blockquote>",
"would create a numbered list of \"Garfield\" and \"Sylvester\".", "would create a numbered list of \"Garfield\" and \"Sylvester\".",
@ -1350,9 +1350,9 @@
"title": "Create a Text Field", "title": "Create a Text Field",
"description": [ "description": [
"Now let's create a web form.", "Now let's create a web form.",
"Text inputs are a convenient way to get input from your user.", "Input elements are a convenient way to get input from your user.",
"You can create one like this:", "You can create a text input like this:",
"<code>&#60;input type=\"text\"&#62;</code>", "<code>&#60;input type=\"text\" /&#62;</code>",
"Note that <code>input</code> elements are self-closing.", "Note that <code>input</code> elements are self-closing.",
"<hr>", "<hr>",
"Create an <code>input</code> element of type <code>text</code> below your lists." "Create an <code>input</code> element of type <code>text</code> below your lists."
@ -1440,7 +1440,7 @@
"id": "bad87fee1348bd9aedf08830", "id": "bad87fee1348bd9aedf08830",
"title": "Add Placeholder Text to a Text Field", "title": "Add Placeholder Text to a Text Field",
"description": [ "description": [
"Your placeholder text is what appears in your text <code>input</code> before your user has input anything.", "Placeholder text is what is displayed in your <code>input</code> element before your user has inputted anything.",
"You can create placeholder text like so:", "You can create placeholder text like so:",
"<code>&#60;input type=\"text\" placeholder=\"this is placeholder text\"&#62;</code>", "<code>&#60;input type=\"text\" placeholder=\"this is placeholder text\"&#62;</code>",
"<hr>", "<hr>",
@ -1527,7 +1527,7 @@
"For example:", "For example:",
"<code>&#60;form action=\"/url-where-you-want-to-submit-form-data\"&#62;&#60;/form&#62;</code>", "<code>&#60;form action=\"/url-where-you-want-to-submit-form-data\"&#62;&#60;/form&#62;</code>",
"<hr>", "<hr>",
"Nest your text field in a <code>form</code> element. Add the <code>action=\"/submit-cat-photo\"</code> attribute to this form element." "Nest your text field inside a <code>form</code> element, and add the <code>action=\"/submit-cat-photo\"</code> attribute to the form element."
], ],
"challengeSeed": [ "challengeSeed": [
"<h2>CatPhotoApp</h2>", "<h2>CatPhotoApp</h2>",
@ -1609,7 +1609,7 @@
"Here's an example submit button:", "Here's an example submit button:",
"<code>&#60;button type=\"submit\"&#62;this button submits the form&#60;/button&#62;</code>", "<code>&#60;button type=\"submit\"&#62;this button submits the form&#60;/button&#62;</code>",
"<hr>", "<hr>",
"Add a submit button to your <code>form</code> element with type <code>submit</code> and \"Submit\" as its text." "Add a button as the last element of your <code>form</code> element with a type of <code>submit</code>, and \"Submit\" as its text."
], ],
"challengeSeed": [ "challengeSeed": [
"<h2>CatPhotoApp</h2>", "<h2>CatPhotoApp</h2>",
@ -1692,7 +1692,7 @@
"title": "Use HTML5 to Require a Field", "title": "Use HTML5 to Require a Field",
"description": [ "description": [
"You can require specific form fields so that your user will not be able to submit your form until he or she has filled them out.", "You can require specific form fields so that your user will not be able to submit your form until he or she has filled them out.",
"For example, if you wanted to make a text input field required, you can just add the word <code>required</code> within your <code>input</code> element, like this: <code>&#60;input type=\"text\" required&#62;</code>", "For example, if you wanted to make a text input field required, you can just add the attribute <code>required</code> within your <code>input</code> element, like this: <code>&#60;input type=\"text\" required&#62;</code>",
"<hr>", "<hr>",
"Make your text <code>input</code> a <code>required</code> field, so that your user can't submit the form without completing this field.", "Make your text <code>input</code> a <code>required</code> field, so that your user can't submit the form without completing this field.",
"Then try to submit the form without inputting any text. See how your HTML5 form notifies you that the field is required?" "Then try to submit the form without inputting any text. See how your HTML5 form notifies you that the field is required?"
@ -1778,13 +1778,14 @@
"id": "bad87fee1348bd9aedf08834", "id": "bad87fee1348bd9aedf08834",
"title": "Create a Set of Radio Buttons", "title": "Create a Set of Radio Buttons",
"description": [ "description": [
"You can use <code>radio buttons</code> for questions where you want the user to only give you one answer out of multiple options.", "You can use <code>radio buttons</code> for questions where you want the restrcit the user to only one answer out of multiple options.",
"Radio buttons are a type of <code>input</code>", "Radio buttons are a type of <code>input</code> field",
"Each of your radio buttons should be nested within its own <code>label</code> element.", "Each of your radio buttons should be nested within its own <code>label</code> element.",
"All related radio buttons should have the same <code>name</code> attribute.", "All related radio buttons should have the same <code>name</code> attribute.",
"Here's an example of a radio button:", "Here's an example of a radio button:",
"<blockquote>&#60;label for=\"indoor\"&#62; <br> &#60;input type=\"radio\" name=\"indoor-outdoor\"&#62;Indoor <br>&#60;/label&#62;</blockquote>", "<blockquote>&#60;label&#62; <br> &#60;input type=\"radio\" name=\"indoor-outdoor\"&#62;Indoor <br>&#60;/label&#62;</blockquote>",
"It is considered best practice to set the <code>for</code> attribute for assistive technologies to be able to link the relationship between the label and the child elements such as an <code>input</code> in this case.", "It is considered best practice to set a <code>for</code> attribute on the <code>label</code> element, with a value that matches the value of the <code>id</code> attribute of the <code>input</code> element. This allows assistive technologies to create a linked relationship between the label and the child <code>input</code> element. For example:",
"<blockquote>&#60;label for=\"indoor\"&#62; <br> &#60;input id=\"indoor\" type=\"radio\" name=\"indoor-outdoor\"&#62;Indoor <br>&#60;/label&#62;</blockquote>",
"<hr>", "<hr>",
"Add a pair of radio buttons to your form. One should have the option of <code>indoor</code> and the other should have the option of <code>outdoor</code>. Both should share the <code>name</code> attribute of <code>indoor-outdoor</code>." "Add a pair of radio buttons to your form. One should have the option of <code>indoor</code> and the other should have the option of <code>outdoor</code>. Both should share the <code>name</code> attribute of <code>indoor-outdoor</code>."
], ],
@ -1888,7 +1889,7 @@
"Each of your checkboxes should be nested within its own <code>label</code> element.", "Each of your checkboxes should be nested within its own <code>label</code> element.",
"All related checkbox inputs should have the same <code>name</code> attribute.", "All related checkbox inputs should have the same <code>name</code> attribute.",
"Here's an example of a checkbox:", "Here's an example of a checkbox:",
"<code>&#60;label&#62;&#60;input type=\"checkbox\" name=\"personality\"&#62; Loving&#60;/label&#62;</code>", "<code>&#60;label for=\"loving\"&#62;&#60;input id=\"loving\" type=\"checkbox\" name=\"personality\"&#62; Loving&#60;/label&#62;</code>",
"<hr>", "<hr>",
"Add to your form a set of three checkboxes. Each checkbox should be nested within its own <code>label</code> element. All three should share the <code>name</code> attribute of <code>personality</code>." "Add to your form a set of three checkboxes. Each checkbox should be nested within its own <code>label</code> element. All three should share the <code>name</code> attribute of <code>personality</code>."
], ],
@ -1912,8 +1913,8 @@
" <li>other cats</li>", " <li>other cats</li>",
" </ol>", " </ol>",
" <form action=\"/submit-cat-photo\">", " <form action=\"/submit-cat-photo\">",
" <label><input type=\"radio\" name=\"indoor-outdoor\"> Indoor</label>", " <label for=\"indoor\"><input id=\"indoor\" type=\"radio\" name=\"indoor-outdoor\"> Indoor</label>",
" <label><input type=\"radio\" name=\"indoor-outdoor\"> Outdoor</label><br>", " <label for=\"outdoor\"><input id=\"outdoor\" type=\"radio\" name=\"indoor-outdoor\"> Outdoor</label><br>",
" <input type=\"text\" placeholder=\"cat photo URL\" required>", " <input type=\"text\" placeholder=\"cat photo URL\" required>",
" <button type=\"submit\">Submit</button>", " <button type=\"submit\">Submit</button>",
" </form>", " </form>",