47 lines
803 B
Markdown
47 lines
803 B
Markdown
![]() |
---
|
||
|
id: 60eebd07ea685b0e777b5583
|
||
|
title: Part 1
|
||
|
challengeType: 0
|
||
|
dashedName: part-1
|
||
|
---
|
||
|
|
||
|
# --description--
|
||
|
|
||
|
Welcome to the Registration Form project! Start by adding the `!DOCTYPE html` declaration at the top of the document so the browser knows what type of document it's reading.
|
||
|
|
||
|
# --hints--
|
||
|
|
||
|
Your code should contain the `DOCTYPE` reference.
|
||
|
|
||
|
```js
|
||
|
assert(code.match(/<!DOCTYPE/gi));
|
||
|
```
|
||
|
|
||
|
You should include a space after the `DOCTYPE` reference.
|
||
|
|
||
|
```js
|
||
|
assert(code.match(/<!DOCTYPE\s+/gi));
|
||
|
```
|
||
|
|
||
|
You should define the document type to be `html`.
|
||
|
|
||
|
```js
|
||
|
assert(code.match(/html/gi));
|
||
|
```
|
||
|
|
||
|
You should close the `DOCTYPE` declaration with a `>` after the type.
|
||
|
|
||
|
```js
|
||
|
assert(code.match(/html\s*>/gi));
|
||
|
```
|
||
|
|
||
|
# --seed--
|
||
|
|
||
|
## --seed-contents--
|
||
|
|
||
|
```html
|
||
|
--fcc-editable-region--
|
||
|
|
||
|
--fcc-editable-region--
|
||
|
```
|