mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-27 20:02:15 -05:00
fix(curriculum): fix tag and element usage in magazine project step 1 (#45856)
This commit is contained in:
@@ -9,7 +9,7 @@ dashedName: step-1
|
||||
|
||||
Begin with your standard HTML boilerplate. Add a `DOCTYPE` declaration, an `html` element, a `head` element, and a `body` element.
|
||||
|
||||
Add a `meta` tag with the appropriate `charset` and a `meta` tag for mobile responsiveness within the `head` element.
|
||||
Add a `<meta>` tag with the appropriate `charset` and a `<meta>` tag for mobile responsiveness within the `head` element.
|
||||
|
||||
# --hints--
|
||||
|
||||
@@ -55,25 +55,25 @@ Your `DOCTYPE` declaration should be at the beginning of your HTML.
|
||||
assert(__helpers.removeHtmlComments(code).match(/^\s*<!DOCTYPE\s+html\s*>/i));
|
||||
```
|
||||
|
||||
You should have an opening `head` tag.
|
||||
You should have an opening `<head>` tag.
|
||||
|
||||
```js
|
||||
assert(code.match(/<head\s*>/i));
|
||||
```
|
||||
|
||||
You should have a closing `head` tag.
|
||||
You should have a closing `</head>` tag.
|
||||
|
||||
```js
|
||||
assert(code.match(/<\/head\s*>/i));
|
||||
```
|
||||
|
||||
You should have an opening `body` tag.
|
||||
You should have an opening `<body>` tag.
|
||||
|
||||
```js
|
||||
assert(code.match(/<body\s*>/i));
|
||||
```
|
||||
|
||||
You should have a closing `body` tag.
|
||||
You should have a closing `</body>` tag.
|
||||
|
||||
```js
|
||||
assert(code.match(/<\/body\s*>/i));
|
||||
|
||||
Reference in New Issue
Block a user