forked from codingdesigner/Survival-Kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elements-common.html
491 lines (436 loc) · 22.3 KB
/
elements-common.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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="no-js ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Common HTML Elements</title>
<!-- Mobile viewport optimized: j.mp/bplateviewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Place favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!-- CSS : implied media="all" -->
<link rel="stylesheet" href="css/style.css?v=2">
<!-- Uncomment if you are specifically targeting less enabled mobile browsers
<link rel="stylesheet" media="handheld" href="css/handheld.css?v=2"> -->
<!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
<script src="js/libs/modernizr-2.0.min.js"></script>
<!-- Also put Selectivizr at the top -->
<script type="text/javascript" src="js/libs/mootools-core-1.3.1-full-compat-yc.js"></script>
<!--[if (gte IE 6)&(lte IE 8)]>
<script type="text/javascript" src="js/libs/selectivizr.js"></script>
<noscript><link rel="stylesheet" href="css/selectivizr.css" /></noscript>
<![endif]-->
</head>
<body lang="en" class="markup-elements">
<div id="page">
<header>
<hgroup>
<h1>The Coding Designer's Survival Kit</h1>
<h2>Common Markup</h2>
</hgroup>
</header>
<div id="main" role="main">
<section id="common" class="element-group">
<h1 class="section-title">Common Elements</h1>
<article id="headers" class="element">
<h2 class="element-title">Headers</h2>
<div class="markup">
<h1>Header 1</h1>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>
</div>
<p>Headers with a following paragraph</p>
<div class="markup">
<h1>Header 1</h1>
<p>How vain and foolish, then, thought I, for timid untravelled man to try to comprehend aright this wondrous whale, by merely poring over his dead attenuated skeleton, stretched in this peaceful wood. No. Only in the heart of quickest perils; only when within the eddyings of his angry flukes; only on the profound unbounded sea, can the fully invested whale be truly and livingly found out.</p>
<h2>Header 2</h2>
<p>Within Pellucidar one time is as good as another. There were no nights to mask our attempted escape. All must be done in broad day-light—all but the work I had to do in the apartment beneath the building. So we determined to put our plan to an immediate test lest the Mahars who made it possible should awake before I reached them; but we were doomed to disappointment, for no sooner had we reached the main floor of the building on our way to the pits beneath, than we encountered hurrying bands of slaves being hastened under strong Sagoth guard out of the edifice to the avenue beyond.</p>
<h3>Header 3</h3>
<p>Within Pellucidar one time is as good as another. There were no nights to mask our attempted escape. All must be done in broad day-light—all but the work I had to do in the apartment beneath the building. So we determined to put our plan to an immediate test lest the Mahars who made it possible should awake before I reached them; but we were doomed to disappointment, for no sooner had we reached the main floor of the building on our way to the pits beneath, than we encountered hurrying bands of slaves being hastened under strong Sagoth guard out of the edifice to the avenue beyond.</p>
<h4>Header 4</h4>
<p>People were watching for Martians here from the church towers. My brother, very luckily for him as it chanced, preferred to push on at once to the coast rather than wait for food, although all three of them were very hungry. By midday they passed through Tillingham, which, strangely enough, seemed to be quite silent and deserted, save for a few furtive plunderers hunting for food. Near Tillingham they suddenly came in sight of the sea, and the most amazing crowd of shipping of all sorts that it is possible to imagine.</p>
<h5>Header 5</h5>
<p>"The unforeseen does not exist," quietly replied Phileas Fogg.</p>
<h6>Header 6</h6>
<p>Another man now joined the group, and, after making his formal greetings to his ruler, said:</p>
</div>
</article>
<article id="characters" class="element">
<h2 class="element-title">Characters</h2>
<div class="markup">
<p>0 1 2 3 4 5 6 7 8 9</p>
<p>+ - – — _ = ? ! ~ ( ) [ ] { } * ^ | "" \'\' `´ / \ & @ £ $ § ½ % ¨ ; : . ,</p>
<p>a b c d e f g h i j k l m n o p q r s t u v w x y z ö ä å</p>
<p>A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Ö Ä Å</p>
<h3>UTF-8 test</h3>
<p>Ä, ä, Ö, ö, Ü, ü, ß</p>
<p>Š Ť Ž Ľ Č Ě Ď Ň Ř Ů Ĺ</p>
<p>ХЦЧШЩЬЫЪЭЮЯ</p>
</div>
</article>
<article id="paragraphs" class="element">
<h2 class="element-title">Paragraphs</h2>
<div class="markup">
<p>I leave a <em>white and turbid</em> wake; pale waters, paler cheeks, where'er I sail. The envious billows sidelong swell to whelm my track; let them; but first I pass.</p>
<p>Yonder, by ever-brimming goblet's rim, <strong>the warm waves</strong> blush like wine. The gold brow plumbs the blue. The diver sun—slow dived from noon—goes down; my soul mounts up! she wearies with her endless hill. Is, then, the crown too heavy that I wear? this Iron Crown of Lombardy. Yet is it bright with many a gem; I the wearer, see not its far flashings; but darkly feel that I wear that, that <a href="">dazzlingly confounds</a>. 'Tis iron—that I know—not gold. 'Tis split, too—that I feel; the jagged edge galls me so, my brain seems to beat against the solid metal; aye, steel skull, mine; the sort that needs no helmet in the most brain-battering fight!</p>
<p>Dry heat upon my brow? Oh! time was, when as the sunrise nobly spurred me, so the sunset soothed. No more. This lovely light, it lights not me; all loveliness is anguish to me, since I can ne'er enjoy. Gifted with the high perception, I lack the low, enjoying power; damned, most subtly and most malignantly! damned in the midst of Paradise! Good night—good night! (WAVING HIS HAND, HE MOVES FROM THE WINDOW.)</p>
</div>
</article>
<article id="links" class="element">
<h2 class="element-title">Links</h2>
<div class="markup">
<a href="#">Local link</a><br>
<a href="http://www.google.com" class="external">External link</a><br>
<a href="https://www.google.com">External link with encrypted connection</a><br>
<a href="mailto:[email protected]">E-mail link</a>
</div>
</article>
<article id="lists" class="element">
<h2 class="element-title">Lists</h2>
<div class="markup">
<h3>Unordered List</h3>
<ul>
<li>Apple</li>
<li>Pear</li>
<li>Banana</li>
<li>Orange</li>
<li>Carrot</li>
</ul>
</div>
<div class="markup">
<h3>Ordered List</h3>
<ol>
<li>First</li>
<li>Second</li>
<li>Third</li>
<li>Fourth</li>
</ol>
</div>
<div class="markup">
<h3>Definition List</h3>
<dl>
<dt>Definition List Title</dt>
<dd>This is a definition list division.</dd>
<dt>Inkscape</dt>
<dd>Open Source vector graphics editor</dd>
<dt>SVG</dt>
<dd>Scalable Vector Graphics</dd>
<dd>W3C standard</dd>
<dt>GIMP</dt>
<dd>GNU Image Manipulation Program</dd>
<dt>Drupal</dt>
<dd>Content Management System</dd>
</dl>
</div>
<div class="markup">
<h3>Nested lists</h3>
<ol>
<li>one, two
<ol>
<li>buckle my shoe</li>
</ol>
</li>
<li>three, four
<ol>
<li>knock at the door</li>
</ol>
</li>
<li>Five, six
<ol>
<li>pick up sticks</li>
</ol>
</li>
<li>Seven, eight, lay them straight
<ol>
<li>Nine, ten, a big fat hen</li>
<li>Eleven, twelve, dig and delve</li>
<li>Thirteen, fourteen, maids a’courting</li>
<li>Fifteen, sixteen, maids in the kitchen</li>
<li>Seventeen, eighteen, maids a’waiting</li>
<li>Nineteen, twenty, my platter’s empty …</li>
</ol>
</li>
</ol>
</div>
</article>
<article id="pre" class="element">
<h2 class="element-title"><a href="http://developers.whatwg.org/grouping-content.html#the-pre-element">pre</a></h2>
<div class="markup">
<p>This is the <code>Panel</code> constructor:</p>
<pre><code>function Panel(element, canClose, closeHandler) {
this.element = element;
this.canClose = canClose;
this.closeHandler = function () { if (closeHandler) closeHandler() };
}</code></pre>
</div>
<div class="markup">
<pre>
######## ## ## ########
## ## ## ##
## ## ## ##
## ######### ######
## ## ## ##
## ## ## ##
## ## ## ########
###### ####### ######## #### ## ## ######
## ## ## ## ## ## ## ### ## ## ##
## ## ## ## ## ## #### ## ##
## ## ## ## ## ## ## ## ## ## ####
## ## ## ## ## ## ## #### ## ##
## ## ## ## ## ## ## ## ### ## ##
###### ####### ######## #### ## ## ######
######## ######## ###### #### ###### ## ## ######## ######## ## ######
## ## ## ## ## ## ## ## ### ## ## ## ## # ## ##
## ## ## ## ## ## #### ## ## ## ## ##
## ## ###### ###### ## ## #### ## ## ## ###### ######## ######
## ## ## ## ## ## ## ## #### ## ## ## ##
## ## ## ## ## ## ## ## ## ### ## ## ## ## ##
######## ######## ###### #### ###### ## ## ######## ## ## ######
____ _ _ _ ___ _
/ ___| _ _ _ ____ _(_)_ ____ _| | | |/ (_) |_
\___ \| | | | '__\ \ / / \ \ / / _` | | | ' /| | __|
___) | |_| | | \ V /| |\ V / (_| | | | . \| | |_
|____/ \__,_|_| \_/ |_| \_/ \__,_|_| |_|\_\_|\__|
</pre>
</div>
</article>
</section>
<section id="phrase-elements" class="element-group">
<h1 class="section-title">Phrase Elements</h1>
<article id="em" class="element">
<h2 class="element-title">em</h2>
<div class="markup">
<p>Element used to <em>put emphasis on certain information</em>. Most browsers display emphases text in italics by default.<br>
Sample: <em>This is emphasized text</em>.</p>
</div>
</article>
<article id="strong" class="element">
<h2 class="element-title">strong</h2>
<div class="markup">
<p>This element stands for "stronger emphasis" and is used for marking more important text.<br>
Sample: <strong>This is text with stronger emphasis</strong></p>
</div>
</article>
<article id="cite" class="element">
<h2 class="element-title">cite</h2>
<div class="markup">
<p>According to <cite>W3C specification</cite>, we use <code>cite</code> element to define source of a quotation or reference.<br>
Sample: <cite>This is quotation source</cite></p>
</div>
</article>
<article id="dfn" class="element">
<h2 class="element-title">dfn</h2>
<div class="markup">
<p>Element used to markup inline definition of a single term.<br>
Sample: <dfn>This is definition</dfn></p>
</div>
</article>
<article id="code" class="element">
<h2 class="element-title">code</h2>
<div class="markup">
<p>This element informs the browser that it contains a computer code, such as XHTML markup.<br>
Sample: <code>document.write("Hello world");</code></p>
</div>
</article>
<article id="samp" class="element">
<h2 class="element-title">samp</h2>
<div class="markup">
<p>Defines computer output data, for example we can use it to markup error messages. <br>
Sample: <samp>Error: no such file or directory</samp></p>
</div>
</article>
<article id="kbd" class="element">
<h2 class="element-title">kbd</h2>
<div class="markup">
<p>Means information that should be entered by the user.<br>
Sample: press <kbd>Alt + F4</kbd> to close this window. <kbd>ESC</kbd></p>
</div>
</article>
<article id="var" class="element">
<h2 class="element-title">var</h2>
<div class="markup">
<p>Means variables used in computer programs or scripts.<br>
Sample: <var>counter</var></p>
</div>
</article>
<article id="abbr" class="element">
<h2 class="element-title">abbr</h2>
<div class="markup">
<p>Abbreviation / a shortened form of a word or phrase.<br>
Sample: <abbr title="doctor">dr</abbr></p>
</div>
</article>
<article id="acronym" class="element">
<h2 class="element-title">acronym</h2>
<div class="markup">
<p>Acronym / a word formed from the initial letters of other words.<br>
Sample acronyms: <acronym title="eXtensible HyperText Markup Language">XHTML</acronym></p>
</div>
</article>
<article id="q" class="element">
<h2 class="element-title">q</h2>
<div class="markup">
<p>Inline quotation.<br>
Sample: <q>This is sample quotation</q></p>
</div>
</article>
<article id="others" class="element">
<h2 class="element-title">Other Elements</h2>
<div class="markup">
<h3>Subscript and superscript samples</h3>
<p> H<sub>2</sub>O,<br>
E = mc<sup>2</sup>,<br>
The 14<sup>th</sup> of September </p>
<h3>Insertion and deletion samples</h3>
<p> <ins datetime="2009-07-12T08:15:30+02:00" title="Added new information according to suggestions">This information was just added.</ins><br>
<del>Whilte this information is no longer valid.</del> </p>
<h3>Presentational elements</h3>
<p> <b>Bold text</b><br>
<i>Italic text</i><br>
<tt>Typewriter text</tt><br>
<big>Big</big><br>
<small>Small</small><br>
Horizontal rule:</p>
<hr>
</div>
</article>
</section>
<section id="simple-patterns" class="element-group">
<h1 class="section-title">Common Patterns</h1>
<article id="inline-images" class="element">
<h2 class="element-title">Inline Images</h2>
<div class="markup">
<p><img src="http://dummyimage.com/240x320/000/fff&text=Left+Image" class="left" alt="image floated left" />Who would think, then, that such fine ladies and gentlemen should regale themselves with an essence found in the inglorious bowels of a sick whale! Yet so it is. By some, ambergris is supposed to be the cause, and by others the effect, of the dyspepsia in the whale. How to cure such a dyspepsia it were hard to say, unless by administering three or four boat loads of Brandreth's pills, and then running out of harm's way, as laborers do in blasting rocks.</p>
<p><img src="http://dummyimage.com/240x320/000/fff&text=Right+Image" class="right" alt="image floated right" />I have forgotten to say that there were found in this ambergris, certain hard, round, bony plates, which at first Stubb thought might be sailors' trowsers buttons; but it afterwards turned out that they were nothing more than pieces of small squid bones embalmed in that manner.</p>
</div>
</article>
<article id="tables" class="element">
<h2 class="element-title">Tables</h2>
<div class="markup">
<table>
<caption>
Table title goes here
</caption>
<thead>
<tr>
<th>Mauris</th>
<th>Tempor</th>
<th>Praesent lacus nulla</th>
<th>Quis</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>Mauris</td>
<td>23.000</td>
<td>Suspendisse viverra</td>
<td>Yes</td>
</tr>
<tr class="even">
<td>Trupis</td>
<td>1.000</td>
<td>Placerat tortor aesent semper</td>
<td>No</td>
</tr>
<tr class="odd">
<td>Sagittis</td>
<td>122.000</td>
<td>Neque vel condimentum</td>
<td>No</td>
</tr>
<tr class="even">
<td>Libero</td>
<td>500</td>
<td>Hendrerit, lectus elit pretium</td>
<td>Yes</td>
</tr>
<tr class="odd">
<td>Tristique</td>
<td>100.000</td>
<td>Ligula nec consequat</td>
<td>Yes</td>
</tr>
<tr class="even">
<td>Id Neque</td>
<td>600.000</td>
<td>Etiam sodales orci nec</td>
<td>No</td>
</tr>
</tbody>
</table>
</div>
</article>
<article id="forms" class="element">
<h2 class="element-title">Forms</h2>
<div class="markup">
<form id="form" method="post" accept-charset="UTF-8" action="/action">
<fieldset>
<legend>Fieldset with legend</legend>
<div>
<label>Label for Radios</label>
<input name="radio" type="radio" value="" /><input name="Radio" type="radio" value="" /><input name="Radio" type="radio" value="" />
</div>
<div>
<label>Label for Checkboxes</label>
<input name="checkboxes" type="checkbox" value="" /><input name="checkboxes" type="checkbox" value="" /><input name="checkboxes" type="checkbox" value="" />
</div>
<div>
<label>Label for Textfield</label>
<input id="textfield" type="text" value="input" size="50" maxlength="12"/>
</div>
<div>
<label>label for Textarea</label>
<textarea id="text" rows="5" cols="50"></textarea>
</div>
<div>
<label>label for Filefield</label>
<input name="files" type="file" size="50" />
</div>
<div>
<input name="button" type="button" value="Button" />
</div>
</fieldset>
</form>
</div>
</article>
</section>
</div>
<footer>
</footer>
</div> <!--! end of #container -->
<!-- JavaScript at the bottom for fast page loading -->
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/libs/jquery-1.5.2.min.js"%3E%3C/script%3E'))</script>
<!-- Formalize (http://formalize.me) -->
<script src="js/libs/formalize/jquery.formalize.js"></script>
<!-- Lettering.js -->
<!-- <script src="js/libs/jquery.lettering.js"></script> -->
<!-- show source -->
<script src="js/kit/jquery.kit-source.js"></script>
<!-- scripts concatenated and minified via ant build script-->
<script src="js/script.js"></script>
<!-- end concatenated and minified scripts-->
<!--[if lt IE 7 ]>
<script src="js/libs/dd_belatedpng.js"></script>
<script>DD_belatedPNG.fix('img, .png_bg'); // Fix any <img> or .png_bg bg-images. Also, please read goo.gl/mZiyb </script>
<![endif]-->
<!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>