# Help in Codepen Projects

**URL:** <https://forum.freecodecamp.org/t/help-in-codepen-projects/415997>\
**Category:** I Built This\
**Created:** [August 18, 2020, 3:54pm UTC](https://forum.freecodecamp.org/t/help-in-codepen-projects/415997 "2020-08-18T15:54:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilyanneharden](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/emilyanneharden/32/174332_2.png) [@emilyanneharden](https://forum.freecodecamp.org/u/emilyanneharden)\
**Post date:** [August 18, 2020, 3:54pm UTC](https://forum.freecodecamp.org/t/help-in-codepen-projects/415997/1 "2020-08-18T15:54:37Z")

</div>

So, I am BRAND NEW to all of this so please don’t judge my basic coding, but I am having issues with my codepen project. I originally created a pen with CSS and HTML but then decided I wanted multiple pages, so I copied this info into a project. Now the project isn’t using any of my css. Any help is much appreciated!! Thank you!  
[My First Codepen Project]  
([https://codepen.io/emilyanneharden/project/editor/AoMqJk](https://codepen.io/emilyanneharden/project/editor/AoMqJk))

---

<div class="post-metadata">

**Author:** ![skaparate](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/skaparate/32/125896_2.png) [@skaparate](https://forum.freecodecamp.org/u/skaparate)\
**Post date:** [August 18, 2020, 4:10pm UTC](https://forum.freecodecamp.org/t/help-in-codepen-projects/415997/2 "2020-08-18T16:10:49Z")

</div>

Hello!

Are all your styles on the `styles/index.scss` I assume, right?

Regardless, your HTML file is not correctly structured:

```auto
<!DOCTYPE html>
<html lang="en">

<head>
		<title>Emily Harden</title>
		<link rel="stylesheet" href="css/index.processed.css">
	<!-- background with stripes -->
<!-- Up to this point, you're OK -->

```

This `div` is wrong. It should be inside the `body`, plus it doesn’t have a closing tag `</div>`.

```auto
<div id="background" style="background-image: url(https://www.publicdomainpictures.net/pictures/120000/velka/stripes-background-teal-green.jpg)">

```

The `body` tag should contain all your page content (the one that’s meant to be displayed), hence your `header` should go inside it, not before.

The correct structure of a HTML document is:

```auto
<!doctype html><!-- The document type declaration -->
<html><!-- Opening html tag -->
  <head><!-- Opening head tag -->
    <title>The Page Title</title><!-- The title shown on the browser tab -->
    <link href="path/to/css/file" />
    <!-- Other optional information like <script></script> tags -->
  </head><!-- Closing head tag -->
  <body><!-- Opening body tag -->
    <!-- Here goes your content -->
    <!-- Your <header></header>, for instance, goes here -->
  </body><!-- Closing body tag -->
</html><!-- Closing html tag -->

```

Try to adapt this structure and see if it fixes your issues 🙂.

Let us know how it goes,

Regards!

---

<div class="post-metadata">

**Author:** ![emilyanneharden](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/emilyanneharden/32/174332_2.png) [@emilyanneharden](https://forum.freecodecamp.org/u/emilyanneharden)\
**Post date:** [August 18, 2020, 4:27pm UTC](https://forum.freecodecamp.org/t/help-in-codepen-projects/415997/3 "2020-08-18T16:27:41Z")

</div>

This definitely makes sense and I think I applied those fixes, thanks! It still isn’t linking to my CSS though? I even removed my background.

---

<div class="post-metadata">

**Author:** ![skaparate](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/skaparate/32/125896_2.png) [@skaparate](https://forum.freecodecamp.org/u/skaparate)\
**Post date:** [August 18, 2020, 4:53pm UTC](https://forum.freecodecamp.org/t/help-in-codepen-projects/415997/4 "2020-08-18T16:53:56Z")

</div>

You have to link the `index.processed.css` instead of the `index.scss`.

Also, you have some elements **after** the closing body tag, which is wrong and **didn’t close the html** with `</html>`.

Be very careful with the opening and closing tags since it can lead to unexpected results 🙂.

You can copy your HTML content, temporarily, to another pen and then click on **Analyze HTML** to see if there are errors. You could search online for **HTML validator** too 🙂.

---

<div class="post-metadata">

**Author:** ![emilyanneharden](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/emilyanneharden/32/174332_2.png) [@emilyanneharden](https://forum.freecodecamp.org/u/emilyanneharden)\
**Post date:** [August 18, 2020, 5:09pm UTC](https://forum.freecodecamp.org/t/help-in-codepen-projects/415997/5 "2020-08-18T17:09:35Z")

</div>

THANK YOU!!!  
It worked!! 🙂

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 1:12pm UTC](https://forum.freecodecamp.org/t/help-in-codepen-projects/415997/6 "2021-06-01T13:12:35Z")

</div>


