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

              
                <!--   can't center the video -->

<!--have to fix number 5-->
<!--How to make validation for email or generally in html5 num 10-->

<!--number 12  -->



<!DOCTYPE html>
<html>
<body>
  <div id="first">
  <head>
    <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
  </head>
  
  <!--====== navbar and Header section ===========-->
  <header id="header">
    <img class="icon" id="header-img" src="https://as1.ftcdn.net/jpg/02/37/05/82/500_F_237058222_Blukcu5a21x6zRaOnEYGtDbcjlzWT6MV.jpg">
    
    <nav id="nav-bar">
      <label for="toggle">&#9776;</label>
      <input type="checkbox" id="toggle"/>
      <div class="nav">
        <a class="nav-link" href="#header">Home<a/>
        <a class="nav-link" href="#features">Features<a/>
        <a class="nav-link" href="#pricing">Pricing<a/>
      </div>
    </nav>
  </header>
  </div>
  <!--====== Container ===========-->
  <div id="container">
    <!-- ===== Section Header ====-->
    <section class="welcome">
      <h2 class="title">That is a Header</h2>
      
      <!--video section-->
    <section id="frame" >
      <iframe id="video" src="https://www.youtube.com/watch?v=jV8B24rSN5o" allowfullscreen>        
      </iframe>
      <div><p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Atque assumenda tenetur perspiciatis dolor exercitationem, sit, accusantium minima blanditiis numquam rem ipsa deleniti praesentium a? Autem.</p></div>
      <div><p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Atque assumenda tenetur perspiciatis dolor exercitationem, sit, accusantium minima blanditiis numquam rem ipsa deleniti praesentium a? Autem.</p></div>
      <iframe id="video" src="https://www.youtube.com/watch?v=jV8B24rSN5o" allowfullscreen>        
      </iframe>
    </section>
    
      
      <form id="form" action="https://www.freecodecamp.com/email-submit">
      <input
        name="email"
        id="email"
        type="email"
        placeholder="Enter your email address"
        required
      />
      <input id="submit" type="submit" value="Submit" class="btn" />
    </form>
    </section>
    <!--===== Section Features======-->
    <section id="features">
      
      <div class="fets">
        <!--For Font Awsome-->
        <i class="fab fa-5x fa-algolia"></i>
        <!--For description-->
        <div>
          <h2>The Features place</h2>
          <P>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illum est voluptate error sint accusamus ut dignissimos quasi. Tempora, eius incidunt!</p>
        </div>
      </div>
      
      <div class="fets">
        <!--For Font Awsome-->
        <i class="fab fa-5x fa-algolia"></i>
        <!--For description-->
        <div>
          <h2>The Features place</h2>
          <P>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illum est voluptate error sint accusamus ut dignissimos quasi. Tempora, eius incidunt!</p>
        </div>
      </div>
      
      <div class="fets">
        <!--For Font Awsome-->
        <i class="fab fa-5x fa-algolia"></i>
        <!--For description-->
        <div>
          <h2>The Features place</h2>
          <P>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illum est voluptate error sint accusamus ut dignissimos quasi. Tempora, eius incidunt!</p>
        </div>
      </div>
      
      <div class="fets">
        <!--For Font Awsome-->
        <i class="fab fa-5x fa-algolia"></i>
        <!--For description-->
        <div>
          <h2>The Features place</h2>
          <P>Lorem ipsum dolor sit amet consectetur adipisicing elit. Illum est voluptate error sint accusamus ut dignissimos quasi. Tempora, eius incidunt!</p>
        </div>
      </div>
    </section>
        
    
    
    <!--===========Pricing Section-=======================-->
    <section id="pricing">
      <div>
        <h2>Item 1</h2>
        <h4>$100</h4>
        <ul>
          <li>Lorem, ipsum dolor.</li>
          <li>Lorem, ipsum.</li>
          <li>Lorem, ipsum dolor.</li>
        </ul>
      </div>
      
      <div>
        <h2>Item 2</h2>
        <h4>$200</h4>
        <ul>
          <li>Lorem, ipsum dolor.</li>
          <li>Lorem, ipsum.</li>
          <li>Lorem, ipsum dolor.</li>
          <li>Lorem, ipsum.</li>
      </div>
      
      <div>
        <h2>Item 3</h2>
        <h4>$300</h4>
        <ul>
          <li>Lorem, ipsum dolor.</li>
          <li>Lorem, ipsum.</li>
          <li>Lorem, ipsum dolor.</li>
          <li>Lorem, ipsum.</li>
        </ul>
      </div>
    </section>
    
    <!--footer Section-->
    <footer id="footer-a">
        <div class="ftr fff">
          
            <i class="fas fa-2x fa-map-marker-alt"></i>
          <div class="nnn">
            <h5>The address</h5>
            <h4>1245 Main Street</h4>
          </div>
      
            <i class="fas fa-2x fa-mobile-alt"></i>
          <div class="nnn">
            <h5>Contact us</h5>
            <h4>Lorem, ipsum.</h4>
          </div>
      
            <i class="fab fa-2x fa-twitter"></i>
          <div class="nnn">
            <h5>Follow us</h5>
            <h4>Lorem, ipsum.</h4>
          </div>   
      </div>
      
      <div class="">
        <h4>Lorem, ipsum.</h4>
        <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquam, alias.</p>
      </div>
      
      <div class="cpyryt">&copy; Copyright 2020 By Haitham.com</div>
      
    </footer>
  </div>
 </body> 
