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

+ add another resource

JavaScript

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

Packages

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.

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>

<!--first part-->
<html>
<header id="header">
<div class="logo">
<img id="header-img" width="130" height="70"
alt="Roycelogo" src="https://cdn.shopify.com/s/files/1/0420/8669/5079/files/ROYCE-Chocolate-logo.jpg?height=628&pad_color=fff&v=1600320787&width=1200"/>
  </div>
<nav id="nav-bar">
<ul class="navbar-links">
<li><a class="nav-link" href="#home"> HOME</a></li>
<li><a class="nav-link" href="#aboutroyce">ABOUT ROYCE</a></li>
<li><a class="nav-link" href="#contact">CONTACT</a></li>
       </ul>
  </class>
   </nav>
</header>
<br>
<body>
<center>
<h1 class="view">ENJOY THE SWEETNESS!</h1>
<div id="video-div">
<iframe id="video" width="530" height="300" src="https://www.youtube.com/embed/Jbpp6b84-Js" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</center>
</class>
  <br><br>
<center>
<div class="container">
<h2 id="home">HOME</h2>
  <p>ROYCE was founded in Sapporo in 1983. Through acquiring the best techniques and enriching our experience, we are able to make chocolate of world-class quality in Hokkaido where the climate and the clean air are ideal for making confections. The fundamental principle of Royce' has been and will always be the painstaking sourcing of high quality ingredients. </p>
<img id="home-img" src="https://www.royce.com/images/goods/172_1.jpg">
</div>
<br><br>
<div class="container">
<h2 id="aboutroyce">ABOUT ROYCE</h2>
<p>High quality production and strict hygiene standards.
<br><br>
Access to the production line is strictly controlled. Before entering the production line area, everyone is required to wear factory-issued uniforms and shoes before passing through a specialized air tunnel to remove dust. Adhesive tape rollers are then used to ensure that no dust remains on the clothes. Finally, hands are carefully washed and disinfected. No one may proceed to the production line until they have fully completed this process.</p>
<img id="aboutroyce-img" src="https://scontent.fntr6-1.fna.fbcdn.net/v/t1.0-9/s960x960/70614102_2241206229342333_6783134780780183552_o.jpg?_nc_cat=109&ccb=2&_nc_sid=e3f864&_nc_ohc=q6ttfEph2U0AX_HJRf0&_nc_ht=scontent.fntr6-1.fna&tp=7&oh=9473186abedd4d8600286216cb7c33f6&oe=6018D49E">
  </div>
<br><br>
<div class="container">
<h2 id="contact">CONTACT</h2>
 <p id="offers">contact us and we will give you special offers!</p>
  </div>
<!--second part-->
<form id="form" class="contactform" action="https://www.freecodecamp.com/email-submit">
<div class="contactbox">
<div class="label">
  <label id="name-label" for="name">Name:</label>
  </div>
  <div class="input">
<input type="text" name="name" id="name" placeholder="full name" required>
  </div>
  </div>
<div class="label">
  <label id="phone-label" for="phone">Phone:</label>
  </div>
<div class="input">
<input type="text" name="phone" id="phone" placeholder="your phone number">
  </div>
<div class="label">
<label id="e-mail" for="email">Email:</label>
 </div>
<div class="input">
<input type="email" name="email" id="email" placeholder="your email" required>
  </div>
<br>
<input type="submit" id="submit" style="visibility: hidden;">
  <button class="submit" type="submit">submit</button>
</center>
</form>
</body>
<center>
<ul>
<li>All the information in this page is taken from <a class="ref-list" href="https://order.royceconfectusa.com">Royce.</li></a>
 </ul>
</center>
<br>
<footer>
  <span>&copy; Copyright 2020, Royce Company </span>
  </footer>
</html>
              
            
!

CSS

              
                *{
font-family: lora;
}


body{
background-color: #FFE4C4;
}

.navbar-links {
  display: flex;

}

.navbar-links, li {
  padding: 20px;
  list-style: none;

}

a{
 color: #472f1f;
 text-decoration: none;
}

a:hover{
color: white;
}

.view{
color: grey;
background: rgba(4, 3, 0, 0.1); 
align-items: center;
display: flex;
justify-content: center;
font-size: 30px;
margin-top: 100px;
font-weight:lighter;
 }

#video-div{
padding: 20px;
}

#home{
color: grey;
background: rgba(4, 3, 0, 0.1); 
align-items: center;
display:flex;
justify-content: center;
font-size: 30px;
font-weight:lighter;
}

#header-img{
position: auto;

}

#home-img{
position: auto;
max-width: 70%;
}

#aboutroyce{
color: grey;
background: rgba(4, 3, 0, 0.1);
align-items: center;
font-size: 30px;
font-weight:lighter;

}
#aboutroyce-img{
position: auto;
height: 100%;
width: 100%;
}

.container{
width: 50%;
justify-content: justify;

}

#contact {
color: grey;
background: rgba(4, 3, 0, 0.1);
align-items: center;
font-size: 30px;
font-weight:lighter;
}

.contactform {
max-width: 50%;
border-color: white;
border-style: solid;
border-width: 7px;
border-radius:4px;
margin: 2% 8% 4% 7%;
text-align: center;
}

p{
font-size: 20px;
text-align: justify;
}

#offers{
text-align: center;
}

header{
top: 0;
display: flex;
justify-content: space-around;
align-items: center;
width: 100%;
position: fixed;
}

footer, span{
background-color: #FFF8DC;
margin-top: 1px;
padding: 2px 10px;
display: flex;
justify-content: flex-end;
color: #C0C0C0;
}


/*media*/
@media (max-width: 120px) {
  .header{
    margin-top: 30px;
    width: 50%;
    position: relative;
    }

              
            
!

JS

              
                
              
            
!
999px

Console