fix(workshop): Updated typo of Hotel Feedback Form Workshop (#69144)

Signed-off-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
vinit
2026-08-03 16:15:50 +05:30
committed by GitHub
parent 401d9775fe
commit 4b0f65ad21
4 changed files with 9 additions and 9 deletions
@@ -13,7 +13,7 @@ Start by adding a new `label` element with the text `Email address (required):`
# --hints--
You should have a `label` element.
You should have a second `label` element inside your `fieldset`.
```js
assert.lengthOf(document.querySelectorAll('fieldset label'), 2);
@@ -15,7 +15,7 @@ The `for` attribute should be set to `"age"`.
# --hints--
You should have a `label` element.
You should have a third `label` element inside your `fieldset`.
```js
assert.lengthOf(document.querySelectorAll('fieldset label'), 3);
@@ -17,9 +17,9 @@ Here is an example of a number input field:
The `min` and `max` attributes are used to set the minimum and maximum values that can be entered in the input field.
Below your `label` element, add an input with the `type` attribute set to `"number"` and an `id` of `"age"`.
Below your `label` element, add an `input` with the `type` attribute set to `"number"` and an `id` of `"age"`.
The `name` attribute should be set to `"age"`, the `min` attribute should be set to `"3"` and the `max` attribute should be set to `"100"`.
The `name` attribute should be set to `"age"`, the `min` attribute should be set to `"3"`, and the `max` attribute should be set to `"100"`.
# --hints--
@@ -29,13 +29,13 @@ You should have a number `input` below your `label` element.
assert.isNotNull(document.querySelector('label + input[type="number"]'));
```
Your number `input` should have an `id` of `age`.
Your number `input` should have an `id` of `"age"`.
```js
assert.isNotNull(document.querySelector('label + input#age'));
```
Your number `input` should have a `name` attribute set to `age`.
Your number `input` should have a `name` attribute set to `"age"`.
```js
assert.isNotNull(document.querySelector('label + input[name="age"]'));
@@ -7,11 +7,11 @@ dashedName: step-12
# --description--
`input` elements can have a `size` attribute. This attribute defines the number of characters that should be visible as the user types into the input. The value of `size` should be a non-negative integer greater than zero. If `size` is not specified, or is specified with an invalid value, the input will have the default width set by the browser.
`input` elements can have a `size` attribute. This attribute defines the number of characters that should be visible as the user types into the `input`. The value of `size` should be a positive integer. If `size` is not specified, or is specified with an invalid value, the `input` will have the default width set by the browser.
```html
<label for="lastName">Last Name:</label>
<input id="lastName" name="lastName" type="text" size="10" />
<label for="last-name">Last Name:</label>
<input id="last-name" name="last-name" type="text" size="10" />
```
Give the name and email inputs a `size` attribute with a value of `"20"`.