</html>





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

CSS

              
                *,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-border-box: border-box
}

body{
  margin: 0 0 100px 0;
  line-height: 1.5;
}

#header{
  max-width: 2000px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 5fr;
  background-color:red;
  position: fixed;
  margin: 0 auto;
  padding:0
}

#email {
  width:350px;
  height: 35px;
  margin: 0 auto;
  border-radius: 7px;
  display: block  
}

#submit {
  padding: 10px 40px;
  border-radius: 4px;
  margin-top: 10px
}

#header-img {
  background-color: #ddd;
  padding: 0;
  width: 100%;
  margin: 0 auto
}

#nav-bar {
  background-color: #eee;
}

.nav {
  text-align: center;
}

label {
  float:right;
  font-size: 30px;
  margin: 0 40px 0 0;
  line-height: 70px;
  display: none;
}

#toggle {
  float: right;
  display: none
}

.nav> a {
  margin: 0 auto;
  display: inline-block;
  padding: 31px;
}

.nav> a:hover {
  text-decoration: underline
}

.nav-link {
  font-size: 20px;
  font-weight: bold;
}

a {
  list-style: none;
  text-decoration: none;
  color: #37af65;
  background-color: #eee
}

#container {
  width: 700px;
  min-height: 1650px;
  margin: auto;
  background: #eee;
  display: grid;
  grid-gap: 2em
}

.welcome {
  text-align: center;
  padding-top: 120px
}

.title {
  color: #000;
  text-align: center;
  font-size:40px
}

#features {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-gap: 1em;
  margin: 20px;
  line-height: 1.5
}

.fets {
  display:grid;
  grid-template-columns: 30% 70%;
  text-align: center
}

.fet> i {
  margin-top: 20px
}


#frame {
  display:grid;
  grid-template-columns: 50% 50%;
  margin: 0 auto;
  padding: 30px  
}  

/*=========Pricing Part ========*/

#pricing {
  display: flex;
  flex-wrap: wrap;
  text-align: center    
}


#pricing>div{
  border: 1px solid;
  width: 300px;
  min-height: 160px;
  margin: 30px auto;
  font-size: 20px;
  padding: 20px 0;
  line-height: 1.5;
 }

#pricing> div> h2 {
  background-color: #fff
} 
#pricing> div> ul> li {
  display: block
}

/*===Footer Part======*/
#footer-a {
  display:grid;
  grid-template-columns: 1fr 1fr;
  background-color: #5f5f5f;
  padding:20px
}

.ftr {
  display: grid;
  grid-template-columns: 15% 85%
}

.ftr> i {
  margin: 0 5px;
  background-color: #ddd;
  height: 38px;
  width: 40px;
  padding: 3px 10px;
  border-radius:5px
}

.nnn {
  padding-bottom: 15px
}

.cpyryt {
  text-align: center;
  margin-bottom: 15px
}


/*===media query=====*/

@media only screen and (max-width: 700px) {
  label {
    float: right;
    display: block;
    margin: 0 20px 0 0;
    cursor: pointer;    
  }
  
  .nav-bar {
    line-height: 1em  
  }
  
  .nav {
    text-align: center;
    width: 100%;
    height: 100%;
    display: none;
  }
  
  .nav .nav-link {
    display: block;
    border-bottom:3px solid #EAEAEB;
    margin: 0;
    padding: 0 30px;
  }
  
  #toggle:checked + .nav {
    display: block;
    color: #EEE
  }
  
  #features {
    display: grid;
    grid-template-columns: 1fr;
    width: 500px;
    text-align: center
  }
  
  #frame {
    display: grid;
    grid-template-columns: 1fr;
    width: 350px;
    text-align: center;
    padding-bottom: 40px
  }
  
  #pricing {
    display: block
  }
  
  
  
}
              
            
!

JS

              
                
              
            
!
999px

Console