Files
Oliver Eyton-Williams b1fb6adc39 fix: insert user html more consistently (#42195)
* fix: use an iframe to preserve head and body

* fix: remove unnecessary parsing of html

The contents gets inserted into the DOM during transformHtml, which
is always part of the build pipeline

* fix: pipe contents through iframe

* refactor: use the same code for both transforms

* fix: try to handle test errors better

Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com>
2022-01-24 18:02:25 +00:00

1.1 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
613297a923965e0703b64796 Step 2 0 step-2

--description--

You may be familiar with the meta tag already; it is used to specify information about the page, such as the title, description, keywords, and author.

Give your page a meta tag with an appropriate charset value.

The charset attribute specifies the character encoding of the page, and, nowadays, UTF-8 is the only encoding supported by most browsers.

--hints--

You should create a meta element within the head element.

// TODO: Once builder is fixed so head info is not in body
assert.exists(document.querySelector('head > meta'));

You should give the meta tag a charset of UTF-8.

assert.equal(document.querySelector('head > meta')?.getAttribute('charset'), 'UTF-8');

--seed--

--seed-contents--

<!DOCTYPE html>
<html lang="en">
--fcc-editable-region--
  <head>
    <link rel="stylesheet" href="styles.css" />
  </head>
--fcc-editable-region--
  <body>

  </body>
</html>

body {
	background: #f5f6f7;
	color: #1b1b32;
	font-family: Helvetica;
	margin: 0;
}