cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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>Prototype HTML Document</title>
  <meta charset="utf-8" />
  <meta name="description" content="Short Keyword Rich Description" />
  <meta name="keywords" content="UALR, IT Ruby" />
  <meta name="author" content="Thomas Wallace" />
  <link href="assets/css/style.css" rel="stylesheet" />
</head>

<body id="top">
  <div id="container">
    <div id="header">
  <h1>Prototype HTML Document Example</h1>
    </div><!--#header--> 
<!--<div id="nav-horz">    
<ul>
  <li><a href="index.html" title="Take me to your leader">Home</a></li>
  <li><a href="http://ualr.edu" target="_blank" title="Visit UALR">UALR</a></li>
  <li><a href="#top" title="To the top of the page">Back to Top</a></li>
  <li><a href="mailto:tswallace@ualr.edu" title="Send an email">Contact</a></li>
</ul>
    </div>--><!--#nav-->        
<div id="content">
  <h2>Properly Marking up an HTML Document</h2>
  <!--(Primary Content Heading)-->
<!--
<form action="process.php" method="get">
  <fieldset>
    <legend>Personal Information</legend>
    <label for="name">Name:</label><input type="text" id="name" name="name" />
    <label for="email-address">Email Address:</label><input type="email" name="email-address" id="email-address" />
    <label for="colors">Favorite Color:</label>
    <select id="colors" name="colors">
      <option value="red">Red</option>
      <option value="green">Green</option>
      <option value="blue">Blue</option>
      <option value="null" selected>---</option>
    </select>
    <input type="submit" value="Take me to your leader" />
  </fieldset>
</form> 
-->      
   
  <p><img src="http://ualr.edu/tswallace/assets/images/eit.jpg" alt="EIT Logo" class="align-right" /> This is a paragraph. <em>Often times designers</em> will use "Dummy Text" as a placeholder in a document. An example of that text follows...<strong>Lorem ipsum dolor sit amet</strong>, consectetuer adipiscing elit. Praesent volutpat velit sed massa. In volutpat eros sagittis
    ipsum. <del>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</del>. Vivamus id lectus non eros eleifend aliquet. Cum sociis natoque <sup><a href="#ref">1</a></sup>
    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>
  <hr />
  <h3>This is a Subsection of the Primary Content</h3>
  <!--(Subsection I)-->
  <table>
    <caption>Grocery List</caption>
    <tr><th scope="col">Item</th><th scope="col">Quantity</th><th scope="col">Cost</th></tr>
    <tr><td>Ramen</td><td>5</td><td>.10</td></tr>
    <tr><td>Jolt</td><td>10</td><td>1.99</td></tr>
    <tr><td>Cheetos</td><td>4</td><td>.99</td></tr>
        <tr><td>Ramen</td><td>5</td><td>.10</td></tr>
    <tr><td>Jolt</td><td>10</td><td>1.99</td></tr>
    <tr><td>Cheetos</td><td>4</td><td>.99</td></tr>
          <tr><td>Ramen</td><td>5</td><td>.10</td></tr>
    <tr><td>Jolt</td><td>10</td><td>1.99</td></tr>
    <tr><td>Cheetos</td><td>4</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</p><p>
    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>
  
  <address>
    Thomas Wallace<br/>
    2801 South University<br/>
    Little Rock, AR<br/>
    72204<br/>
  </address>

  <!--This is a list of instructions.-->
  <ol>
    <li>Instruction 1</li>
    <li>Instruction 2</li>
    <li>Instruction 3
      <ul>
        <li>Ramen</li>
        <li>Cheetos</li>
        <li>Jolt</li>
        <li>Bread</li>
      </ul>
    </li>
    <li>Instruction 2</li>
    <li>Instruction 3</li>
    <li>Instruction 2</li>
    <li>Instruction 3</li>
  </ol>

  <!--This is a list of items to purchase at the grocery store.-->
  <ul>
    <li>Ramen</li>
    <li>Cheetos
      <ul>
        <li>Spicy</li>
        <li>Original</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>
  <dt>Term</dt>
  <dd>Description 1</dd>
  <dd>Description 2</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. <q>Lorem ipsum dolor sit amet, consectetuer adipiscing</q> 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>
    </div><!--#content-->
