fix(curriculum): correct usage of element and tag (#45768)

pull/45777/head
Ilenia 2022-04-25 16:09:27 +02:00 committed by GitHub
parent 84b4b2e7c2
commit 18c6a2b16e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ dashedName: step-2
# --description--
Add a `head` element within the `html` element, so you can add a `title` element. The title element's text should be `Cafe Menu`.
Add a `head` element within the `html` element, so you can add a `title` element. The `title` element's text should be `Cafe Menu`.
# --hints--
@ -35,13 +35,13 @@ You should have a closing `</title>` tag.
assert(code.match(/<\/title>/i));
```
Your `<title>` element should be nested in your `<head>` element.
Your `title` element should be nested in your `head` element.
```js
assert(code.match(/<head>\s*<title>.*<\/title>\s*<\/head>/si));
```
Your `<title>` element should have the text `Cafe Menu`. You may need to check your spelling.
Your `title` element should have the text `Cafe Menu`. You may need to check your spelling.
```js
assert.match(document.querySelector('title')?.innerText, /Cafe Menu/i);