Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>FCC - Technical Documentation Page</title>
    <link rel="stylesheet" href="./CSS/index.css" />
    <link
      href="https://fonts.googleapis.com/css2?family=Anton&family=Cabin:wght@600&family=Montserrat&display=swap"
      rel="stylesheet"
    />
  </head>
  <body>
    <nav id="navbar">
      <header>Basic HTML</header>
      <a href="#Intro_to_HTML" class="nav-link box">Intro to HTML</a>
      <a href="#Intro_to_Titles" class="nav-link box">Intro to Titles</a>
      <a href="#Intro_to_Headings" class="nav-link box">Intro to Headings</a>
      <a href="#Intro_to_P_Elements" class="nav-link box">Intro to P Elements</a>
      <a href="#Intro_to_Links" class="nav-link box">Intro to Links</a>
    </nav>
    <main id="main-doc">
      <section id="Intro_to_HTML" class="main-section">
        <header>Intro to HTML</header>
        <p>
          HTML is easy to learn. In order to start writing HTML, you need to
          place place every bit of your code within HTML tags. This is what it
          looks like below:
        </p>
        <code
          >&lt;html&gt; Everything withing this will be a in HTML &lt;/html&gt;
        </code>
        <p>Here is what you will learn in this post</p>
        <ul>
          <li><p>How to create a Title</p></li>
          <li><p>How to create a Heading</p></li>
          <li><p>How to create a Paragraph</p></li>
          <li><p>How to create a Link</p></li>
          <li><p>That's it!</p></li>
        </ul>
      </section>
      <hr />
      <section id="Intro_to_Titles" class="main-section">
        <header>Intro to Titles</header>
        <p>
          The title tag is required in all HTML documents and it defines the
          title of the document.
        </p>
        <code>&lt;t&gt; This is how you make a title &lt;/t&gt;</code>
        <p>
          The contents of a page title is very important for search engine
          optimization (SEO)! The page title is used by search engine algorithms
          to decide the order when listing pages in search results.
        </p>
      </section>
      <hr />
      <section id="Intro_to_Headings" class="main-section">
        <header>Intro to Headings</header>
        <p>There are 6 dfferent headings in html. Ranging from h1 to h6.</p>
        <code
          >&lt;h1&gt; Everything withing this will be a heading 1
          &lt;/h1&gt;</code
        >
        <p>
          Remember, that h1 defines the most important heading and h6 defines
          the least important heading.
        </p>
      </section>
      <hr />
      <section id="Intro_to_P_Elements" class="main-section">
        <header>Intro to P Elements</header>
        <p>
          The HTML P element represents a paragraph. Paragraphs are usually
          represented in visual media as blocks of text separated from adjacent
          blocks by blank lines and/or first-line indentation, but HTML
          paragraphs can be any structural grouping of related content, such as
          images or form fields
        </p>
        <code
          >&lt;p&gt; Everything withing this will be a new paragraph.
          &lt;/p&gt;</code
        >
        <p>
          Remember, you need to create a new P element every time you'd like to
          create a new paragraph!
        </p>
      </section>
      <hr />
      <section id="Intro_to_Links" class="main-section">
        <header>Intro to Links</header>
        <p>
          Links are found in nearly all web pages. Links allow users to click
          their way from page to page.
        </p>
        <code
          >&lt;a&gt; Everything withing this will be a link. This is also known
          as an anchor element. &lt;/a&gt;</code
        >
        <p>
          Remember a link does not have to be text. It can be an image or any
          other HTML element.
        </p>
      </section>
    </main>
  </body>
</html>

<!-- checklist
#1 - yes. 
#2 - yes.
#3 - yes. 
#4 - yes.
#5 - yes. 
#6 - almost. Need to fill in actual code. 
#7 - no. 
#8 - yes.
#9 - yes. 
#10 - yes. 
#11 - yes. 
#13 - yes
#14 - no. 
#15 - no. 


-->


              
            
!

CSS

              
                /* imports */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Cabin:wght@600&family=Montserrat&display=swap");


/* General */

* {
  box-sizing: border-box;
}

a {
  color: #ffffff;
  text-decoration: none;
  font-family: "Montserrat";
}

body {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

code {
  color: #c5c6c7;
  padding: 10px;
  background-color: #0b0c10;
}

header {
  color: #d79922;
/*   font-family: "Cabin", serif; */
  font-size: large;
  font-weight: bold;
  font-family: "Montserrat", sans-serif;
  padding: 15px;
}

main {
  background-color: #1f2833;
  flex: 1;
  padding: 25px;
  height: 100vh;
  overflow-y: scroll;
}

nav {
  height: 100vh;
  width: 250px;
  background-color: #0b0c10;
  padding-top: 25px;
  display: block;
}

nav a {
  border-top: 2px solid #ddd;
  display: block;
  padding: 15px;
}

p {
  color: #66fcf1;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

section {
  line-height: 1.5;
}

/* Classes */

.nav-link:hover {
  color: #d79922;
}

/* Media */
@media (max-width: 600px) {
  body {
    flex-direction: column;
  }

  body nav {
    height: 300px;
    width: 100%;
    overflow-y: scroll;
  }

  main {
    width: 100%;
    height: auto;
  }
}



              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console