<div id="nav">    
<ul>
  <li><a href="index.html" title="Take me to your leader">Home</a></li><!--Relative Link-->
  <li><a href="http://ualr.edu" target="_blank" title="Visit UALR">UALR</a></li><!--Absolute Path-->
  <li><a href="#top" title="To the top of the page">Back to Top</a></li><!--Anchor Link-->
  <li><a href="mailto:tswallace@ualr.edu" title="Send an email">Contact</a></li>
</ul>
    </div><!--#nav-->  
  <div id="footer">
<h6>&copy; 2017 Thomas Wallace </h6>
    </div><!--#footer-->
  </div><!--#container-->    
</body>

</html>
            
          
!
            
              /* Universl Selector */

*{
    margin: 0;
    padding:0;
}

body{
    background-color:#0B0B25;
    font-family: "Trebuchet MS", sans-serif;
}

.align-right{
    float:right;
    border:1px solid #ccc;
    padding:5px;
    margin:12px 0 18px 15px;
}

.align-left{
    float:left;
    border:1px solid #ccc;
    padding:5px;
    margin:12px 15px 18px 0;
}

.align-center{
    display:block;
    margin: 12px auto 18px auto;
}

#container{
    width:980px;
    background:#fff;
    border:2px solid #ccc;
    margin-top:20px;
    margin-right:auto;
    margin-bottom:20px;
    margin-left:auto;
    /* Shorthand */
    margin: 20px auto;
}

#header{
    background: #5D8FA8;
    height:150px;
    color:#ffffff;
    text-align:center;
    margin-bottom: 30px;

}

#header h1{
    padding-top:60px;
    text-shadow: 2px 2px #000;
}

#content{
    width:700px;
    float:left;
    margin-left:30px;
    margin-bottom:30px;
    margin: 0 0 30px 30px;
}

#content h2, #content h3, #content h4, #content h5, #content p, #content ul, #content ol, #content table, #content dl{
    margin-top:12px;
    margin-bottom:18px;
    line-height:24px;
}

#content h2{
    color:#0B0B25;
    border-bottom-color:#ccc;
    border-bottom-style:dotted;
    border-bottom-width: 1px;
    /* Shorthand */
    border-bottom:1px dotted #ccc;
}

#content p{}

#content h3{
    color: #5D8FA8;
    border-left: 5px solid #0B0B25;
    padding-left:10px;
}

#content ol, #content ul{
    margin-left:30px;
}

#content ol ul{
    color:red;
}

/* #content ol{list-style-type: lower-roman;}*/

#content dt{
    font-weight:bold;
}

#content dd + dt {margin-top:12px;}

#content blockquote{
    border-left:5px solid #ccc;
    margin: 0 40px;
    padding:30px;
    line-height: 1.8;
}

#content cite{
 display:block;
 text-align: right;
}

table{
    border:2px solid #0B0B25;
    width:100%;
    border-collapse: collapse;
    border-spacing:2px;
}
table tr:nth-child(odd){
    background:#dedede;
}

table tr:hover{
    background:#ccc;
}

table th{
    background: #0B0B25;
    color:#fff;
    padding:7px;
}
table td{
    border:1px solid #ccc;
    padding:7px;
}


#nav{
    width:190px;
    float:left;
    margin-left:30px;
}

#nav ul{}
#nav li{
    list-style-type: none;
    margin-bottom:8px;
}
#nav li a {
    display:block;
    background: #5D8FA8;
    color:#fff;
    padding:8px;
    font-size: 1.1em;
    text-decoration:none;
    border-radius:4px;
    text-align:center;
}
#nav li a:visited {
    color:#fff;
}

#nav a:hover{
    background: #ccc;
    color:#000;
}

#nav-horz{}
#nav-horz ul{
    width: 700px;
    margin: 0 auto;

    height:60px
}
#nav-horz li{
list-style-type: none;
}

#nav-horz li a{
    display:block;
    background: #5D8FA8;
    color:#fff;
    padding:8px;
    font-size: 1.1em;
    text-decoration:none;
    border-radius:4px;
    text-align:center;
    width:20%;
    float:left;
    margin-right: 2%;
    
}


#footer{
    clear:both;
    background: #5D8FA8;
    text-align:center;
    padding:15px 30px;
    text-shadow: 1px 1px #000;
    color:#ffffff;
    font-size: 1.4em;
    
}
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console

Open Chat