cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <!doctype html>
<html lang="en">

<head>
  <title>Thomas Wallace Demo</title>
  <meta charset="UTF-8" />
  <meta name="keywords" content="keyword, keywords" />
  <meta name="description" content="Keyword rich sumamry of site's purpose" />
  <meta name="author" content="Thomas Wallace" />
</head>

<body class="single-col">
  <main class="container">
    <header class="primary">
      <h1>Prototype HTML Document Example</h1>
    </header>
    <!--#header-->
    <section id="content">
      <h2 id="main-heading">Properly Marking up an HTML Document</h2>
      <!--(Primary Content Heading)-->
      

      <p>This is a paragraph. <em>Often times designers</em> will use <q>Dummy Text</q> as a <strong>placeholder</strong> in a document. An example of that text follows...Lorem ipsum dolor sit amet, consectetuer <del>adipiscing elit</del>. Praesent volutpat
        velit sed massa. In volutpat eros sagittis ipsum. Donec fringilla risus nec nunc. Fusce tellus arcu, blandit quis, posuere in, porta vitae, lorem.</p>
<!--
      <form action="#" method="get">
        <fieldset>
          <legend>Personal Information</legend>
          <label for="fName">First Name:</label><input type="text" id="fName" name="fName" placeholder="First Name" />
          <label for="lName">Last Name:</label><input type="text" id="lName" name="lName" />
          <label for="address">Address:</label>
          <textarea id="address" name="address"></textarea>
          <label for="colorSelect">Favorite Color:</label>
          <select id="colorSelect" name="colorSelect">
        <option value="R">Red</option>
        <option value="G">Green</option>
        <option value="B">Blue</option>
        <option value="null" selected>---</option>
      </select>
          <input type="submit" value="Take me to your Leader" />
        </fieldset>

      </form>
-->

      <p> <a href="#">Quisque feugiat arcu eget sapien</a>. <span class="foo">Aenean</span> eget ipsum id arcu bibendum porttitor. Vivamus id lectus non eros eleifend aliquet.</p><p> <img src="http://ualr.edu/tswallace/assets/images/eit.jpg" class="img-right" alt="EIT Logo" />Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris volutpat. Integer dignissim consequat enim. Praesent velit felis, tempus malesuada, sagittis et, condimentum in, ante. Nulla lobortis, ligula sit amet laoreet sollicitudin, sem arcu lacinia tellus, id lobortis arcu urna tincidunt turpis. <sup><a href="#">1</a></sup> </p>

      <h3>This is a Subsection of the Primary Content</h3>
      <!-- (Subsection I)-->

      <table>
        <caption>Grocery List</caption>
        <thead>
          <!--Design Time Attribute - Remove before Prodution-->
          <tr>
            <th scope="col">Item</th>
            <th scope="col">Quantity</th>
            <th scope="col">Cost</th>
          </tr>
        </thead>
        <tr>
          <td>Jolt Extra</td>
          <td>3</td>
          <td>.99</td>
        </tr>
        <tr>
          <td>Jolt</td>
          <td>3</td>
          <td>.99</td>
        </tr>
        <tr>
          <td>Jolt</td>
          <td>3</td>
          <td>.99</td>
        </tr>
                <tr>
          <td>Jolt</td>
          <td>3</td>
          <td>.99</td>
        </tr>
        <tr>
          <td>Jolt</td>
          <td>3</td>
          <td>.99</td>
        </tr>
        <tr>
          <td>Jolt</td>
          <td>3</td>
          <td>.99</td>
        </tr>
      </table>

      <p>This is a paragraph. Often times designers will use "Dummy Text" as a placeholder in a document. An example of that text follows...Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent volutpat velit sed massa. In volutpat eros sagittis
        ipsum. Donec fringilla risus nec nunc. Fusce tellus arcu, blandit quis, posuere in, porta vitae, lorem. Quisque feugiat arcu eget sapien. Aenean eget ipsum id arcu bibendum porttitor. Vivamus id lectus non eros eleifend aliquet. Cum sociis natoque
        penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris volutpat. Integer dignissim consequat enim. Praesent velit felis, tempus malesuada, sagittis et, condimentum in, ante. Nulla lobortis, ligula sit amet laoreet sollicitudin,
        sem arcu lacinia tellus, id lobortis arcu urna tincidunt turpis.</p>

      <!--This is a list of instructions.-->

      <ol>
        <li>Instruction</li>
        <li>Instruction</li>
        <li>Instruction</li>
        <li>Instruction</li>
        <li>Instruction</li>
        <li>Instruction</li>
      </ol>

      <!--This is a list of items to purchase at the grocery store.-->

      <ul>
        <li>Ramen</li>
        <li>Cheetos
          <ul>
            <li>Ramen</li>
            <li>Cheetos</li>
            <li>Jolt</li>
            <li>Bread</li>
          </ul>
        </li>
        <li>Jolt</li>
        <li>Bread</li>
      </ul>

      <!--This is an Example of how we should mark up a term and its description(s)-->
      <dl>
        <dt>Term</dt>
        <dd>Description 1</dd>
        <dd>Description 2</dd>
        <dt>Term</dt>
        <dd>Description 1</dd>
        <dd>Description 2</dd>
        <dd>Description 3</dd>
        <dd>Description 4</dd>
        <dt>Term</dt>
        <dd>Description 1</dd>
      </dl>

      <h4>This is a Subsection of Subsection I</h4>

      <blockquote>This is a Quote. Content precedes design. Design in the absence of content is not design, it's decoration. <cite>From Designing with Web Standards by Jeffery Zeldman.</cite></blockquote>

      <h3>This is a Subsection of the Primary Content</h3>
      <!--(Subsection II)-->

      <p>This is a paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent volutpat velit sed massa. In volutpat eros sagittis ipsum. Donec fringilla risus nec nunc. Fusce tellus arcu, blandit quis, posuere in, porta vitae, lorem. Quisque
        feugiat arcu eget sapien. Aenean eget ipsum id arcu bibendum porttitor. Vivamus id lectus non eros eleifend aliquet. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Mauris volutpat. Integer dignissim consequat
        enim. Praesent velit felis, tempus malesuada, sagittis et, condimentum in, ante. Nulla lobortis, ligula sit amet laoreet sollicitudin, sem arcu lacinia tellus, id lobortis arcu urna tincidunt turpis. Proin adipiscing ultrices dui. Duis porttitor,
        libero ut eleifend pellentesque, risus turpis fermentum est, vel nonummy lorem est id nisl. Nulla facilisi. In sagittis tortor. Vestibulum dictum leo vitae augue. Morbi in odio sed nulla luctus sodales.</p>
    </section>
