2021-09-07 12:49:42 -07:00
|
|
|
---
|
|
|
|
id: 60b80da8676fb3227967a731
|
2021-10-21 10:07:52 -07:00
|
|
|
title: Step 3
|
2021-09-07 12:49:42 -07:00
|
|
|
challengeType: 0
|
2021-10-21 10:07:52 -07:00
|
|
|
dashedName: step-3
|
2021-09-07 12:49:42 -07:00
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
|
|
|
Go ahead and link your CSS file now, even though you have not written any CSS yet.
|
|
|
|
|
|
|
|
Add a `link` element with a `rel` of `stylesheet`, a `type` of `text/css`, and an `href` of `styles.css`.
|
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
|
|
|
|
|
|
|
Your code should have a `link` element.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.match(code, /<link/)
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `link` element should be a self-closing element.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert(code.match(/<link[\w\W\s]+\/>/i));
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `link` element should be within your `head` element.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert(code.match(/<head>[\w\W\s]*<link[\w\W\s]*\/>[\w\W\s]*<\/head>/i))
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `link` element should have a `rel` attribute with the value `stylesheet`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.match(code, /<link[\s\S]*?rel=('|"|`)stylesheet\1/)
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `link` element should have a `type` attribute with the value `text/css`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.match(code, /<link[\s\S]*?type=('|"|`)text\/css\1/)
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `link` element should have an `href` attribute with the value `styles.css`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.match(code, /<link[\s\S]*?href=('|"|`)(\.\/)?styles\.css\1/)
|
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2022-03-14 15:54:43 +00:00
|
|
|
<title>Picasso Painting</title>
|
2021-09-07 12:49:42 -07:00
|
|
|
--fcc-editable-region--
|
|
|
|
|
|
|
|
--fcc-editable-region--
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
```
|
|
|
|
|
|
|
|
```css
|
|
|
|
|
|
|
|
```
|