curriculum/challenges/english/blocks/learn-html-forms-by-building-a-registration-form/60f0286404aefb0562a4fdf9.md
Add a title and meta element inside the head element. Give your project a title of Registration Form, and add the charset attribute with a value of utf-8 to your meta element.
Your code should have a title element.
const title = document.querySelector('title');
assert.exists(title);
Your title element should be within the head element.
assert.exists(document.querySelector('head > title'));
Your project should have a title of Registration Form. Remember, the casing and spelling matters for the title.
const title = document.querySelector('title');
assert.equal(title.text, 'Registration Form');
You should create a meta element within the head element.
assert.exists(document.querySelector('head > meta'));
You should give the meta element a charset attribute with the value of utf-8.
assert.equal(document.querySelector('head > meta')?.getAttribute('charset')?.toLowerCase(), 'utf-8');
Your meta element should be a void element, it does not have an end tag </meta>.
assert.notMatch(code, /<\/meta\s*>?/i);
<!DOCTYPE html>
<html lang="en">
--fcc-editable-region--
<head>
</head>
--fcc-editable-region--
<body>
</body>
</html>