Pen Settings



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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.


                <!-- START NAV -->
<nav id="navbar" class="nav">
  <a href="#welcome-section">Projects</a>
  <a href="#About">About</a>
  <a href="#Benefits">Benefits</a>
  <a href="#Contact">Contact</a>
  <a id="profile-link" target="_blank" href=""></a>
<!-- END NAV-->
<header id="welcome-section">
  <h1>This is my simple freecodecamp portfolio</h1>
  <p>I am trying to learn how to code from scratch</p>
  <p>This is one of my exercises as i am a beginner</p>
  <p>If you are stuck and come across this</p>
  <p>feel free to use this as an example in your project</p></header>
<img class="rezponsive-image" src="">
  <section id="projects">
    <a class="project-tile"></a>
    <section id="About">
      <h2>About my freecode portfolio</h2>
      <p>this is a simple freecodecamp sample.</p>
    <section id="Benefits">
      <h2>Benefits of learning from here</h2>
      <p>its always good to occupy your mind with something productive</p>
    <section id="Contact">
      <h2>Contact for more</h2>
      <p>for more samples give me a thumbs up if you come across this and it helps</p>

  <p>This is a just simple portfolio,looking forward to making more designed projects after more practice</p>


                @media (max-width: 75em) {
  html {background-color: yellow;
    font-size: 60%;
  background-image: "";
 min-heigth: 100vh;}
.nav {
  display: flex;
  justify-content: center;
  font-size: 30px;
  font-weight: bold;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  color: red;
#welcome-section {height: 100vh;
font-weight: bold;
font-size: 15px;}
#img{max-width: 100%;
  background-image color: red;
heigth: auto;
justify-content: right;}
h1 {
  font-size: 30px;
  color: red;
  text-transform: uppercase;
  line-height: 300%
 font-size: 20px; 
  text-transform: uppercase;
  color: red;
footer{positon: bottom;
height: 5px;
width: 50%;
bottom: 0;
color: blue;
text-transform: uppercase;
font-weight: bold;}


                // !! 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.

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - 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.