Skip to content

Instantly share code, notes, and snippets.

@njm2112
Forked from rowanmanning/testing.html
Created June 30, 2018 17:41
Show Gist options
  • Save njm2112/6ea79e5127019c862e3fddb68baad291 to your computer and use it in GitHub Desktop.
Save njm2112/6ea79e5127019c862e3fddb68baad291 to your computer and use it in GitHub Desktop.
HTML template for testing CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>CSS Testing</title>
</head>
<body id="top">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<h1 id="headings">Headings</h1>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<p class="top"><a href="#top">[top]</a></p>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --><hr/>
<h1 id="paragraphs">Paragraph</h1>
<img style="width:276px;height:110px;float:right;" src="http://www.google.co.uk/intl/en_uk/images/logo.gif" alt="Google Logo"/>
<p>Lorem ipsum dolor sit amet, <a href="#" title="test link">test link</a> adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, <strong>bold</strong> mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.</p>
<p>Lorem ipsum dolor sit amet, <em>emphasis</em> consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.</p>
<p class="top"><a href="#top">[top]</a></p>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --><hr/>
<h1 id="lists">Lists</h1>
<h3>Definition List</h3>
<dl>
<dt>List Item 1</dt>
<dd>List item 1 description.</dd>
<dt>List Item 2</dt>
<dd>List item 2 description.</dd>
<dt>List Item 3</dt>
<dd>List item 3 description.</dd>
</dl>
<h3>Ordered List</h3>
<ol>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ol>
<h3>Unordered List</h3>
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3</li>
</ul>
<p class="top"><a href="#top">[top]</a></p>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --><hr/>
<h1 id="forms">Form Elements</h1>
<form>
<div class="field">
<label for="text-field-1">Text Field:</label><br/>
<input type="text" id="text-field-1" name="text-field-1"/>
</div>
<div class="field">
<label for="text-field-2">Text Field:</label>
<input type="text" id="text-field-2" name="text-field-2"/>
</div>
<div class="field">
<label for="text-area-1">Text Area:</label><br/>
<textarea id="text-area-1" name="text-area-1"></textarea>
</div>
<div class="field">
<label for="select-element-1">Select Element:</label><br/>
<select id="select-element-1" name="select-element-1">
<optgroup label="Option Group 1">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</optgroup>
<optgroup label="Option Group 2">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</optgroup>
</select>
</div>
<div class="field">
<label for="select-element-2">Select Element:</label>
<select id="select-element-2" name="select-element-2">
<optgroup label="Option Group 1">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</optgroup>
<optgroup label="Option Group 2">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</optgroup>
</select>
</div>
<div class="field">
<label>Radio Buttons:</label><br/>
<input type="radio" name="radio-1"/> Radio 1<br/>
<input type="radio" name="radio-1"/> Radio 2<br/>
<input type="radio" name="radio-1"/> Radio 3
</div>
<div class="field">
<label>Radio Button:</label>
<input type="radio" name="radio-2"/>
</div>
<div class="field">
<label>Checkboxes:</label><br/>
<input type="checkbox" name="checkbox-1"/> Checkbox 1<br/>
<input type="checkbox" name="checkbox-2"/> Checkbox 2<br/>
<input type="checkbox" name="checkbox-3"/> Checkbox 3
</div>
<div class="field">
<label>Checkbox:</label>
<input type="checkbox" name="checkbox-4"/>
</div>
<div class="field">
<label for="password-field-1">Password Field:</label><br/>
<input type="password" id="password-field-1" name="password-field-1"/>
</div>
<div class="field">
<label for="password-field-2">Password Field:</label>
<input type="password" id="password-field-2" name="password-field-2"/>
</div>
<div class="field">
<label for="file-input-1">File Input:</label><br/>
<input type="file" id="file-input-1" name="file-input-1"/>
</div>
<div class="field">
<label for="file-input-2">File Input:</label>
<input type="file" id="file-input-2" name="file-input-2"/>
</div>
<div class="field">
<label>Buttons:</label><br/>
<input type="submit" value="Submit"/>
<input type="reset" value="Reset"/>
<input type="button" value="Button"/>
<button>Button Element</button>
</div>
</form>
<p class="top"><a href="#top">[top]</a></p>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --><hr/>
<h1 id="tables">Tables</h1>
<table>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1-1</td>
<td>Cell 2-1</td>
<td>Cell 3-1</td>
</tr>
<tr>
<td>Cell 1-2</td>
<td>Cell 2-2</td>
<td>Cell 3-2</td>
</tr>
<tr>
<td>Cell 1-3</td>
<td>Cell 2-3</td>
<td>Cell 3-3</td>
</tr>
</table>
<table class="bordered">
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1-1</td>
<td>Cell 2-1</td>
<td>Cell 3-1</td>
</tr>
<tr>
<td>Cell 1-2</td>
<td>Cell 2-2</td>
<td>Cell 3-2</td>
</tr>
<tr>
<td>Cell 1-3</td>
<td>Cell 2-3</td>
<td>Cell 3-3</td>
</tr>
</table>
<p class="top"><a href="#top">[top]</a></p>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --><hr/>
<h1 id="misc">Misc Stuff - abbr, pre, code, sub, sup, etc.</h1>
<p>Lorem <sup>superscript</sup> dolor <sub>subscript</sub> amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. <cite>cite</cite>. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, <code>inline code block</code> fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. <abbr title="National Basketball Association">NBA</abbr> Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus. <abbr title="Avenue">AVE</abbr></p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. <abbr title="National Basketball Association">NBA</abbr> Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus. <abbr title="Avenue">AVE</abbr></p>
<pre>preformatted_text($like){
return 'code blocks';
}</pre>
<blockquote>
"This test page is going to help so freaking much." <br />-Blockquote
</blockquote>
<p class="top"><a href="#top">[top]</a></p>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment