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

              
                <head>
  <script src="https://kit.fontawesome.com/8a7527178a.js" crossorigin="anonymous"></script>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta charset='UTF-8'>
</head>
<nav id='navbar'>
<div><header><h2>HTML Catalogue</h2></header>
  <ul>
    <li><a class='nav-link' href='#HTML_Introduction'>HTML Introduction</a></li>
    <li><a class='nav-link'  href='#Web_Browsers'>Web Browsers</a></li>
    <li><a class='nav-link'  href='#HTML_Page_Structure'>HTML Page Structure</a></li>
    <li><a class='nav-link'  href='#HTML_History'>HTML History</a></li>
    <li><a class='nav-link'  href='#N/A'>N/A</a></li>
  </ul>
</nav>
<main id='main-doc'>
  <section class='main-section'  id='HTML_Introduction'>
    <header><i class="fas fa-code"></i> HTML Introduction</header>
      <ul>
        <li>HTML stands for Hyper Text Markup Language</li>
        <li>HTML stands for Hyper Text Markup Language</li>
        <li>HTML describes the structure of a Web page</li>
        <li>HTML consists of a series of elements</li>
        <li>HTML elements tell the browser how to display the content
</li>
        <li>HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.
</li>
      </ul>
      <p style='font-style: italic'>A simple HTML Doc:</p>
      <img src='https://html.com/wp-content/uploads/html-homepage-layout-demo.png' style='width: 60vw;'>
                                                                             <ul>
<li>The <code class="w3-codespan">&lt;!DOCTYPE html&gt;</code> declaration defines 
that this document is an HTML5 document</li>
<li>The <code class="w3-codespan">&lt;html&gt;</code> element is the root element of an HTML 
page</li>
 <li>The <code class="w3-codespan">&lt;head&gt;</code> element contains meta information about the 
 HTML page</li>
 <li>The <code class="w3-codespan">&lt;title&gt;</code> element specifies a title for the 
 HTML page (which is shown in the browser's title bar or in the page's tab)</li>
 <li>The <code class="w3-codespan">&lt;body&gt;</code> element defines the 
 document's body, and is a container for all the visible contents, such as 
 headings, paragraphs, images, hyperlinks, tables, lists, etc.</li>
 <li>The <code class="w3-codespan">&lt;h1&gt;</code> element defines a large heading</li>
 <li>The <code class="w3-codespan">&lt;p&gt;</code> element defines a paragraph</li>
</ul>
   
  </section>
  <section id='Web_Browsers' class='main-section'>
    <header><i class="fas fa-code"></i> Web Browsers</header>
    <p>The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents and display them correctly.

A browser does not display the HTML tags, but uses them to determine how to display the document:
</p>
    <p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
    <img src='https://www.w3schools.com/html/img_chrome.png' tyle='width: 20w;'>
  </section>
  <section class='main-section' id='HTML_Page_Structure'>
    <header><i class="fas fa-code"></i> HTML Page Structure</header>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.As written at HTML Introduction</p>
  </section>
  <section class='main-section' id='HTML_History'>
    <header><i class="fas fa-code"></i> HTML History</header>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
  </section>
  <section class='main-section' id='N/A'>
    <header><i class="fas fa-code"></i> N/A</header>
    <p>This section is not available yet! You can go to w3school for more info! </p>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
  </section>

</main>
              
            
!

CSS

              
                
#navbar li{
  border-top: 1px solid black
}
main{
  min-height: 200vh;  
  margin-left: 20rem;
  height: 200rem;
}

header > h2 {
  text-align: center;
}
/** #header-space {
  top:0;
  width: 100%;
  background-color: red;
  position: fixed;
  height: 50px;
} **/
#navbar header {
  text-align: center;
}
#navbar{
  border-right:1px solid black;
  position: fixed;
  min-width: 290px;
  height: 100%;
  background: grey;
  left:0;
  top:0;
}
#navbar ul {
  background: #feffe0;
  height: 88vh;
  padding: 0;
  overflow-y: auto;
  overflow-x: auto;
}
.nav-link{
  list-style: none;
  line-height: 2;
  text-decoration: none;
}
#navbar a {
  display: block;
  padding: 10px 30px;
  color: #4d4e53;
  text-decoration: none;
  cursor: pointer;
}
table, td, tr, th {
  border: 1px solid black;
}
@media (max-width: 650px;){
  
}

              
            
!

JS

              
                // !! IMPORTANT README:
const projectName = 'technical-docs-page';
// 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