This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
828 lines (753 loc) · 35.8 KB
/
index.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
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="dist/css/vpyeu.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
<title>HTML test page</title>
<body>
<noscript>
<div class="warning do-not-print">
<p><strong>Notice:</strong> While JavaScript is not essential
for this website, your interaction with the content will be
limited. Please turn JavaSccript on for the full
experience.
</div>
</noscript>
<!--[if lt IE 11]>
<div class="warning do-not-print">
<p><strong>Notice:</strong> Your browser
is <em>ancient</em>. Upgrade to a different browser to
experience a better web.
</div>
<![endif]-->
<header role="banner" id="top">
<div class="container">
<a href="#top" class="logo">Aprigi</a>
<p class="meta">This is a meta description. It will be used for slogan.</p>
<nav role="navigation">
<ul class="navigation">
<li><a href="#typography">Typography</a>
<li><a href="#block">Block</a>
<li><a href="#lists">Lists</a>
<li><a href="#markup">Markup</a>
<li><a href="#links">Links</a>
<li><a href="#forms">Forms</a>
<li><a href="#tables">Tables</a>
<li><a href="#charset">Charset</a>
<li><a href="#highlight">Highlight</a>
</ul>
</nav>
</div>
</header>
<div class="breadcrumb">
<div class="container">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Library</a></li>
<li class="active">Data</li>
</ul>
</div>
</div>
<main>
<div class="container">
<h1 class="page-header">Testing display of HTML elements</h1>
<h1 id="typography" class="anchor">Typography</h1>
<h1>This is 1st level heading</h1>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Phasellus ultricies eget metus vel pharetra. Maecenas sit
amet magna id libero congue venenatis in sit amet neque. Integer
vehicula tellus quis dolor dapibus viverra. Nulla
facilisi. Morbi fermentum hendrerit velit vitae
placerat. Phasellus sed mattis felis. Fusce efficitur pretium
tincidunt. Donec facilisis sem vitae lorem dapibus
placerat. Curabitur a gravida magna. Phasellus vitae aliquam
velit.
<p>Vestibulum eget ipsum maximus, mattis nulla id, rhoncus
est. Proin finibus scelerisque lacus, non consectetur lacus
venenatis fringilla. Vestibulum hendrerit et diam ac
dignissim. Morbi feugiat ligula neque, ac luctus massa bibendum
id. Sed mollis pulvinar cursus. Quisque congue sit amet mauris
id venenatis. Morbi sem turpis, luctus ac leo ac, condimentum
tristique turpis. Morbi imperdiet diam at tortor ultrices, et
maximus velit elementum. Aliquam aliquet arcu vel arcu rhoncus
pulvinar.
<h2>This is 2nd level heading</h2>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Phasellus ultricies eget metus vel pharetra. Maecenas sit
amet magna id libero congue venenatis in sit amet neque. Integer
vehicula tellus quis dolor dapibus viverra. Nulla
facilisi. Morbi fermentum hendrerit velit vitae
placerat. Phasellus sed mattis felis. Fusce efficitur pretium
tincidunt. Donec facilisis sem vitae lorem dapibus
placerat. Curabitur a gravida magna. Phasellus vitae aliquam
velit.
<p>Vestibulum eget ipsum maximus, mattis nulla id, rhoncus
est. Proin finibus scelerisque lacus, non consectetur lacus
venenatis fringilla. Vestibulum hendrerit et diam ac
dignissim. Morbi feugiat ligula neque, ac luctus massa bibendum
id. Sed mollis pulvinar cursus. Quisque congue sit amet mauris
id venenatis. Morbi sem turpis, luctus ac leo ac, condimentum
tristique turpis. Morbi imperdiet diam at tortor ultrices, et
maximus velit elementum. Aliquam aliquet arcu vel arcu rhoncus
pulvinar.
<h3>This is 3rd level heading</h3>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Phasellus ultricies eget metus vel pharetra. Maecenas sit
amet magna id libero congue venenatis in sit amet neque. Integer
vehicula tellus quis dolor dapibus viverra. Nulla
facilisi. Morbi fermentum hendrerit velit vitae
placerat. Phasellus sed mattis felis. Fusce efficitur pretium
tincidunt. Donec facilisis sem vitae lorem dapibus
placerat. Curabitur a gravida magna. Phasellus vitae aliquam
velit.
<p>Vestibulum eget ipsum maximus, mattis nulla id, rhoncus
est. Proin finibus scelerisque lacus, non consectetur lacus
venenatis fringilla. Vestibulum hendrerit et diam ac
dignissim. Morbi feugiat ligula neque, ac luctus massa bibendum
id. Sed mollis pulvinar cursus. Quisque congue sit amet mauris
id venenatis. Morbi sem turpis, luctus ac leo ac, condimentum
tristique turpis. Morbi imperdiet diam at tortor ultrices, et
maximus velit elementum. Aliquam aliquet arcu vel arcu rhoncus
pulvinar.
<h4>This is 4th level heading</h4>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Phasellus ultricies eget metus vel pharetra. Maecenas sit
amet magna id libero congue venenatis in sit amet neque. Integer
vehicula tellus quis dolor dapibus viverra. Nulla
facilisi. Morbi fermentum hendrerit velit vitae
placerat. Phasellus sed mattis felis. Fusce efficitur pretium
tincidunt. Donec facilisis sem vitae lorem dapibus
placerat. Curabitur a gravida magna. Phasellus vitae aliquam
velit.
<p>Vestibulum eget ipsum maximus, mattis nulla id, rhoncus
est. Proin finibus scelerisque lacus, non consectetur lacus
venenatis fringilla. Vestibulum hendrerit et diam ac
dignissim. Morbi feugiat ligula neque, ac luctus massa bibendum
id. Sed mollis pulvinar cursus. Quisque congue sit amet mauris
id venenatis. Morbi sem turpis, luctus ac leo ac, condimentum
tristique turpis. Morbi imperdiet diam at tortor ultrices, et
maximus velit elementum. Aliquam aliquet arcu vel arcu rhoncus
pulvinar.
<h5>This is 5th level heading</h5>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Phasellus ultricies eget metus vel pharetra. Maecenas sit
amet magna id libero congue venenatis in sit amet neque. Integer
vehicula tellus quis dolor dapibus viverra. Nulla
facilisi. Morbi fermentum hendrerit velit vitae
placerat. Phasellus sed mattis felis. Fusce efficitur pretium
tincidunt. Donec facilisis sem vitae lorem dapibus
placerat. Curabitur a gravida magna. Phasellus vitae aliquam
velit.
<p>Vestibulum eget ipsum maximus, mattis nulla id, rhoncus
est. Proin finibus scelerisque lacus, non consectetur lacus
venenatis fringilla. Vestibulum hendrerit et diam ac
dignissim. Morbi feugiat ligula neque, ac luctus massa bibendum
id. Sed mollis pulvinar cursus. Quisque congue sit amet mauris
id venenatis. Morbi sem turpis, luctus ac leo ac, condimentum
tristique turpis. Morbi imperdiet diam at tortor ultrices, et
maximus velit elementum. Aliquam aliquet arcu vel arcu rhoncus
pulvinar.
<h6>This is 6th level heading</h6>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Phasellus ultricies eget metus vel pharetra. Maecenas sit
amet magna id libero congue venenatis in sit amet neque. Integer
vehicula tellus quis dolor dapibus viverra. Nulla
facilisi. Morbi fermentum hendrerit velit vitae
placerat. Phasellus sed mattis felis. Fusce efficitur pretium
tincidunt. Donec facilisis sem vitae lorem dapibus
placerat. Curabitur a gravida magna. Phasellus vitae aliquam
velit.
<p>Vestibulum eget ipsum maximus, mattis nulla id, rhoncus
est. Proin finibus scelerisque lacus, non consectetur lacus
venenatis fringilla. Vestibulum hendrerit et diam ac
dignissim. Morbi feugiat ligula neque, ac luctus massa bibendum
id. Sed mollis pulvinar cursus. Quisque congue sit amet mauris
id venenatis. Morbi sem turpis, luctus ac leo ac, condimentum
tristique turpis. Morbi imperdiet diam at tortor ultrices, et
maximus velit elementum. Aliquam aliquet arcu vel arcu rhoncus
pulvinar.
<h1 id="block" class="anchor">Basic block level elements</h1>
<p>This is a normal paragraph (<code>p</code> element). To add
some length to it, let us mention that this page was primarily
written for testing the effect of <strong>user style
sheets</strong>. You can use it for various other purposes as
well, like just checking how your browser displays various HTML
elements by default. It can also be useful when testing
conversions from HTML format to other formats, since some
elements can go wrong then.
<p>This is another paragraph. I think it needs to be added that
the set of elements tested is not exhaustive in any sense. I
have selected those elements for which it can make sense to
write user style sheet rules, in my opionion.
<div>This is a <code>div</code> element. Authors may use such
elements instead of paragraph markup for various reasons. (End
of <code>div</code>.)</div>
<blockquote>
<p>This is a block quotation containing a single
paragraph. Well, not quite, since this is not <em>really</em>
quoted text, but I hope you understand the point. After all,
this page does not use HTML markup very normally
anyway.
</blockquote>
<p>The following contains address information about the author, in
an <code>address</code> element.
<address>
<a href="#!">Anh Tranngoc</a>,
<a href="mailto:tran.ngoc.anh@framgia.com">tran.ngoc.anh@framgia.com</A><br>
Hanoi, Vietnam
</address>
<h1 id="lists" class="anchor">Lists</h1>
<p>This is a paragraph before an <strong>unnumbered</strong> list
(<code>ul</code>). Note that the spacing between a paragraph and
a list before or after that is hard to tune in a user style
sheet. You can't guess which paragraphs are logically related to
a list, e.g. as a "list header".
<ul>
<li> One.
<li> Two.
<li> Three. Well, probably this list item should be longer. Note
that for short items lists look better if they are compactly
presented, whereas for long items, it would be better to have
more vertical spacing between items.
<li> Four. This is the last item in this list. Let us terminate
the list now without making any more fuss about it.
</ul>
<p>The following is a <code>menu</code> list:</p>
<menu>
<li> One.
<li> Two.
<li> Three. Well, probably this list item should be longer so
that it will probably wrap to the next line in rendering.
</menu>
<p>The following is a <code>dir</code> list:
<dir>
<li> One.
<li> Two.
<li> Three. Well, probably this list item should be longer so
that it will probably wrap to the next line in rendering.
</dir>
<p>This is a paragraph before a <strong>numbered</strong> list
(<code>ol</code>). Note that the spacing between a paragraph and
a list before or after that is hard to tune in a user style
sheet. You can't guess which paragraphs are logically related to
a list, e.g. as a "list header".
<ol>
<li> One.
<li> Two.
<li> Three. Well, probably this list item should be longer. Note
that if items are short, lists look better if they are
compactly presented, whereas for long items, it would be
better to have more vertical spacing between items.
<li> Four. This is the last item in this list. Let us terminate
the list now without making any more fuss about it.
</ol>
<p>This is a paragraph before a <strong>definition</strong> list
(<code>dl</code>). In principle, such a list should consist
of <em>terms</em> and associated definitions. But many authors
use <code>dl</code> elements for fancy "layout" things. Usually
the effect is not <em>too</em> bad, if you design user style
sheet rules for <code>dl</code> which are suitable for real
definition lists.
<dl>
<dt> recursion
<dd> see recursion
<dt> recursion, indirect
<dd> see indirect recursion
<dt> indirect recursion
<dd> see recursion, indirect
<dt> term
<dd> a word or other expression taken into specific use in a
well-defined meaning, which is often defined rather
rigorously, even formally, and may differ quite a lot from
an everyday meaning
</dl>
<h1 id="markup" class="anchor">Text-level markup</h1>
<ul>
<li>
<abbr title="Cascading Style Sheets">CSS</abbr> (an
abbreviation; <code>abbr</code> markup used)
<li>
<acronym title="radio detecting and ranging">radar</acronym>
(an acronym; <code>acronym</code> markup used)
<li>
<b>bolded</b> (<code>b</code> markup used - just bolding
with unspecified semantics)
<li>
<big>big thing</big> (<code>big</code> markup used)
<li>
<font size=6>large size</font> (<code>font size=6</code>
markup used)
<li>
<font face=Courier>Courier font</font> (<code>font
face=Courier</code> markup used)
<li>
<font color=red>red text</font> (<code>font
color=red</code> markup used)
<li>
<cite>Origin of Species</cite> (a book title;
<code>cite</code> markup used)
<li>
<code>a[i] = b[i] + c[i);</code> (computer
code; <code>code</code> markup used)
<li>
here we have some <del>deleted</del> text
(<code>del</code> markup used)
<li>
an <dfn>octet</dfn> is an entity consisting of eight bits
(<code>dfn</code> markup used for the term being defined)
<li>
this is <em>very</em> simple (<code>em</code> markup used
for emphasizing a word)
<li>
<i lang="la">Homo sapiens</i> (should appear in
italics; <code>i</code> markup used)
<li>
here we have some <ins>inserted</ins> text
(<code>ins</code> markup used)
<li>
type <kbd>yes</kbd> when prompted for an answer
(<code>kbd</code> markup used for text indicating keyboard
input)
<li>
<q>Hello!</q> (<code>q</code> markup used for quotation)
<li>
He said: <q>She said <q>Hello!</q></q> (a quotation
inside a quotation)
<li>
you may get the message <samp>Core dumped</samp> at times
(<code>samp</code> markup used for sample output)
<li>
<small>this is not that important</small>
(<code>small</code> markup used)
<li>
<strike>overstruck</strike> (<code>strike</code> markup
used; note:
<code>s</code> is a nonstandard synonym for <code>strike</code>)
<li>
<strong>this is strong text</strong>
(<code>strong</code> markup used)
<li>
<mark>this is highlighted text</mark>
(<code>mark</code> markup used)
<li>
In order to test how subscripts and superscripts
(<code>sub</code> and
<code>sup</code> markup) work inside running text, we need
some dummy text around constructs like x<sub>1</sub> and
H<sub>2</sub>O (where subscripts occur). So here is some
fill so that you will (hopefully) see whether and how badly
the subscripts and superscripts mess up vertical spacing
between lines. Now superscripts: M<sup>lle</sup>,
1<sup>st</sup>, and then some mathematical notations:
e<sup>x</sup>, sin<sup>2</sup> <i>x</i>, and some nested
superscripts (exponents) too: e<sup>x<sup>2</sup></sup> and
f(x)<sup>g(x)<sup>a+b+c</sup></sup> (where 2 and a+b+c
should appear as exponents of exponents).
<li>
<tt>text in monospace font</tt> (<code>tt</code> markup
used)
<li>
<u>underlined</u> text (<code>u</code> markup used)
<li>
the command <code>cat</code> <var>filename</var> displays
the file specified by the <var>filename</var>
(<code>var</code> markup used to indicate a word as a
variable).
</ul>
<p>Some of the elements tested above are typically displayed in a
monospace font, often using the <em>same</em> presentation for
all of them. This tests whether that is the case on your
browser:
<ul>
<li>
<code>This is sample text inside code markup</code>
<li>
<kbd>This is sample text inside kbd markup</kbd>
<li>
<samp>This is sample text inside samp markup</samp>
<li>
<tt>This is sample text inside tt markup</tt>
</ul>
<h1 id="links" class="anchor">Links</h1>
<ul>
<li>
<a href="./index.html">main page</a>
<li>
<a href="http://www.unicode.org/versions/Unicode4.0.0/ch06.pdf"
title="Writing Systems and Punctuation">
Unicode Standard, chapter 6
</a>
</ul>
<p>This is a text paragraph that contains some inline
links. Generally, inline links (as opposite to e.g. links lists)
are problematic from the
<a href="http://www.useit.com">usability</a> perspective, but
they may have use as “incidental”, less relevant
links. See the document
<cite>
<a href="links.html">Links Want To Be Links</a>
</cite>.
<h1 id="forms" class="anchor">Forms</h1>
<h2>Form without any class</h2>
<form action="#">
<div>
<input type="hidden" name="hidden-field" value="42">
This is a form containing various fields (with some initial
values (defaults) set, so that you can see how input text
looks like without actually typing it):
</div>
<div>
<label>
Single-line text input field:
</label>
<input type="text" name="text" placeholder="This is placeholder">
</div>
<div>
<label>
Multi-line text input field (textarea):
</label>
<textarea name="textarea"
placeholder="This is placeholder for textarea"></textarea>
</div>
<div>
The following two radio buttons are inside
a <code>fieldset</code> element with
a <code>legend</code>:
</div>
<fieldset>
<legend>Radio button</legend>
<div>
<input id="radio-option-1" type="radio" name="radio" value="1">
<label for="radio-option-1">Radio option 1</label>
</div>
<div>
<input id="radio-option-2" type="radio" name="radio" value="2"
checked="checked">
<label for="radio-option-2">Radio button 2 (initially checked)</label>
</div>
</fieldset>
<fieldset>
<legend>Checkbox</legend>
<div>
<input id="checkbox-option-1" type="checkbox" name="checkbox">
<label for="checkbox-option-1">Checkbox option 1</label>
</div>
<div>
<input id="checkbox-option-2" type="checkbox" name="checkbox"
checked="checked">
<label for="checkbox-option-2">
Checkbox option 2 (initially checked)
</label>
</div>
</fieldset>
<fieldset>
<legend>HTML5 inputs</legend>
<div>
<label>Color input</label>
<input type="color" name="color">
</div>
<div>
<label>Range input</label>
<input type="range" name="range">
</div>
<div>
<label>Date input</label>
<input type="date" name="date" placeholder="Date input">
</div>
<div>
<label>Month input</label>
<input type="month" name="month" placeholder="Month input">
</div>
<div>
<label>Week input</label>
<input type="week" name="week" placeholder="Week input">
</div>
<div>
<label>Datetime input</label>
<input type="datetime" name="datetime" placeholder="Datetime input">
</div>
<div>
<label>Datetime-local input</label>
<input type="datetime-local" name="datetime-local"
placeholder="Datetime-local input">
</div>
<div>
<label>Tel input</label>
<input type="tel" name="tel"
placeholder="Tel input">
</div>
</fieldset>
<div>
<label>
A <code>select</code> element with <code>size="1"</code>
(dropdown box):
</label>
<select name="select">
<option>Option 1
<option selected>Option 2 (default)
<option>Option 3
</select>
</div>
<div>
<button type="submit" name="submit" class="button button-primary">
Primary submit
</button>
<button type="reset" name="reset" class="button button-secondary">
Reset
</button>
<button type="submit" name="foo" value="bar">
Default button
</button>
</div>
</form>
<h2>General form</h2>
<form method="post" action="" class="form-general">
<fieldset>
<input id="id_username" maxlength="30" name="username" type="text"
placeholder="Username">
<input id="id_email" name="email" type="email"
placeholder="Email address">
<input id="id_password1" name="password1" type="password"
placeholder="Password">
</fieldset>
<fieldset>
<select>
<option>Select example</option>
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</fieldset>
<fieldset>
<label>
<input type="checkbox" />
Receive newsletter updates
</label>
</fieldset>
<fieldset>
<button type="submit" class="button button-primary">Submit</button>
</fieldset>
</form>
<h2>Form input</h2>
<p>A form has only one input entry with <code>submit</code> inside.
<form class="form-input" action="#">
<input name="email" placeholder="Enter email" type="email">
<button type="submit">
<i class="fa fa-envelope-o"></i>
<span class="visuallyhidden">Subscribe</span>
</button>
</form>
<form action="#" class="form-input" role="search">
<input type="text" name="news-search" placeholder="Search">
<button type="submit">
<i class="fa fa-search"></i>
<span class="visuallyhidden">Search</span>
</button>
</form>
<p>Another example</p>
<form method="post" action="" class="form-input">
<div>
<label for="id_username">Username:</label>
<input id="id_username" maxlength="30" name="username" type="text"
placeholder="Enter username">
</div>
<div>
<label for="id_email">Email address:</label>
<input id="id_email" name="email" type="email"
placeholder="Enter your email">
</div>
<div>
<label for="id_password1">Password:</label>
<input id="id_password1" name="password1" type="password"
placeholder="Enter your password">
</div>
<div>
<label for="id_password2">Password (type again to catch typos):</label>
<input id="id_password2" name="password2" type="password"
placeholder="Enter your password again">
</div>
<p class="submit">
<input class="button button-primary" value="Register" type="submit">
</p>
</form>
<h1 id="tables" class="anchor">Tables</h1>
<p>The following table has a caption. The first row and the first
column contain table header cells (<code>th</code> elements)
only; other cells are data cells (<code>td</code> elements),
with <code>align="right"</code> attributes:
<TABLE summary="Each row names a Nordic country and specifies its total area and land area, in square kilometers">
<CAPTION>
Sample table: Areas of the Nordic countries, in sq km
</CAPTION>
<TR>
<th scope="col">Country
<th scope="col">Total area
<th scope="col">Land area
<TR>
<th scope="row">Denmark
<TD ALIGN=RIGHT> 43,070
<TD ALIGN=RIGHT> 42,370
<TR>
<th scope="row">Finland
<TD ALIGN=RIGHT>337,030
<TD ALIGN=RIGHT>305,470
<TR>
<th scope="row">Iceland
<TD ALIGN=RIGHT>103,000
<TD ALIGN=RIGHT>100,250
<TR>
<th scope="row">Norway
<TD ALIGN=RIGHT>324,220
<TD ALIGN=RIGHT>307,860
<TR>
<th scope="row">Sweden
<TD ALIGN=RIGHT>449,964
<TD ALIGN=RIGHT>410,928
</TABLE>
<h1 id="charset" class="anchor">Character test</h1>
<p>The following table has some sample characters with
annotations. If the browser’s default font does not
contain all of them, they may get displayed using backup fonts.
This may cause stylistic differences, but it should not prevent
the characters from being displayed at all.
<table>
<tr>
<th>Char.
<th>Explanation
<th>Notes
<tr>
<td>ê
<td>e with circumflex
<td>Latin 1 character, should be ok
<tr>
<td>—
<td>em dash
<td>Windows Latin 1 character, should be ok, too
<tr>
<td>Ā
<td>A with macron (line above)
<td>Latin Extended-A character, not present in all fonts
<tr>
<td>Ω
<td>capital omega
<td>A Greek letter
<tr>
<td>−
<td>minus sign
<td>Unicode minus
<tr>
<td>⌀
<td>diameter sign
<td>relatively rare in fonts
</table>
<h1 id="highlight" class="anchor">Highlight code</h1>
<p>In the following, a snippet should be highlighted.
<div class="codehilite"><pre><span></span><span class="cp">#include</span> <span class="cpf"><stdio.h></span><span class="cp"></span>
<span class="cp">#include</span> <span class="cpf"><stdlib.h></span><span class="cp"></span>
<span class="cp">#include</span> <span class="cpf"><unistd.h></span><span class="cp"></span>
<span class="cp">#define FIRST_PRIME_NUMBER 2</span>
<span class="cp">#define MAX_PRIME_NUMBER 1000</span>
<span class="kt">void</span>
<span class="nf">child_process</span> <span class="p">(</span><span class="kt">int</span> <span class="n">parentfd</span><span class="p">)</span>
<span class="p">{</span>
<span class="kt">pid_t</span> <span class="n">pid</span><span class="p">;</span>
<span class="kt">int</span> <span class="n">buf</span><span class="p">,</span> <span class="n">divider</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span> <span class="n">len</span><span class="p">,</span> <span class="n">pipefd</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">childfd</span> <span class="o">=</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span>
<span class="k">while</span> <span class="p">(</span><span class="mi">1</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">len</span> <span class="o">=</span> <span class="n">read</span> <span class="p">(</span><span class="n">parentfd</span><span class="p">,</span> <span class="o">&</span><span class="n">buf</span><span class="p">,</span> <span class="k">sizeof</span> <span class="p">(</span><span class="n">buf</span><span class="p">));</span>
<span class="k">if</span> <span class="p">(</span><span class="n">divider</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">divider</span> <span class="o">=</span> <span class="n">buf</span><span class="p">;</span>
<span class="n">printf</span> <span class="p">(</span><span class="s">"%d</span><span class="se">\n</span><span class="s">"</span><span class="p">,</span> <span class="n">divider</span><span class="p">);</span>
<span class="p">}</span>
<span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="n">buf</span> <span class="o"><</span> <span class="mi">0</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="n">childfd</span> <span class="o">!=</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span>
<span class="n">write</span> <span class="p">(</span><span class="n">childfd</span><span class="p">,</span> <span class="o">&</span><span class="n">buf</span><span class="p">,</span> <span class="k">sizeof</span> <span class="p">(</span><span class="n">buf</span><span class="p">));</span>
<span class="k">break</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="n">buf</span> <span class="o">%</span> <span class="n">divider</span> <span class="o">!=</span> <span class="mi">0</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="n">childfd</span> <span class="o">==</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span>
<span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="n">pipe</span> <span class="p">(</span><span class="n">pipefd</span><span class="p">)</span> <span class="o"><</span> <span class="mi">0</span><span class="p">)</span>
<span class="k">break</span><span class="p">;</span>
<span class="n">pid</span> <span class="o">=</span> <span class="n">fork</span> <span class="p">();</span>
<span class="k">if</span> <span class="p">(</span><span class="n">pid</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">parentfd</span> <span class="o">=</span> <span class="n">pipefd</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
<span class="n">close</span> <span class="p">(</span><span class="n">pipefd</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span>
<span class="n">divider</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">else</span>
<span class="p">{</span>
<span class="n">childfd</span> <span class="o">=</span> <span class="n">pipefd</span><span class="p">[</span><span class="mi">1</span><span class="p">];</span>
<span class="n">close</span> <span class="p">(</span><span class="n">pipefd</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="k">if</span> <span class="p">(</span><span class="n">childfd</span> <span class="o">!=</span> <span class="o">-</span><span class="mi">1</span><span class="p">)</span>
<span class="n">write</span> <span class="p">(</span><span class="n">childfd</span><span class="p">,</span> <span class="o">&</span><span class="n">buf</span><span class="p">,</span> <span class="k">sizeof</span> <span class="p">(</span><span class="n">buf</span><span class="p">));</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="k">return</span><span class="p">;</span>
<span class="p">}</span>
<span class="kt">int</span>
<span class="nf">main</span> <span class="p">()</span>
<span class="p">{</span>
<span class="kt">pid_t</span> <span class="n">pid</span><span class="p">;</span>
<span class="kt">int</span> <span class="n">pipefd</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span> <span class="n">i</span><span class="p">;</span>
<span class="k">if</span> <span class="p">(</span><span class="n">pipe</span> <span class="p">(</span><span class="n">pipefd</span><span class="p">)</span> <span class="o"><</span> <span class="mi">0</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">fprintf</span> <span class="p">(</span><span class="n">stderr</span><span class="p">,</span> <span class="s">"failed to initialize pipe"</span><span class="p">);</span>
<span class="k">return</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
<span class="n">pid</span> <span class="o">=</span> <span class="n">fork</span> <span class="p">();</span>
<span class="k">if</span> <span class="p">(</span><span class="n">pid</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">close</span> <span class="p">(</span><span class="n">pipefd</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span>
<span class="n">child_process</span> <span class="p">(</span><span class="n">pipefd</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
<span class="p">}</span>
<span class="k">else</span>
<span class="p">{</span>
<span class="n">close</span> <span class="p">(</span><span class="n">pipefd</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
<span class="k">for</span> <span class="p">(</span><span class="n">i</span> <span class="o">=</span> <span class="n">FIRST_PRIME_NUMBER</span><span class="p">;</span> <span class="n">i</span> <span class="o"><=</span> <span class="n">MAX_PRIME_NUMBER</span><span class="p">;</span> <span class="n">i</span><span class="o">++</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">write</span> <span class="p">(</span><span class="n">pipefd</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="o">&</span><span class="n">i</span><span class="p">,</span> <span class="k">sizeof</span> <span class="p">(</span><span class="n">i</span><span class="p">));</span>
<span class="p">}</span>
<span class="n">i</span> <span class="o">=</span> <span class="o">-</span><span class="mi">1</span><span class="p">;</span>
<span class="n">write</span> <span class="p">(</span><span class="n">pipefd</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="o">&</span><span class="n">i</span><span class="p">,</span> <span class="k">sizeof</span> <span class="p">(</span><span class="n">i</span><span class="p">));</span>
<span class="p">}</span>
<span class="n">wait</span> <span class="p">(</span><span class="nb">NULL</span><span class="p">);</span>
<span class="k">return</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
</div>
</main>
<footer>
<div class="container">
<ul class="links">
<li><a href="#!">Sed</a>
<li><a href="#!">Do</a>
<li><a href="#!">Eiusmod</a>
<li><a href="#!">Tempor</a>
<li><a href="#!">Incididunt</a>
<li><a href="#!">Ut</a>
<li><a href="#!">Labore</a>
<li><a href="#!">Dolore</a>
</ul>
<ul class="socials">
<li><a href="https://www.facebook.com/manhhomienbienthuy">
<i class="fa fa-facebook-square"></i>
</a>
<li><a href="https://twitter.com/AnhTranngoc">
<i class="fa fa-twitter-square"></i>
</a>
<li><a href="https://github.com/manhhomienbienthuy">
<i class="fa fa-github-square"></i>
</a>
</ul>
<p class="copyright">© 2016 Aprigi</p>
</div>
</footer>
<script data-main="dist/js/vpyeu.min.js" src="dist/js/lib/require.js"></script>