<nav class="primary">
    <ul id="main-nav">
      <li><a href="../../index.html" title="Descriptive Link Text">Relative Link</a></li>
      <li><a href="http://www.ualr.edu" target="_blank">Absolute Link</a></li>
      <li><a href="mailto:email@domain.com">Email Link</a></li>
      <li><a href="#main-heading">Anchor Link</a></li>
    </ul>
    </nav><!--nav.primary-->
    <footer class="primary">
 <h6>&copy;2017. You should always include any copyright information in this section as well as a way to contact the owner of the page.</h6>
    </footer><!--footer.primary-->
  </main>
  <!--.container-->
</body>

</html>
            
          
!
            
              /* Universal Selector - Resets Margins and Padding on all elements */
*{
  margin:0;
  padding:0;
}

.img-right{
  float:right;
  margin: 15px 0 15px 30px;
  border:1px solid #ccc;
  padding:5px;
}

.img-left{
  float:left;
  margin: 15px 30px 15px 0;
  border:1px solid #ccc;
  padding:5px;
}

/* Hyperlinks Link | Visited | Hover | Active - Style all four*/

#content a:link{
 color: #126E9D;
}
#content a:visited{
  color: #999;
}
#content a:hover{
 text-decoration:none;
 background:#fff;
 font-weight:bold;
}
#content a:active{
 text-decoration:none;
 background:#fff;
 font-weight:bold;
}

body{
  background:#91B1C8;
  font-family: Tahoma, Verdana, Segoe, sans-serif;
  font-size:100%;
}

main{
 width:960px; 
 background:#FDF2E9;
 margin-left: auto;
 margin-right:auto;
 margin-top:30px;
 margin-bottom:30px; 
 /* Shorthand */ 
 margin: 30px auto;
 border: 2px solid #000;
 border-radius:6px;
}

header.primary {
  background:#126E9D;
  height:150px;
  margin-bottom:30px;
}

header.primary h1{
  color:#fff;
  text-align:center;
  padding-top:60px;
  text-shadow: 2px 2px #000;
}

#content {
  width:670px;
  float:left;
  margin-left:30px;
  margin-bottom:30px;
  line-height:1.6;
}

#content h2{
  margin: 12px 0 18px 0;
  color:#126E9D;
  border-bottom: 1px dotted #000;
}

#content h3{
  margin: 12px 0 18px 0;
  color:#126E9D;
}

#content h4 {
    margin: 12px 0 18px 0;
    border-left:5px solid #126E9D;
    padding-left:15px;
}

#content table {
  width:100%;
  margin: 12px 0 18px 0;
  border: 2px solid #ccc;
  padding: 5px;
}

#content table caption{
  margin: 12px 0 18px 0;
  font-weight:600;
  font-size: 1.3em;
  letter-spacing:2px;
}
#content th {
  background:#126E9D;
  color:#fff;
  padding: 5px;
}
#content tr:nth-child(even) {
background:#ccc;
}

#content table tr:hover{
  background:slategrey;
}

#content td {
  border-top: 2px solid #ccc;
  padding: 5px;
  text-align:center;
}

#content p {
  margin: 12px 0 18px 0;
  
}

#content ul, #content ol{
  margin: 12px 0 18px 40px;
}

#content dl{
  margin: 12px 0 18px 0;
}

#content dt{
  font-weight:bold;
}

dd + dt {margin-top:15px;} /*Adjacent sibling combinator*/

#content blockquote{
  margin: 12px 40px 18px 40px;
  background:#c0c0c0;
  padding:30px;
  border-left: 5px solid #999;
  border-right: 5px solid #999;
}

nav.primary {
  width: 200px;
  float:left;
  margin-left:30px;
}

ul#main-nav {

}
ul#main-nav li {
  list-style: none;
  margin: 0 0 5px 0;
}
ul#main-nav li a {
  text-decoration: none;
  display: block;
  padding: 0.8em 0.8em;
  border-left: 0.4em solid #126E9D;
  color: #fff;
  background: #126E9D;
  text-shadow: 1px 1px #000;
  border-radius:6px;
  
}
ul#main-nav li a:hover {
  border-left: 0.4em solid #126E9D;
  color: #fff;
  background: #91B1C8;
  text-shadow: 2px 2px #000;
}

footer.primary{
  clear:both;
  background:#126E9D;
  padding: 15px 30px;
  color:#fff;
}

/* -------- Single Column Template -----*/

.single-col #content {
  width:900px;
}
            
          
!
999px
Loading ..................

Console

Open Chat