Merge pull request #13287 from cdrainxv/fix/edit-label-text

Edited label text in description and challenge code
pull/13294/head
Dylan 2017-02-11 21:50:03 -06:00 committed by GitHub
commit 34280a7cb4
1 changed files with 2 additions and 2 deletions

View File

@ -614,7 +614,7 @@
"You may have noticed the <code>text</code> and <code>submit</code> input types in prior challenges, and HTML5 introduced an option to specify a <code>date</code> field. Depending on browser support, a date picker shows up in the <code>input</code> field when it's in focus, which makes filling in a form easier for all users.",
"For older browsers, the type will default to <code>text</code>, so it helps to show users the expected date format in the label or as placeholder text just in case.",
"Here's an example:",
"<blockquote>&lt;label for=&quot;input1&quot;&gt;Enter a date (MM-DD-YYYY):&lt;/label&gt;<br>&lt;input type=&quot;date&quot; id=&quot;input1&quot; name=&quot;input1&quot;&gt;<br></blockquote>",
"<blockquote>&lt;label for=&quot;input1&quot;&gt;Enter a date:&lt;/label&gt;<br>&lt;input type=&quot;date&quot; id=&quot;input1&quot; name=&quot;input1&quot;&gt;<br></blockquote>",
"<hr>",
"Camper Cat is setting up a mortal combat tournament and wants to ask his competitors to see what date works best. Add an <code>input</code> tag with a <code>type</code> attribute of \"date\", an <code>id</code> attribute of \"pickdate\", and a <code>name</code> attribute of \"date\"."
],
@ -628,7 +628,7 @@
" <h2>Mortal Combat Tournament Survey</h2>",
" <form>",
" <p>Tell us the best date for the competition</p>",
" <label for=\"pickdate\">Preferred Date (MM-DD-YYYY):</label>",
" <label for=\"pickdate\">Preferred Date:</label>",
" ",
" <!-- Add your code below this line -->",
" ",