mirror of
https://github.com/cbracco/html5-test-page.git
synced 2025-08-20 04:41:24 +02:00
Compare commits
22 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
714dc01c78 | ||
|
9d912a6d7d | ||
|
8983ac1be5 | ||
|
90c0472293 | ||
|
1c2a244555 | ||
|
931b8637d5 | ||
|
a0c969b93e | ||
|
d882dfcb48 | ||
|
e191677997 | ||
|
328c708a5e | ||
|
a557aa534e | ||
|
4e522a8e67 | ||
|
35cd96c06b | ||
|
4b6224d52e | ||
|
5218026335 | ||
|
e24e4b2b64 | ||
|
2e602b623d | ||
|
9780f2af62 | ||
|
a65554bba1 | ||
|
f3ee1b3575 | ||
|
b5cc38cc84 | ||
|
a9fa7e0dfb |
24
CHANGELOG.md
24
CHANGELOG.md
@@ -1,3 +1,27 @@
|
||||
# 0.9.7 (April 3, 2021)
|
||||
|
||||
- Self-close option tags (thanks @ConnorJamesLow!).
|
||||
|
||||
# 0.9.6 (April 3, 2021)
|
||||
|
||||
- Remove classes and valid/invalid inputs.
|
||||
|
||||
# 0.9.5 (April 3, 2021)
|
||||
|
||||
- Add <picture> element (thanks @AurelioDeRosa!).
|
||||
|
||||
# 0.9.4 (April 3, 2021)
|
||||
|
||||
- Remove unnecessary role attributes. Update headings (thanks @gipsi!).
|
||||
|
||||
# 0.9.3 (April 3, 2021)
|
||||
|
||||
- Add multiple <select> (thanks @racztiborzoltan!).
|
||||
|
||||
# 0.9.2 (April 3, 2021)
|
||||
|
||||
- Add nested lists (thanks @charul97!).
|
||||
|
||||
# 0.9.1 (April 3, 2021)
|
||||
|
||||
- Add background images (thanks @97arushisharma!).
|
||||
|
164
index.html
164
index.html
@@ -6,12 +6,12 @@
|
||||
<title>HTML5 Test Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="top" class="page" role="document">
|
||||
<header role="banner">
|
||||
<div id="top" role="document">
|
||||
<header>
|
||||
<h1>HTML5 Test Page</h1>
|
||||
<p>This is a test page filled with common HTML elements to be used to provide visual feedback whilst building CSS systems and frameworks.</p>
|
||||
</header>
|
||||
<nav role="navigation">
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#text">Text</a>
|
||||
@@ -32,7 +32,6 @@
|
||||
<li>
|
||||
<a href="#embedded">Embedded content</a>
|
||||
<ul>
|
||||
|
||||
<li><a href="#embedded__images">Images</a></li>
|
||||
<li><a href="#embedded__bgimages">Background images</a></li>
|
||||
<li><a href="#embedded__audio">Audio</a></li>
|
||||
@@ -60,12 +59,12 @@
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<main role="main">
|
||||
<main>
|
||||
<section id="text">
|
||||
<header><h1>Text</h1></header>
|
||||
<article id="text__headings">
|
||||
<header>
|
||||
<h1>Headings</h1>
|
||||
<h2>Headings</h2>
|
||||
</header>
|
||||
<div>
|
||||
<h1>Heading 1</h1>
|
||||
@@ -78,14 +77,25 @@
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
<article id="text__paragraphs">
|
||||
<header><h1>Paragraphs</h1></header>
|
||||
<header><h2>Paragraphs</h2></header>
|
||||
<div>
|
||||
<p>A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.</p>
|
||||
</div>
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
<article id="text__blockquotes">
|
||||
<header><h2>Blockquotes</h2></header>
|
||||
<div>
|
||||
<blockquote>
|
||||
<p>A block quotation (also known as a long quotation or extract) is a quotation in a written document, that is set off from the main text as a paragraph, or block of text.</p>
|
||||
<p>It is typically distinguished visually using indentation and a different typeface or smaller size quotation. It may or may not include a citation, usually placed at the bottom.</p>
|
||||
<cite><a href="#!">Said no one, ever.</a></cite>
|
||||
</blockquote>
|
||||
</div>
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
<article id="text__lists">
|
||||
<header><h1>Lists</h1></header>
|
||||
<header><h2>Lists</h2></header>
|
||||
<div>
|
||||
<h3>Definition list</h3>
|
||||
<dl>
|
||||
@@ -93,15 +103,71 @@
|
||||
<dd>This is a definition list division.</dd>
|
||||
</dl>
|
||||
<h3>Ordered List</h3>
|
||||
<ol>
|
||||
<ol type="1">
|
||||
<li>List Item 1</li>
|
||||
<li>List Item 2</li>
|
||||
<li>
|
||||
List Item 2
|
||||
<ol type="A">
|
||||
<li>List Item 1</li>
|
||||
<li>
|
||||
List Item 2
|
||||
<ol type="a">
|
||||
<li>List Item 1</li>
|
||||
<li>
|
||||
List Item 2
|
||||
<ol type="I">
|
||||
<li>List Item 1</li>
|
||||
<li>
|
||||
List Item 2
|
||||
<ol type="i">
|
||||
<li>List Item 1</li>
|
||||
<li>List Item 2</li>
|
||||
<li>List Item 3</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>List Item 3</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>List Item 3</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li>List Item 3</li>
|
||||
</ol>
|
||||
</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 2
|
||||
<ul>
|
||||
<li>List Item 1</li>
|
||||
<li>
|
||||
List Item 2
|
||||
<ul>
|
||||
<li>List Item 1</li>
|
||||
<li>
|
||||
List Item 2
|
||||
<ul>
|
||||
<li>List Item 1</li>
|
||||
<li>
|
||||
List Item 2
|
||||
<ul>
|
||||
<li>List Item 1</li>
|
||||
<li>List Item 2</li>
|
||||
<li>List Item 3</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>List Item 3</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>List Item 3</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>List Item 3</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>List Item 3</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -138,14 +204,14 @@
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
<article id="text__hr">
|
||||
<header><h1>Horizontal rules</h1></header>
|
||||
<header><h2>Horizontal rules</h2></header>
|
||||
<div>
|
||||
<hr>
|
||||
</div>
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
<article id="text__tables">
|
||||
<header><h1>Tabular data</h1></header>
|
||||
<header><h2>Tabular data</h2></header>
|
||||
<table>
|
||||
<caption>Table Caption</caption>
|
||||
<thead>
|
||||
@@ -200,7 +266,7 @@
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
<article id="text__code">
|
||||
<header><h1>Code</h1></header>
|
||||
<header><h2>Code</h2></header>
|
||||
<div>
|
||||
<p><strong>Keyboard input:</strong> <kbd>Cmd</kbd></p>
|
||||
<p><strong>Inline code:</strong> <code><div>code</div></code></p>
|
||||
@@ -217,7 +283,7 @@
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
<article id="text__inline">
|
||||
<header><h1>Inline elements</h1></header>
|
||||
<header><h2>Inline elements</h2></header>
|
||||
<div>
|
||||
<p><a href="#!">This is a text link</a>.</p>
|
||||
<p><strong>Strong is used to indicate strong importance.</strong></p>
|
||||
@@ -229,7 +295,7 @@
|
||||
<p><s>This text has a strikethrough</s>.</p>
|
||||
<p>Superscript<sup>®</sup>.</p>
|
||||
<p>Subscript for things like H<sub>2</sub>O.</p>
|
||||
<p><small>This small text is small for for fine print, etc.</small></p>
|
||||
<p><small>This small text is small for fine print, etc.</small></p>
|
||||
<p>Abbreviation: <abbr title="HyperText Markup Language">HTML</abbr></p>
|
||||
<p><q cite="https://developer.mozilla.org/en-US/docs/HTML/Element/q">This text is a short inline quotation.</q></p>
|
||||
<p><cite>This is a citation.</cite></p>
|
||||
@@ -241,7 +307,7 @@
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
<article id="text__comments">
|
||||
<header><h1>HTML Comments</h1></header>
|
||||
<header><h2>HTML Comments</h2></header>
|
||||
<div>
|
||||
<p>There is comment here: <!--This comment should not be displayed--></p>
|
||||
<p>There is a comment spanning multiple tags and lines below here.</p>
|
||||
@@ -253,19 +319,27 @@
|
||||
</article>
|
||||
</section>
|
||||
<section id="embedded">
|
||||
<header><h1>Embedded content</h1></header>
|
||||
<header><h2>Embedded content</h2></header>
|
||||
<article id="embedded__images">
|
||||
<header><h2>Images</h2></header>
|
||||
<div>
|
||||
<h3>No <code><figure></code> element</h3>
|
||||
<p><img src="https://placekitten.com/480/480" alt="Image alt text"></p>
|
||||
<h3>Wrapped in a <code><figure></code> element, no <code><figcaption></code></h3>
|
||||
<figure><img src="https://placekitten.com/420/420" alt="Image alt text"></figure>
|
||||
<h3>Wrapped in a <code><figure></code> element, with a <code><figcaption></code></h3>
|
||||
<h3>Plain <code><img></code> element</h3>
|
||||
<p><img src="https://placekitten.com/480/480" alt="Photo of a kitten"></p>
|
||||
<h3><code><figure></code> element with <code><img></code> element</h3>
|
||||
<figure><img src="https://placekitten.com/420/420" alt="Photo of a kitten"></figure>
|
||||
<h3><code><figure></code> element with <code><img></code> and <code><figcaption></code> elements</h3>
|
||||
<figure>
|
||||
<img src="https://placekitten.com/420/420" alt="Image alt text">
|
||||
<img src="https://placekitten.com/420/420" alt="Photo of a kitten">
|
||||
<figcaption>Here is a caption for this image.</figcaption>
|
||||
</figure>
|
||||
<h3><code><figure></code> element with a <code><picture></code> element</h3>
|
||||
<figure>
|
||||
<picture>
|
||||
<source srcset="https://placekitten.com/800/800"
|
||||
media="(min-width: 800px)">
|
||||
<img src="https://placekitten.com/420/420" alt="Photo of a kitten" />
|
||||
</picture>
|
||||
</figure>
|
||||
</div>
|
||||
<footer><p><a href="#top">[Top]</a></p></footer>
|
||||
</article>
|
||||
@@ -321,7 +395,7 @@
|
||||
</article>
|
||||
</section>
|
||||
<section id="forms">
|
||||
<header><h1>Form elements</h1></header>
|
||||
<header><h2>Form elements</h2></header>
|
||||
<form>
|
||||
<fieldset id="forms__input">
|
||||
<legend>Input fields</legend>
|
||||
@@ -354,15 +428,7 @@
|
||||
<input id="input__text2" type="number" placeholder="Enter a Number">
|
||||
</p>
|
||||
<p>
|
||||
<label for="input__text3" class="error">Error</label>
|
||||
<input id="input__text3" class="is-error" type="text" placeholder="Text Input">
|
||||
</p>
|
||||
<p>
|
||||
<label for="input__text4" class="valid">Valid</label>
|
||||
<input id="input__text4" class="is-valid" type="text" placeholder="Text Input">
|
||||
</p>
|
||||
<p>
|
||||
<label for="input__file" class="button">File Input</label>
|
||||
<label for="input__file">File Input</label>
|
||||
<input id="input__file" type="file">
|
||||
</p>
|
||||
</fieldset>
|
||||
@@ -379,11 +445,21 @@
|
||||
</optgroup>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<label for="select_multiple">Select (multiple)</label>
|
||||
<select id="select_multiple" multiple="multiple">
|
||||
<optgroup label="Option Group">
|
||||
<option>Option One</option>
|
||||
<option>Option Two</option>
|
||||
<option>Option Three</option>
|
||||
</optgroup>
|
||||
</select>
|
||||
</p>
|
||||
</fieldset>
|
||||
<p><a href="#top">[Top]</a></p>
|
||||
<fieldset id="forms__checkbox">
|
||||
<legend>Checkboxes</legend>
|
||||
<ul class="list list--bare">
|
||||
<ul>
|
||||
<li><label for="checkbox1"><input id="checkbox1" name="checkbox" type="checkbox" checked="checked"> Choice A</label></li>
|
||||
<li><label for="checkbox2"><input id="checkbox2" name="checkbox" type="checkbox"> Choice B</label></li>
|
||||
<li><label for="checkbox3"><input id="checkbox3" name="checkbox" type="checkbox"> Choice C</label></li>
|
||||
@@ -392,10 +468,10 @@
|
||||
<p><a href="#top">[Top]</a></p>
|
||||
<fieldset id="forms__radio">
|
||||
<legend>Radio buttons</legend>
|
||||
<ul class="list list--bare">
|
||||
<li><label for="radio1"><input id="radio1" name="radio" type="radio" class="radio" checked="checked"> Option 1</label></li>
|
||||
<li><label for="radio2"><input id="radio2" name="radio" type="radio" class="radio"> Option 2</label></li>
|
||||
<li><label for="radio3"><input id="radio3" name="radio" type="radio" class="radio"> Option 3</label></li>
|
||||
<ul>
|
||||
<li><label for="radio1"><input id="radio1" name="radio" type="radio" checked="checked"> Option 1</label></li>
|
||||
<li><label for="radio2"><input id="radio2" name="radio" type="radio"> Option 2</label></li>
|
||||
<li><label for="radio3"><input id="radio3" name="radio" type="radio"> Option 3</label></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<p><a href="#top">[Top]</a></p>
|
||||
@@ -445,9 +521,9 @@
|
||||
<label for="idl">Datalist</label>
|
||||
<input type="text" id="idl" list="example-list">
|
||||
<datalist id="example-list">
|
||||
<option value="Example #1">
|
||||
<option value="Example #2">
|
||||
<option value="Example #3">
|
||||
<option value="Example #1" />
|
||||
<option value="Example #2" />
|
||||
<option value="Example #3" />
|
||||
</datalist>
|
||||
</p>
|
||||
</fieldset>
|
||||
@@ -471,8 +547,8 @@
|
||||
</form>
|
||||
</section>
|
||||
</main>
|
||||
<footer role="contentinfo">
|
||||
<p>Made by <a href="https://twitter.com/cbracco">@cbracco</a>. Code on <a href="https://github.com/cbracco/html5-test-page">GitHub</a>.</p>
|
||||
<footer>
|
||||
<p>Made by <a href="http://twitter.com/cbracco">@cbracco</a>. Code on <a href="http://github.com/cbracco/html5-test-page">GitHub</a>.</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
|
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "html5-test-page",
|
||||
"version": "0.8.0",
|
||||
"lockfileVersion": 1
|
||||
}
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "html5-test-page",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.7",
|
||||
"description": "A page filled with common HTML elements to be used for testing purposes.",
|
||||
"main": "index.html",
|
||||
"scripts": {
|
||||
|
Reference in New Issue
Block a user