-
Notifications
You must be signed in to change notification settings - Fork 31
/
page-html-unit-test.html
executable file
·280 lines (235 loc) · 9.86 KB
/
page-html-unit-test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
---
layout: default
title: Page 1
description: This is my site. Welcome.
---
<h1 class="mtl">Markup: HTML Tags and Formatting</h1>
<p>This page shows how all the html tags render on this thing. Taken from <a href="http://codex.wordpress.org/Theme_Unit_Test">WordPress Theme Unit Test</a></p>
<h2>Headings</h2>
<h1>Header one</h1>
<h2>Header two</h2>
<h3>Header three</h3>
<h4>Header four</h4>
<h5>Header five</h5>
<h6>Header six</h6>
<h2>Blockquotes</h2>
Single line blockquote:
<blockquote>Stay hungry. Stay foolish.</blockquote>
Multi-line blockquote with a cite reference:
<blockquote>People think focus means saying yes to the thing you've got to focus on. But that's not what it means at all. It means saying no to the hundred other good ideas that there are. You have to pick carefully. I'm actually as proud of the things we haven't done as the things I have done. Innovation is saying no to 1,000 things. <cite>Steve Jobs - Apple Worldwide Developers' Conference, 1997</cite></blockquote>
<h2>Tables</h2>
<table>
<tbody>
<tr>
<th>Employee</th>
<th class="views">Salary</th>
<th></th>
</tr>
<tr class="odd">
<td><a href="http://example.org/">John Doe</a></td>
<td>$1</td>
<td>Because that's all Steve Job' needed for a salary.</td>
</tr>
<tr class="even">
<td><a href="http://example.org/">Jane Doe</a></td>
<td>$100K</td>
<td>For all the blogging he does.</td>
</tr>
<tr class="odd">
<td><a href="http://example.org/">Fred Bloggs</a></td>
<td>$100M</td>
<td>Pictures are worth a thousand words, right? So Tom x 1,000.</td>
</tr>
<tr class="even">
<td><a href="http://example.org/">Jane Bloggs</a></td>
<td>$100B</td>
<td>With hair like that?! Enough said...</td>
</tr>
</tbody>
</table>
<h2>Definition Lists</h2>
<dl><dt>Definition List Title</dt><dd>Definition list division.</dd><dt>Startup</dt><dd>A startup company or startup is a company or temporary organization designed to search for a repeatable and scalable business model.</dd><dt>#dowork</dt><dd>Coined by Rob Dyrdek and his personal body guard Christopher "Big Black" Boykins, "Do Work" works as a self motivator, to motivating your friends.</dd><dt>Do It Live</dt><dd>I'll let Bill O'Reilly <a title="We'll Do It Live" href="https://www.youtube.com/watch?v=O_HyZ5aW76c">explain</a> this one.</dd></dl>
<h2>Unordered Lists (Nested)</h2>
<ul>
<li>List item one
<ul>
<li>List item one
<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ul>
</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ul>
</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ul>
<h2>Ordered List (Nested)</h2>
<ol>
<li>List item one
<ol>
<li>List item one
<ol>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ol>
</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ol>
</li>
<li>List item two</li>
<li>List item three</li>
<li>List item four</li>
</ol>
<h2>HTML Tags</h2>
<p>
These supported tags come from the WordPress.com code <a title="Code" href="http://en.support.wordpress.com/code/">FAQ</a>.
</p>
<p>
<strong>Address Tag</strong><br/></p>
<address>1 Infinite Loop
Cupertino, CA 95014
United States</address>
<p>
<strong>Anchor Tag (aka. Link)</strong><br/>
This is an example of a <a title="Apple" href="http://apple.com">link</a>.<br/>
<strong>Abbreviation Tag</strong><br/>
The abbreviation <abbr title="Seriously">srsly</abbr> stands for "seriously".<br/>
<strong>Acronym Tag (<em>deprecated in HTML5</em>)</strong><br/>
The acronym <acronym title="For The Win">ftw</acronym> stands for "for the win".<br/>
<strong>Big Tag <strong>(<em>deprecated in HTML5</em>)</strong></strong><br/>
These tests are a <big>big</big> deal, but this tag is no longer supported in HTML5.<br/>
<strong>Cite Tag</strong><br/>
"Code is poetry." --<cite>Automattic</cite><br/>
<strong>Code Tag</strong><br/>
You will learn later on in these tests that <code>word-wrap: break-word;</code> will be your best friend.<br/>
<strong>Delete Tag</strong><br/>
This tag will let you <del>strikeout text</del>, but this tag is no longer supported in HTML5 (use the <code><strike></code> instead).<br/>
<strong>Emphasize Tag</strong><br/>
The emphasize tag should <em>italicize</em> text.<br/>
<strong>Insert Tag</strong><br/>
This tag should denote <ins>inserted</ins> text.<br/>
<strong>Keyboard Tag</strong><br/>
This scarsly known tag emulates <kbd>keyboard text</kbd>, which is usually styled like the <code><code></code> tag.<br/>
<strong>Preformatted Tag</strong><br/>
This tag styles large blocks of code.</p>
<pre>.post-title {
margin: 0 0 5px;
font-weight: bold;
font-size: 38px;
line-height: 1.2;
and here's a line of some really, really, really, really long text, just to see how the PRE tag handles it and to find out how it overflows;
}</pre>
<p>
<strong>Quote Tag</strong><br/>
<q>Developers, developers, developers...</q> --Steve Ballmer<br/>
<strong>Strike Tag <strong>(<em>deprecated in HTML5</em>)</strong></strong><br/>
This tag shows <span style="text-decoration:line-through;">strike-through text</span><br/>
<strong>Strong Tag</strong><br/>
This tag shows <strong>bold<strong> text.</strong></strong><br/>
<strong>Subscript Tag</strong><br/>
Getting our science styling on with H<sub>2</sub>O, which should push the "2" down.<br/>
<strong>Superscript Tag</strong><br/>
Still sticking with science and Isaac Newton's E = MC<sup>2</sup>, which should lift the 2 up.<br/>
<strong>Teletype Tag <strong>(<em>deprecated in HTML5</em>)</strong></strong><br/>
This rarely used tag emulates <tt>teletype text</tt>, which is usually styled like the <code><code></code> tag.<br/>
<strong>Variable Tag</strong><br/>
This allows you to denote <var>variables</var>.
</p>
<h1 class="mtl">Forms and form validation using Abide</h1>
<form data-abide novalidate>
<div data-abide-error class="alert callout" style="display: none;">
<p><i class="fi-alert"></i> There are some errors in your form.</p>
</div>
<div class="grid-x grid-padding-x">
<div class="small-12 cell">
<label>Number Required
<input type="text" placeholder="1234" aria-describedby="exampleHelpText" required pattern="number">
<span class="form-error">
Yo, you had better fill this out, it's required.
</span>
</label>
<p class="help-text" id="exampleHelpText">Here's how you use this input field!</p>
</div>
<div class="small-12 cell">
<label>Nothing Required!
<input type="text" placeholder="Use me, or don't" aria-describedby="exampleHelpTex" data-abide-ignore>
</label>
<p class="help-text" id="exampleHelpTex">This input is ignored by Abide using `data-abide-ignore`</p>
</div>
<div class="small-12 cell">
<label>Password Required
<input type="password" id="password" placeholder="yeti4preZ" aria-describedby="exampleHelpText" required >
<span class="form-error">
I'm required!
</span>
</label>
<p class="help-text" id="exampleHelpText">Enter a password please.</p>
</div>
<div class="small-12 cell">
<label>Re-enter Password
<input type="password" placeholder="yeti4preZ" aria-describedby="exampleHelpText2" required pattern="alpha_numeric" data-equalto="password">
<span class="form-error">
Hey, passwords are supposed to match!
</span>
</label>
<p class="help-text" id="exampleHelpText2">This field is using the `data-equalto="password"` attribute, causing it to match the password field above.</p>
</div>
</div>
<div class="grid-x grid-padding-x">
<div class="medium-6 cell">
<label>URL Pattern, not required, but throws error if it doesn't match the Regular Expression for a valid URL.
<input type="text" placeholder="http://foundation.zurb.com" pattern="url">
</label>
</div>
<div class="medium-6 cell">
<label>European Cars, Choose One, it can't be the blank option.
<select id="select" required>
<option value=""></option>
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
</label>
</div>
</div>
<div class="grid-x grid-padding-x">
<fieldset class="large-6 cell">
<legend>Choose Your Favorite, and this is required, so you have to pick one.</legend>
<input type="radio" name="pokemon" value="Red" id="pokemonRed"><label for="pokemonRed">Red</label>
<input type="radio" name="pokemon" value="Blue" id="pokemonBlue" required><label for="pokemonBlue">Blue</label>
<input type="radio" name="pokemon" value="Yellow" id="pokemonYellow"><label for="pokemonYellow">Yellow</label>
</fieldset>
<fieldset class="large-6 cell">
<legend>Choose Your Favorite - not required, you can leave this one blank.</legend>
<input type="radio" name="pockets" value="Red" id="pocketsRed"><label for="pocketsRed">Red</label>
<input type="radio" name="pockets" value="Blue" id="pocketsBlue"><label for="pocketsBlue">Blue</label>
<input type="radio" name="pockets" value="Yellow" id="pocketsYellow"><label for="pocketsYellow">Yellow</label>
</fieldset>
<fieldset class="large-6 cell">
<legend>Check these out</legend>
<input id="checkbox1" type="checkbox"><label for="checkbox1">Checkbox 1</label>
<input id="checkbox2" type="checkbox" required><label for="checkbox2">Checkbox 2</label>
<input id="checkbox3" type="checkbox"><label for="checkbox3">Checkbox 3</label>
</fieldset>
</div>
<div class="grid-x grid-padding-x">
<fieldset class="large-6 cell">
<button class="button" type="submit" value="Submit">Submit</button>
</fieldset>
<fieldset class="large-6 cell">
<button class="button" type="reset" value="Reset">Reset</button>
</fieldset>
</div>
</form>