-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
968 lines (869 loc) · 47.3 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
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
<!DOCTYPE html>
<html lang="en">
<head>
<title>Frontend</title>
<meta charset="utf-8">
<meta name= "author" content="Dijana Đuran">
<meta name="description" content="O frontendu">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<link href="prism.css" rel="stylesheet" />
<link href="style.css" rel="stylesheet" />
</head>
<body>
<div class="wrapper">
<header>
<nav>
<a href="about.html">About what!?</a> |
<a href="table.html">Repeat table, table, table, table</a> |
<a href="cookbook-example/apple-pie.html">Bye-bye Miss American Pie</a>
</nav>
</header>
<h1 id="glavni_naslov">This is my <span>frontend cheat sheet!</span></h1></header>
<p>Visit my <a href="https://github.com/Diiiiiii" target="_blank">GitHub profile, nothing else</a></p>
<p>Get in touch, <a href="mailto:[email protected]"> send a message and say goodbye</a></p>
<p><a href="tel:+0994992272">My Mobile Contact</a></p>
<pre>
Call me (call me) on the line
Call me, call me any, anytime
Call me (call me) I'll arrive
You can call me any day or night
Call me
</pre>
<blockquote>"Call me" (Theme From American Gigolo) -
Deborah Harry, Giorgio Moroder- Blondie</blockquote>
<h2>Contents</h2>
<ol>
<li><a href="#glavni_naslov">This is my frontend cheat sheet!</a></li>
<li><a href="#html">HTML</a></li>
<li><a href="#struktura">Basic HTML structure</a></li>
<li><a href="#elementi">Inline text elements</a></li>
<li><a href="#vjezbanje">Vježbe</a></li>
<li><a href="#prebacivanje">Kako prebaciti promjene napravljene u dokumentu u Visual Studio Codeu u repozitorij?</a></li>
<li><a href="#linkovi">Korisni linkovi</a></li>
<li><a href="#svg">SVG i GIF</a></li>
<li><a href="#audio">Audio</a></li>
<li><a href="#video">Video</a></li>
<li><a href="#hyperlinks">Hyperlinks</a></li>
<li><a href="#tabele">Tables</a></li>
<li><a href="#forms">Forms</a></li>
<li><a href="#sematics">Semantics in HTML</a></li>
</ol>
<h2><a href="#html">About HTML</a></h2>
<ol>
<li><a href="#struktura">Document structure</a></li>
<li><a href="#druga">Text formatting</a></li>
<ol type="a">
<li><a href="#treca">Headings</a></li>
<li><a href="#cetvrta">Paragraphs and words</a></li>
</ol>
<li><a href="#lists">Lists</a></li>
<ol type="a">
<li><a href="#ordered">Ordered List</a></li>
<li><a href="#unordered">Unordered List</a></li>
<li><a href="#description">Description List</a></li>
</ol>
<li><a href="#media">Media</a></li>
<ol type="a">
<li><a href="#images">Images</a></li>
<li><a href="#audio">Audio</a></li>
<li><a href="#video">Video</a></li>
</ol>
<li><a href="#hyperlinks">Hyperlinks</a></li>
</ol>
<h1 id="html">HTML</h1>
<p>HTML (HyperText Markup Language) is a descriptive language that specifies webpage structure.</p>
<p>HTML is used to specify whether your web content should be recognized as a paragraph, list, heading, link, image, multimedia player, form, or one of many other available elements or even a new element that you define.</p>
<p>HTML (Hypertext Markup Language) is the code that is used to structure a web page and its content. For example, content could be structured within a set of paragraphs, a list of bulleted points, or using images and data tables. As the title suggests, this article will give you a basic understanding of HTML and its functions.</p>
<p>After learning HTML, you can then move on to learning about more advanced topics such as:</p>
<ul>
<li>CSS, and how to use it to style HTML (for example alter your text size and fonts used, add borders and drop shadows, layout your page with multiple columns, add animations and other visual effects.)
</li>
<li>JavaScript, and how to use it to add dynamic functionality to web pages (for example find your location and plot it on a map, make UI elements appear/disappear when you toggle a button, save users' data locally on their computers, and much more.)</li>
</ul>
<h3>Icons for HTML, CSS and JavaScript</h2>
<a href="https://validator.w3.org/" target="_blank"><img src="./images/html.svg" alt="Html" height="100"></a>
<img src="./images/css3-icon-28.jpg" alt="css" height="100">
<img src="./images/js-logo.png" alt="js" height="100"><br>
<a href="#">Back to top of page</a>
<br>
<h3>Example Images</h4>
<img src="https://www.kindpng.com/picc/m/9-93777_cartoon-books-on-bookshelf-hd-png-download.png" alt="Polica s knjigama" height="300" width="400">
<h2 id="struktura">Basic HTML structure</h2>
<p>HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc.</p>
<div class="code">
<pre>
<code class="language-html">
<!doctype html>
&lt; stands for the less-than sign: <code><</code>
&gt; stands for the greater-than sign: <code>></code>
<html>
<head>
<title></title>
</head>
<body>
<h1></h1>
<p></p>
</body>
</html>
</code>
</pre>
</div>
<h2 id ="druga">Text formatting</h2>
<p>HTML contains several elements for defining text with a special meaning:
<ul>
<li><strong>Bold text</strong></li>
<li><em>Emphasized text</em></li>
<li><mark>Marked text</mark></li>
<li><small>Smaller text</li></small></li>
<li><del>Deleted text</del></li>
<li><ins>Inserted text</ins></li>
<li><sub>Subscript text</sub></li>
<li><sup>Superscript text</sup></li>
</ul>
<br>
<p>Examples with and without tags:</p>
<div class="code">
<code><strong><strong>This text is bold.</strong></strong></code><br><br>
</div>
<strong>This text is bold.</strong>
</p>
<a href="#">Back to top of page</a>
<h3 id ="treca">Headings</h3>
<p>HTML headings are titles or subtitles that you want to display on a webpage.</p>
HTML headings are defined with the <code><h1></code> to <code><h6></code> tags.<br>
<code><h1></code> defines the most important heading. <br>
<code><h6></code> defines the least important heading.
<p>Examples:
<div class="code">
<pre>
<code><h1>Heading 1</h1></code>
<code><h2>Heading 2</h2></code>
<code><h3>Heading 3</h3></code>
<code><h4>Heading 4</h4></code>
<code><h5>Heading 5</h5></code>
<code><h6>Heading 6</h6></code>
</pre>
</div>
<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>
<br>
<a href="#">Back to top of page</a>
<h3 id="cetvrta">Paragraphs and words</h3>
<p>In HTML, each paragraph has to be wrapped in <code><p></code> tags.</p>
<p>A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph.</p>
<p>The HTML <br> element defines a line break.</p>
<p>Use <code><br></code> if you want a line break (a new line) without starting a new paragraph:</p>
<p>This is<br>a paragraph<br>with line breaks.</p>
<div class="code">
<pre><p>This is a paragraph without line breaks.</p> </pre></p>
</p>
</div>
<a href="#">Back to top of page</a>
<h3 id ="elementi">Inline text elements</h2>
<p>An inline element does not start on a new line. An inline element only takes up as much width as necessary.
This is a <code><span></code> element inside a paragraph.</p>
<p><strong>This is important.</strong> This is not, <em>but it can be useful.</em></p>
<p><code><strong></code>This is important.<code></strong></code>. This is not, <code><em></code>but it can be useful.<code></em></code></p>
<h2 id="lists">Lists</h2>
<p>A lot of the web's content is lists and HTML has special elements for these. Marking up lists always consists of at least 2 elements. The most common list types are ordered and unordered lists:</p>
<h3 id ="unordered">Unordered List</h3>
<p>Are for lists where the order of the items doesn't matter, such as a shopping list. These are wrapped in a <code><ul></code> element.</p>
<ul>
<li>strong - this is important</li>
<li>em - this is useful</li>
<li>small - this is not important, but nice to have</li>
</ul>
<p>Example of code:</p>
<div class="code">
<code>
<pre>
<ul>
<li>strong - this is important</li>
<li>em - this is useful</li>
<li>small - this is not important, but nice to have</li>
</ul>
</pre>
</code>
</div>
<br>
<a href="#">Back to top of page</a>
<br>
<h3 id="ordered">Ordered List</h3>
<p>Ordered lists are for lists where the order of the items does matter, such as a recipe. These are wrapped in an <code><ol></code> element.</p>
<ol>
<li>If the content is important and good to know, use strong</li>
<li>If the contetnt is good to know use em</li>
<li>If the content is not important, but nice to have, use small</li>
</ol>
<p>Example of code:</p>
<div class="code">
<code>
<pre>
<ol>
<li>If the content is important and good to know, use strong</li>
<li>If the contetnt is good to know use em</li>
<li>If the content is not important, but nice to have, use small</li>
</ol>
</pre>
</code>
</div>
<a href="#">Back to top of page</a>
<br>
<h3 id="description">Description List</h3>
<p>The <code><dl></code> HTML element represents a description list. The element encloses a list of groups of terms (specified using the <code><dt></code> element) and descriptions (provided by <code><dd></code> elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).</p>
<dl>
<dt>strong</dt>
<dd>Used for important text.</dd>
<dt>em</dt>
<dd>Used for good to know text.</dd>
<dt>small</dt>
<dd>Used for footer text.</dd>
</dl>
<p>Example of code:</p>
<div class="code">
<code>
<pre>
<dl>
<dt>strong</dt>
<dd>Used for important text.</dd>
<dt>em</dt>
<dd>Used for good to know text.</dd>
<dt>small</dt>
<dd>Used for footer text.</dd>
</dl>
</pre>
</code>
</div>
<a href="#">Back to top of page</a>
<br>
<h3 id ="vjezbanje">Vježbanje</h3>
<ul>
<li>They are grouped by function to help you find what you have in mind easily.</li>
<li>An alphabetical list of all elements is provided in the sidebar on every element's page as well as this one.</li>
</ul>
<div class="code">
<ol>
<pre>
<li><!DOCTYPE html></li>
<li><html></html></li>
<li><head></head></li>
<li><meta></li>
<li><title></title></li>
<li><body></body></li>
<li><h1></h1></li>
<li><h2></h2></li>
<li><p></p></li>
</pre>
</ol>
</div>
<dl>
<dt>HTML</dt>
<dd>(HyperText Markup Language) is a descriptive language that specifies webpage structure.</dd>
<dt>Metadata</dt>
<dd>data that describes data</dd>
</dl>
<h2 id ="prebacivanje">Kako prebaciti promjene napravljene u dokumentu u Visual Studio Codeu u repozitorij?</h2>
<ol>
<li>Commitanje tj. izvršiti izmjene u dokumentu index.html - Source Control (Ctrl+Shift+G), Changes, index.html - pritisnuti + (Stage All Changes) </li>
<li>U polje <em>Message</em> upisati natuknicu o napravljenoj promjeni i pritisnuti <em>Commit</em> (kvačica) i <em>Enter</em></li>
<li>Kliknuti <em>Sync Changes</em> - promjene koje su napravljene se šalju u repozitorij</li>
</ol>
<h2 id ="linkovi">Korisni linkovi</h2>
<ul>
<li><a href= "https://developer.mozilla.org/en-US/docs/Web/HTML/Element">Reference za HTML elemente i primjeri njihovog korištenja</a> </li>
<li><a href="https://www.w3.org/TR/wai-aria-practices/">Semantika</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status">HTTP response status codes</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/button">input types</a></li>
</ul>
<h2 id ="media">Media</h1>
<p>We've looked at a lot of text so far in this course, but the web would be really boring only using text. Let's start looking at how to make the web come alive with more interesting content! This module explores how to use HTML to include multimedia in your web pages, including the different ways that images can be included, and how to embed video, audio, and even entire webpages.</p>
<h3 id ="images">Images</h3>
<p>In order to put a simple image on a webpage, we use the <code><img></code> element. This is an empty element (meaning that it has no text content or closing tag) that requires a minimum of one attribute to be useful - <code><src></code> (sometimes spoken as its full title, source). The <code><src></code> attribute contains a path pointing to the image you want to embed in the page, which can be a relative or absolute URL, in the same way as <code><href></code> attribute values in <code><a></code> elements.</p>
<p>Example Image:</p>
<img src="https://www.kindpng.com/picc/m/9-93777_cartoon-books-on-bookshelf-hd-png-download.png" alt="Polica s knjigama" height="300" width="400">
<p>Example Image code:</p>
<ul>
<li>Absolute URL - Links to an external image that is hosted on another website.<br>Example: <code><img src="https://www.kindpng.com/picc/m/9-93777_cartoon-books-on-bookshelf-hd-png-download.png" alt="Polica s knjigama" height="300" width="400"></code></li>
<li>Relative URL - Links to an image that is hosted within the website. Here, the URL does not include the domain name. If the URL begins without a slash, it will be relative to the current page.<br>Example:<div class="code"> <code><img src="./images/html.svg" alt="Html" height="100"></code></div></li>
</ul>
<h3 id ="svg">SVG</h3>
<p>Vector graphics can be very useful in certain situations. Unlike regular formats like PNG/JPG, they don't distort/pixelate when zoomed in — they can remain smooth when scaled. This article introduces you to what vector graphics are and how to include the popular SVG format in web pages.
Scalable Vector Graphics (SVG) is a 2D vector image format based on an XML syntax.The W3C began work on SVG in the late 1990s, but SVG only became popular when Internet Explorer 9 came out with SVG support. All major browsers now support SVG.</p>
<p>Based on an XML syntax, SVG can be styled with CSS and made interactive using JavaScript. HTML5 now allows direct embedding of SVG tags in an HTML document.</p>
<p>As a vector image format, SVG graphics can scale infinitely, making them invaluable in responsive design, since you can create interface elements and graphics that scale to any screen size. SVG also provides a useful set of tools, such as clipping, masking, filters, and animations.</p>
<p>Example of code:</p>
<div class="code"><code><svg width="150" height="150" viewBox="0 0 300 300" fill="none" xmlns="http:/www.w3.org/2000/svg">
<rect width="50%" height="50%" fill="#87CEFA"></rect>
</svg></code>
</div>
<br><br>
<svg width="150" height="150" viewBox="0 0 300 300" fill="none" xmlns="http:/www.w3.org/2000/svg">
<rect width="50%" height="50%" fill="#87CEFA"></rect>
</svg>
<h3>My Examples of SVG and GIF</h3>
<p>GIF (Graphics Interchange Format)
<ul>
<li>Good choice for simple images and animations. Prefer PNG for lossless and indexed still images, and consider WebP, AVIF or APNG for animation sequences.</li>
<li>GIF supports simple animation, in which following an initial full-size frame, a series of images reflecting the parts of the image that change with each frame are provided.</li>
</ul>
<br>
<p>Example of code:</p>
<div class="code"><code><img src="./images/moja-animacija.gif" alt= cekanje></code></div>
</p>
<!-- <h3 id= vjezbanje2>Vježbe GIF i SVG</h3> -->
<svg width="150" height="230" viewBox="0 0 300 300" fill="none" xmlns="http:/www.w3.org/2000/svg">
<rect width="50%" height="50%" fill="red"></rect>
<circle cx="75" cy="70" r="30" fill="white"></circle>
<circle cx="85" cy="80" r="10" fill="black"></circle>
</svg>
<svg width="150" height="230" viewBox="0 0 300 300" fill="none" xmlns="http:/www.w3.org/2000/svg">
<rect width="50%" height="50%" fill="red"></rect>
<circle cx="75" cy="70" r="30" fill="white"></circle>
<circle cx="85" cy="80" r="10" fill="black"></circle>
</svg>
<img src="./images/moja-animacija.gif" alt= cekanje>
<br>
<a href="#">Back to top of page</a>
<h2 id = "audio" >Audio</h2>
<p>The <code><audio></code> element works just like the <code><video></code> element, with a few small differences as outlined below. A typical example might look like so:</p>
<div class="code">
<code><audio controls><br>
<source src="./music.wav"><br>
<p>Your browser does not support this format</p>
<br></audio></code>
</div>
<br><br>
<audio controls>
<source src="./music.wav">
<p>Your browser does not support this format</p>
</audio><br><br>
<a href="#">Back to top of page</a>
<h2 id="video">Video</h2>
<p>The <code><video></code> element allows you to embed a video very easily. A really simple example looks like this:</p>
<div class="code">
<code>
<video width="600" controls><br>
<source src="./mountains.webm"><br>
</video> <br>
</code>
</div>
<br>
<p>The embedded video will look something like this:</p>
<video width="600" controls>
<source src="./mountains.webm">
</video><br><br>
<p>My choice video from Youtube channel Clint's Reptiles:</p>
<div><iframe width="600" height="315" src="https://www.youtube.com/embed/p2-foCd0k2o" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div><br><br>
<div><iframe width="600" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/136863097&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/paradise-of-bachelors" title="Paradise of Bachelors" target="_blank" style="color: #cccccc; text-decoration: none;">Paradise of Bachelors</a> · <a href="https://soundcloud.com/paradise-of-bachelors/ive-got-mine" title="Mike Cooper - Trout Steel (PoB-13, 1970/2014): "I've Got Mine"" target="_blank" style="color: #cccccc; text-decoration: none;">Mike Cooper - Trout Steel (PoB-13, 1970/2014): "I've Got Mine"</a></div>
<iframe width="100%" height="450" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/playlists/3059653&color=%23c5edd3&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/paradise-of-bachelors" title="Paradise of Bachelors" target="_blank" style="color: #cccccc; text-decoration: none;">Paradise of Bachelors</a> · <a href="https://soundcloud.com/paradise-of-bachelors/sets/playlist-1" title="Paradisiacal Playlist" target="_blank" style="color: #cccccc; text-decoration: none;">Paradisiacal Playlist</a></div>
<a href="#">Back to top of page</a>
<h2 id ="hyperlinks">Hyperlinks</h2>
<p>HTML links are hyperlinks. You can click on a link and jump to another document. When you move the mouse over a link, the mouse arrow will turn into a little hand.</p>
<p>The HTML <code><a></code> tag defines a hyperlink. It has the following syntax:</p>
<div class="code">
<code><a href="url">link text</a></code>
</div>
<br>
<p>The most important attribute of the <code><a></code> element is the <code>href</code> attribute, which indicates the link's destination.
<br>
The link text is the part that will be visible to the reader.
<br>
Clicking on the link text, will send the reader to the specified URL address.</p>
<p>Examples:</p>
<div class ="code">
<pre>
<code><a href="#glavni_naslov">This is my frontend cheat sheet!</a></code><br>
<code>Visit my <a href="https://github.com/Diiiiiii" target="_blank">GitHub profile</a></code><br>
<code>Get in touch, <a href="mailto:[email protected]"> send a message</a></code><br>
<code><a href="tel:+0990000000">Mobile contact</a></code>
</pre>
</div>
<a href="#">Back to top of page</a>
<h2 id="tabele">Tables</h2>
<table border="1">
<thead>
<tr>
<th>Proizvod</th>
<th>Količina</th>
</tr>
</thead>
<tbody>
<tr>
<td>Čaj od sljeza</td>
<td>1 kutija</td>
</tr>
<tr>
<td>Čokolada</td>
<td>2 komada</td>
</tr>
</tbody>
</table><br>
<table border="1">
<caption>Tjedni raspored</caption>
<thead>
<tr>
<th>Sati</th>
<th>Ponedjeljak</th>
<th>Utorak</th>
<th>Srijeda</th>
<th>četvrtak</th>
<th>Petak</th>
</tr>
</thead>
<tbody>
<tr>
<td>12-12:45</td>
<td>Jutarnja vježba</td>
<td>Jutarnja vježba</td>
<td>Jutarnja vježba</td>
<td>Jutarnja vježba</td>
<td>Jutarnja vježba</td>
</tr>
<tr>
<td>13-13:45</td>
<td>Gledanje u nebo</td>
<td>Razgovor o emocijama</td>
<td>Čitanje</td>
<td>Šetnja šumom</td>
<td>Razgovor o emocijama</td>
</tr>
<tr>
<td>14-14:45</td>
<td>Čitanje</td>
<td>Gledanje u nebo</td>
<td>Razgovor o emocijama</td>
<td>Razgovor o emocijama</td>
<td>Razgovor o društvenim problemima</td>
</tr>
<tr>
<td>15-16:15</td>
<td>Šetnja šumom</td>
<td>Razgovor o društvenim problemima</td>
<td>Gledanje u nebo</td>
<td>Razgovor o društvenim problemima</td>
<td>Čitanje</td>
</tr>
<tr>
<td>16:30-17:15</td>
<td>Razgovor o društvenim problemima</td>
<td>Čitanje</td>
<td>Šetnja šumom</td>
<td>Gledanje u nebo</td>
<td>Maštanje</td>
</tr>
<tr>
<td>17:30-18:15</td>
<td>Razgovor o emocijama</td>
<td>Šetnja šumom</td>
<td>Maštanje</td>
<td>Čitanje</td>
<td>Šetnja šumom</td>
</tr>
</tbody>
</table>
<br>
<table border="1">
<tr>
<td>#</td>
<td>Ponedjeljak</td>
<td>Utorak</td>
<td>Srijeda</td>
</tr>
<tr>
<td>1</td>
<td rowspan="2">Matematika</td>
<td colspan="2"></td>
</tr>
<tr>
<td>2</td>
<td>Hrvatski</td>
<td>Hrvatski</td>
</tr>
</table>
<br>
<table border="1">
<caption>HTML entiteti</caption>
<tr>
<td>Karakter</td>
<td>Značenje</td>
<td>Ime entiteta</td>
<td>Broj entiteta</td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<br>
<table border="1">
<caption>Piramidalni oblik tablice</caption>
<tr>
<td colspan="4">Algebra - piramidalni oblik</td>
<!-- <td colspan="4">B</td> -->
<!-- <td colspan="4">C</td> -->
<!-- <td colspan="4">D</td> -->
</tr>
<tr>
<td colspan = "2">E</td>
<td colspan = "2">F </td>
<!-- <td colspan = "2">G</td> -->
<!-- <td colspan = "2">H</td> -->
</tr>
<tr>
<td colspan="2">I</td>
<td colspan="1.3">J</td>
<td colspan="1.3">K</td>
<!-- <td colspan="1.3">L</td> -->
</tr>
<tr>
<td colspan="1">M</td>
<td colspan="1">N</td>
<td colspan="1">O</td>
<td colspan="1">P</td>
</tr>
</table>
<p><a href="#">Back to top of page</a></p>
<fieldset>
<legend><h2 id="forms">Forms</h2></legend>
<h3>Google search</h3>
<form action="https://www.google.com/search" method="get">
<lable>Search</lable>
<input type="text" name="q">
<button type="">Go!</button>
</form>
<h3>Yahoo search</h3>
<form action="https://search.yahoo.com/search" method="get">
<lable>Search</lable>
<input type="text" name="p">
<button type="">Go!</button>
</form>
<h3>Ecosia search</h3>
<form action="https://www.ecosia.org/search" method="get" target="_blank">
<lable for="q">Search</lable>
<input id="q" type="text" name="q">
<button type="submit">Go!</button>
<p><a href="#">Back to top of page</a></p>
</form>
</fieldset>
<br>
<fieldset>
<h3>Login form</h3>
<form action="" novalidate autocomplete="off">
<input type="email" name="email" placeholder="Email" required>
<input type="password" name="password" placeholder="Password" minlength="8" required>
<button type="submit">Sign in</button>
</form>
<h3>Age gate form</h3>
<form action="">
<select name="month" id="month">
<option value="" disabled selected>Month</option>
<option value="1">January</option>
<option value="2" selected>February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
</select>
<select name="day" id="day">
<option value="" disabled selected>Day</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="year" id="year">
<option value="" disabled selected>Year</option>
<option value="1">2021</option>
<option value="2">2020</option>
<option value="3">2019</option>
<option value="4">2018</option>
<option value="5">2017</option>
<option value="6">2016</option>
<option value="7">2015</option>
<option value="8">2014</option>
<option value="9">2013</option>
<option value="10">2012</option>
<option value="11">2011</option>
</select>
<button type="submit">Let me in</button>
</form>
<h3>Survey form</h3>
<form action="">
<p>Dobro se snalazim u HTML.(1 - U potpunosti se ne slažem, 5 - u potpunosti se slažem)</p>
<label><input type="radio" name="answer" value="1"> 1</label>
<label><input type="radio" name="answer" value="2" checked> 2</label>
<label><input type="radio" name="answer" value="3"> 3</label>
<label><input type="radio" name="answer" value="4"> 4</label>
<label><input type="radio" name="answer" value="5"> 5 </label>
</form>
<p><a href="#">Back to top of page</a></p>
</fieldset>
<h3>Newsletter form</h3>
<form action="">
<fieldset>
<legend>Pick your newsletter topics:</legend>
<label><input type="checkbox" name="newsletter_topic" value="fronted" checked> Frontent </label>
<label><input type="checkbox" name="newsletter_topic" value="backend"> Backend<label>
<label><input type="checkbox" name="newsletter_topic" value="ux-ui-design"> UX/UI Design </label>
<label><input type="checkbox" name="newsletter_topic" value="marketing"> Marketing</label>
<br><br>
<label for="email"></label>
<input id="email" type="email" name="email" placeholder="Your Email" required><br><br>
<button type="submit">Sign me up</button>
<p><a href="#">Back to top of page</a></p>
</fieldset>
</form>
<fieldset>
<legend><h3>Food order form</h3></legend>
<form action="">
<lable>Ime i prezime kupca:<input type="text" id="full_name" name="full_name" placeholder="Ivan Ivić" required></lable><br><br>
<label>Broj telefona: <input type="tel" id="phone" name="phone" placeholder="090 765345" required></label><br><br>
<label>Adresa (ulica i kućni broj): <input type="text" name="address" id="address" placeholder="Ivanovićeva 10" required></label><br><br>
<label>Vrijeme dostave: <input type="time" id="delivery_time" name="delivery_time" required></label><br><br>
<label>Jelo <input list ="food-recommendation-list" type="text"></label><br>
<datalist id="food-recommendation-list" >
<option value="Classic Hamburger">100% mljevena junetina, salata</option>
<option value="Wrap">Wrap</option>
<option value="Čokolino">Čokolino</option>
<option value="Ćevapi">Ćevapi</option>
<option value="Pizza">Pizza</option>
<option value="Ćevapčići">Ćevapčići</option>
<option value="Zagrebački odrezak">Zagrebački odrezak</option>
<option value="Palenta">Palenta</option>
</datalist></label><br>
<label>Dodatni prilozi:</label>
<label><input type="checkbox" name="order_extras" value="kecap"> Kečap</label>
<label><input type="checkbox" name="order_extras" value="majoneza"> Majoneza</label>
<label><input type="checkbox" name="order_extras" value="tartar"> Tartar</label>
<label><input type="checkbox" name="order_extras" value="kajmak"> Kajmak</label>
<label><input type="checkbox" name="order_extras" value="ajvar"> Ajvar</label><br><br>
<label>Izbor beskontaktnog oblika dostave:</label>
<lable><input type="radio" name="contactless_delivery" value="true" required>Da</lable>
<lable><input type="radio" name="contactless_delivery" value="fals">Ne</lable><br><br>
<lable>Komentar</lable>
<textarea id="comment " name="comment " maxlength="250" rows="5" cols="33" placeholder="maksimalno 250 znakova"></textarea><br><br>
<button type="submit">Submit order</button>
</form>
<br>
<a href = "#">Back to top of pages</a>
</fieldset>
<h2 id ="sematics">Sematic Html</h2>
<a href="cookbook-example/apple-pie.html">Apple pie</a>
<!--Zadatak-->
<h3>Checkout Form</h3>
<form action="">
<fieldset>
<legend><strong>Podaci za dostavu:</strong></legend>
<img src="./images/address_delivery.png" alt="address_delivery" height="130" width="120">
<label for="fname">Ime</label>
<input type="text" id="fname" name="fname" required>
<label for="lname">Prezime</label>
<input type="text" id="lname" name="lname" required>
<label for="address">Ulica i kućni broj</label>
<input type="text" id="address" name="address" required><br><br>
<label for="zip">Poštanski broj</label>
<Input type="text" id="zip" name="zip" maxlength="12" required>
<label for="city" id="city" name="city">Grad</label>
<input type="text" id="city" name="city" required>
<label for="country" id="country" name="country">Država</label>
<input type="text" id="country" name="country" required>
</fieldset>
<br>
<fieldset>
<legend><strong>Kontakt podaci:</strong></legend>
<img src="./images/contact.png" alt="contact" height="100">
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
<label for="tel">Mobitel</label>
<input type="tel" id="tel" name="mobitel" required>
</fieldset>
<br>
<fieldset>
<legend><strong>Način plaćanja:</strong></legend>
<div>
<img src="./images/bank_transfer.jpg" alt="bank-transfer" height="100">
<img src="./images/paypal.png" alt="paypal" height="80">
<img src="./images/credit_card.jpg" alt="credit-card" height="100" width="130"></div>
<label><input type="radio" name="pay_method" value="bank_transfer"required checked>Bank Transfer</label>
<label><input type="radio" name="pay_method" value="paypal"> PayPal<label>
<label><input type="radio" name="pay_method" value="credit_card"> Credit/Debit Card </label>
</fieldset>
<br>
<fieldset>
<legend><strong>Kreditne kartice</strong></legend>
<img src="./images/credit_card.jpg" alt="credit-card" height="100"><br>
<label for="fullname">Ime i prezime na kreditnoj kartici</label>
<input type="text" id="fullname" name="fullname" required>
<lable for="cardnumber">Broj kreditne kartice</lable>
<input type="text" id="cardnumber" name="cardnumber" required><br><br>
<label for="month_year">Valjanosti kartice do</label>
<select id="month_year" name="month" required>
<option disabled selected>Mjesec</option>
<option>Siječanj</option>
<option>Veljača</option>
<option>Ožujak</option>
<option>Travanj</option>
<option>Svibanj</option>
<option>Lipanj</option>
<option>Srpanj</option>
<option>Kolovoz</option>
<option>Rujan</option>
<option>Listopad</option>
<option>Studeni</option>
<option>Prosinac</option>
</select>
<select id="month_year" name="year" required>
<option disabled selected>Godina</option>
<option>2022</option>
<option>2023</option>
<option>2024</option>
<option>2025</option>
<option>2026</option>
<option>2027</option>
<option>2028</option>
</select>
<label for="cvv">Kontrolni broj - CVV ili CVC</label>
<input type="text" id="cvv" name="cvv" required><br><br>
<label>
<input type="checkbox" checked="checked" name="sameadr"> Adresa dostave s kreditne kartice
</label>
</fieldset><br>
<input type="submit" value="Nastavi s kupnjom" class="btn">
</form>
<!--Zadatak-->
<h3><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input">Input types</a></h3>
<ul>
<li>button</li>
<li>radio</li>
<li>text</li>
<li>submit</li>
<li>reset</li>
<li>image</li>
<li>checkbox</li>
<li>color</li>
<li>date</li>
<li>email</li>
<li>hidden</li>
<li>password</li>
<li>month</li>
<li>etc</li>
</ul>
<h3><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input">Input attribute</a></h3>
<ul>
<li>required</li>
<li>minlength</li>
<li>novalidate, autocomplete - form action</li>
<li>select - option value</li>
</ul>
<!--Zadatak- proučiti opciju select option-->
<h3><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select">Select - atributi</a></h3>
<ol>
<li>multiple</li>
<li>optgroup - izrada grupa opcija</li>
</ol>
<h3> Atribut Optgroup <code><select></code></h3>
<form action="https://www.ecosia.org/search">
<p>Izaberi najnepoznatiju ti knjigu s popisa (i saznaj nešto o njoj):</p>
<select name="q" multiple size="4">
<optgroup label="Knjige ruskih autora">
<option value="zlocin_i_kazna">Zločin i kazna - Dostojevski</option>
<option value="rat_i_mir">Rat i mir - Tolstoj</option>
<option value="ocevi_i_djeca">Očevi i djeca - Turgenjev</option>
</optgroup>
<optgroup label="Knjige poljskih autora">
<option value="ducani_cimetne_boje">Dućani cimetne boje - Bruno Schulz</option>
<option value="kroz_pustinju_i_prasumu">Kroz pustinju i prašumu - Henryk Sienkiewicz</option>
<option value="bizarne_propovijesti">Bizarne pripovijesti - Olga Tokarczuk</option>
</optgroup>
</select><br><br>
<button type="submit">O toj stvarno ne znam ništa!</button>
</form>
<!--Zadatak-->
<h2>Status kodovi</h2>
<ol>
<li>Information responses (100–199)</li>
<li>Successful responses (200–299)
<ul>200 OK - success status response code indicates that the request has succeeded. A 200 response is cacheable by default.</ul>
<ul>201 Created - success status response code indicates that the request has succeeded and has led to the creation of a resource. The new resource is effectively created before this response is sent back and the new resource is returned in the body of the message, its location being either the URL of the request, or the content of the Location header.
The common use case of this status code is as the result of a POST request.</ul>
</li>
<li>Redirection messages (300–399)</li>
<li>Client error responses (400–499)
<ul>404 Not Found- client error response code indicates that the server can't find the requested resource. Links that lead to a 404 page are often called broken or dead links and can be subject to link rot.</ul>
<ul>401 Unauthorized (nismo prijavljeni)</ul>
<ul>403 Forbidden (nemamo prava na rad)</ul>
<ul>422 Unprocessable Entity - The client should not repeat this request without modification.<br>response status code indicates that the server understands the content type of the request entity, and the syntax of the request entity is correct, but it was unable to process the contained instructions.</ul>
<ul>418 I'm a teapot :)</ul>
</li>
<li>Server error responses (500–599)
<ul>503 Service Unavailable server error response code indicates that the server is not ready to handle the request.</ul>
<ul>504 Gateway Timeout server error response code indicates that the server, while acting as a gateway or proxy, did not get a response in time from the upstream server that it needed in order to complete the request.</ul>
</li>
</ol>
<p><a href="#">Back to top of page</a></p>
<h2>URL encoding</h2>
<p></p>
</div>
<script src="prism.js"></script>
</body>
</html>