-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml.json
1481 lines (1481 loc) · 45 KB
/
html.json
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
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"doctype": {
"prefix": "!!!",
"body": [
"<!DOCTYPE html>",
"$1"
],
"description": "HTML - Defines the document type"
},
"HTML Boilerplate": {
"prefix": "!html5",
"body": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
"",
"<head>",
" <meta charset=\"utf-8\">",
" <meta content=\"width=device-width, initial-scale=1.0\" name=\"viewport\">",
" <meta content=\"IE=edge\" http-equiv=\"X-UA-Compatible\">",
"",
" <title>${1:TITLE}</title>",
" <meta name=\"description\" content=\"${2:DESCRIPTION}\">",
"",
" <link href=\"styles.css\" rel=\"stylesheet\">",
"",
" <script defer src=\"main.js\"></script>",
"</head>",
"",
"<body>",
" <div>",
" <h1>${1:TITLE}</h1>",
"",
" <p><i>${2:DESCRIPTION}</i></p>",
"",
" $3",
"",
" </div>",
"</body>",
"",
"</html>"
],
"description": "Create base contents of an HTML file"
},
"extended-html5-boilerplate": {
"prefix": "!!html5",
"body": [
"<!DOCTYPE html>",
"<!--[if lt IE 7]> <html class=\"no-js lt-ie9 lt-ie8 lt-ie7\"> <![endif]-->",
"<!--[if IE 7]> <html class=\"no-js lt-ie9 lt-ie8\"> <![endif]-->",
"<!--[if IE 8]> <html class=\"no-js lt-ie9\"> <![endif]-->",
"<!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"en-US\"> <!--<![endif]-->",
"\t<head>",
"\t\t<meta charset=\"UTF-8\" />",
"\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />",
"\t\t<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
"\t\t<link rel=\"pingback\" href=\"https: //domainname.com/xmlrpc.php\" />",
"\t\t<title>$1</title>",
"\t\t<!-- style and script resources -->",
"\t\t<link rel=\"stylesheet\" href=\"$2\" media=\"all\">",
"\t\t<script src=\"$3\"></script>",
"\t\t<!--meta properties -->",
"\t\t<meta name=\"description\" content=\"$4 Your site description.\" />",
"\t\t<!--detailed robots meta https://developers.google.com/search/reference/robots_meta_tag -->",
"\t\t<meta name=\"robots\" content=\"index, follow, max-snippet: -1, max-image-preview:large, max-video-preview: -1\" />",
"\t\t<link rel=\"canonical\" href=\"$5\" />",
"\t\t<!--open graph meta tags for social sites and search engines-->",
"\t\t<meta property=\"og:locale\" content=\"en_US\" />",
"\t\t<meta property=\"og:type\" content=\"website\" />",
"\t\t<meta property=\"og:title\" content=\" $6 Opengraph content 25 char are best\" />",
"\t\t<meta property=\"og:description\" content=\" $7 #description.\" />",
"\t\t<meta property=\"og:url\" content=\"$8\" />",
"\t\t<meta property=\"og:site_name\" content=\"$9\" />",
"\t\t<meta property=\"og:image\" content=\"images//hom-banner-compressed.jpg\" />",
"\t\t<meta property=\"og:image:secure_url\" content=\"images//hom-banner-compressed.jpg\" />",
"\t\t<meta property=\"og:image:width\" content=\"1200\" />",
"\t\t<meta property=\"og:image:height\" content=\"660\" />",
"\t\t<!--twitter description-->",
"\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" />",
"\t\t<meta name=\"twitter:description\" content=\"$10.\" />",
"\t\t<meta name=\"twitter:title\" content=\"$11\" />",
"\t\t<meta name=\"twitter:site\" content=\"@$12\" />",
"\t\t<meta name=\"twitter:image\" content=\"images/hom-banner-compressed.jpg\" />",
"\t\t<meta name=\"twitter:creator\" content=\"@$13\" />",
"\t\t<!--opengraph tags for location or address for information panel in google-->",
"\t\t<meta name=\"og:latitude\" content=\"$14\" />",
"\t\t<meta name=\"og:longitude\" content=\"$15\" />",
"\t\t<meta name=\"og:street-address\" content=\"$16\" />",
"\t\t<meta name=\"og:locality\" content=\"$17\" />",
"\t\t<meta name=\"og:region\" content=\"$18\" />",
"\t\t<meta name=\"og:postal-code\" content=\"$19\" />",
"\t\t<meta name=\"og:country-name\" content=\"$20\" />",
"\t\t<!--search engine verification-->",
"\t\t<meta name=\"google-site-verification\" content=\"$21\" />",
"\t\t<meta name=\"yandex-verification\" content=\"$22\" />",
"\t\t<!--powered by meta-->",
"\t\t<meta name=\"generator\" content=\"$23\" />",
"\t\t<!-- Site fevicon icons -->",
"\t\t<link rel=\"icon\" href=\"images/icon/cropped-cropped-favicon-1-1-32x32.png\" sizes=\"32x32\" />",
"\t\t<link rel=\"icon\" href=\"images/icon/cropped-cropped-favicon-1-1-192x192.png\" sizes=\"192x192\" />",
"\t\t<link rel=\"apple-touch-icon-precomposed\" href=\"images/icon/cropped-cropped-favicon-1-1-180x180.png\" />",
"\t\t<meta name=\"msapplication-TileImage\" content=\"images/icon/cropped-cropped-favicon-1-1-270x270.png\" />",
"\t</head>",
"\t<body>",
"\t\t<!--[if lt IE 7]>",
"\t\t\t<p class=\"browsehappy\">You are using an <strong>outdated</strong> browser. Please <a href=\"#\">upgrade your browser</a> to improve your experience.</p>",
"\t\t<![endif]-->",
"\t\t$24",
"\t\t<link rel=\"stylesheet\" type=\"text/css\" href=\"/$25\" media=\"print\" />",
"\t\t<script src=\"$26\" async defer></script>",
"\t</body>",
"</html>"
],
"description": "An Extended HTML5 boiler plate code."
},
"HTML Table Boilerplate": {
"prefix": "!table",
"body": [
"<table>",
" <thead>",
" <tr>",
" <th>${1:Column 1}</th>",
" <th>${2:Column 2}</th>",
" <th>${3:Column 3}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td>${4:Data 1}</td>",
" <td>${5:Data 2}</td>",
" <td>${6:Data 3}</td>",
" </tr>",
" <tr>",
" <td>${7:Data 4}</td>",
" <td>${8:Data 5}</td>",
" <td>${9:Data 6}</td>",
" </tr>",
" <tr>",
" <td>${10:Data 7}</td>",
" <td>${11:Data 8}</td>",
" <td>${12:Data 9}</td>",
" </tr>",
" </tbody>",
"</table>"
],
"description": "Create a basic HTML table structure"
},
"HTML Form Boilerplate": {
"prefix": "!form",
"body": [
"<form action=\"${1:/submit-form}\" method=\"${2:POST}\">",
" <div>",
" <label for=\"${3:name}\">${4:Name}:</label>",
" <input type=\"text\" id=\"${3:name}\" name=\"${3:name}\" required>",
" </div>",
" <div>",
" <label for=\"${5:email}\">${6:Email}:</label>",
" <input type=\"email\" id=\"${5:email}\" name=\"${5:email}\" required>",
" </div>",
" <div>",
" <label for=\"${7:password}\">${8:Password}:</label>",
" <input type=\"password\" id=\"${7:password}\" name=\"${7:password}\" required>",
" </div>",
" <div>",
" <label for=\"${9:message}\">${10:Message}:</label>",
" <textarea id=\"${9:message}\" name=\"${9:message}\" rows=\"4\" required></textarea>",
" </div>",
" <div>",
" <input type=\"submit\" value=\"${11:Submit}\">",
" </div>",
"</form>"
],
"description": "Create a basic HTML form"
},
"HTML Link Tag": {
"prefix": "link",
"body": [
"<link rel=\"$1\" href=\"$2\">"
],
"description": "Create a link tag"
},
"Function Template": {
"prefix": "fn",
"body": [
"function ${1|myFunction,anotherFunction|}($2) {",
" if ($3) {",
" console.log('$4');",
" }",
" return $5;",
"}"
],
"description": "Create a function with choice options and logic"
},
"HTML Input Field Boilerplate": {
"prefix": "!input",
"body": [
"<label for=\"${1:input-id}\">${2:Label Text}:</label>",
"<input type=\"${3:text}\" id=\"${1:input-id}\" name=\"${1:input-id}\" placeholder=\"${4:Enter text}\" ${5:required}>"
],
"description": "Create an input field with a label"
},
"HTML Select Dropdown Boilerplate": {
"prefix": "!select",
"body": [
"<label for=\"${1:select-id}\">${2:Select Option}:</label>",
"<select id=\"${1:select-id}\" name=\"${1:select-id}\">",
" <option value=\"${3:value1}\">${4:Option 1}</option>",
" <option value=\"${5:value2}\">${6:Option 2}</option>",
" <option value=\"${7:value3}\">${8:Option 3}</option>",
"</select>"
],
"description": "Create a select dropdown with options"
},
"HTML Video Boilerplate": {
"prefix": "!video",
"body": [
"<video width=\"${1:600}\" height=\"${2:400}\" controls>",
" <source src=\"${3:video.mp4}\" type=\"video/mp4\">",
" <source src=\"${4:video.ogg}\" type=\"video/ogg\">",
" Your browser does not support the video tag.",
"</video>"
],
"description": "Create a video player with multiple sources"
},
"HTML Audio Boilerplate": {
"prefix": "!audio",
"body": [
"<audio controls>",
" <source src=\"${1:audio.mp3}\" type=\"audio/mp3\">",
" <source src=\"${2:audio.ogg}\" type=\"audio/ogg\">",
" Your browser does not support the audio element.",
"</audio>"
],
"description": "Create an audio player with multiple sources"
},
"HTML Header Boilerplate": {
"prefix": "!header",
"body": [
"<header>",
" <nav>",
" <ul>",
" <li><a href=\"${1:#}\">${2:Home}</a></li>",
" <li><a href=\"${3:#}\">${4:About}</a></li>",
" <li><a href=\"${5:#}\">${6:Services}</a></li>",
" <li><a href=\"${7:#}\">${8:Contact}</a></li>",
" </ul>",
" </nav>",
"</header>"
],
"description": "Create a header with a navigation menu"
},
"HTML Footer Boilerplate": {
"prefix": "!footer",
"body": [
"<footer class=\"bg-dark text-light py-4\">",
" <div class=\"container\">",
" <div class=\"row\">",
" <div class=\"col-12 col-md-6\">",
" <p>© ${1:${CURRENT_YEAR}} ${2:Your Company}. All rights reserved.</p>",
" </div>",
" <div class=\"col-12 col-md-6 text-md-end\">",
" <ul class=\"list-inline\">",
" <li class=\"list-inline-item\"><a href=\"#\" class=\"text-light\">Privacy Policy</a></li>",
" <li class=\"list-inline-item\"><a href=\"#\" class=\"text-light\">Terms of Service</a></li>",
" <li class=\"list-inline-item\"><a href=\"#\" class=\"text-light\">Contact Us</a></li>",
" </ul>",
" </div>",
" </div>",
" </div>",
"</footer>"
],
"description": "Create a Bootstrap footer"
},
"HTML Toast Notifications Boilerplate": {
"prefix": "!toast",
"body": [
"<div class=\"toast-container position-fixed bottom-0 end-0 p-3\" id=\"toastContainer\">",
" <div class=\"toast\" role=\"alert\" aria-live=\"assertive\" aria-atomic=\"true\">",
" <div class=\"toast-header\">",
" <strong class=\"me-auto\">${1:Notification Title}</strong>",
" <small>Just now</small>",
" <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"toast\" aria-label=\"Close\"></button>",
" </div>",
" <div class=\"toast-body\">",
" ${2:Notification message goes here.}",
" </div>",
" </div>",
"</div>",
"<script>",
" var toast = new bootstrap.Toast(document.querySelector('.toast'));",
" toast.show();",
"</script>"
],
"description": "Create a Bootstrap toast notification"
},
"HTML Timeline Boilerplate": {
"prefix": "!timeline",
"body": [
"<div class=\"timeline\">",
" <div class=\"timeline-item\">",
" <div class=\"timeline-time\">${1:Time 1}</div>",
" <div class=\"timeline-content\">${2:Content 1}</div>",
" </div>",
" <div class=\"timeline-item\">",
" <div class=\"timeline-time\">${3:Time 2}</div>",
" <div class=\"timeline-content\">${4:Content 2}</div>",
" </div>",
" <div class=\"timeline-item\">",
" <div class=\"timeline-time\">${5:Time 3}</div>",
" <div class=\"timeline-content\">${6:Content 3}</div>",
" </div>",
"</div>"
],
"description": "Create a simple timeline"
},
"HTML Contact Form Boilerplate": {
"prefix": "!contactform",
"body": [
"<form action=\"${1:#}\" method=\"post\">",
" <div class=\"mb-3\">",
" <label for=\"${2:name}\" class=\"form-label\">Name</label>",
" <input type=\"text\" class=\"form-control\" id=\"${2:name}\" name=\"name\" placeholder=\"${3:Enter your name}\">",
" </div>",
" <div class=\"mb-3\">",
" <label for=\"${4:email}\" class=\"form-label\">Email address</label>",
" <input type=\"email\" class=\"form-control\" id=\"${4:email}\" name=\"email\" placeholder=\"${5:Enter your email}\">",
" </div>",
" <div class=\"mb-3\">",
" <label for=\"${6:message}\" class=\"form-label\">Message</label>",
" <textarea class=\"form-control\" id=\"${6:message}\" name=\"message\" rows=\"3\" placeholder=\"${7:Enter your message}\"></textarea>",
" </div>",
" <button type=\"submit\" class=\"btn btn-primary\">Submit</button>",
"</form>"
],
"description": "Create a simple contact form"
},
"HTML Meta Tags Boilerplate": {
"prefix": "!metatags",
"body": [
"<meta charset=\"UTF-8\">",
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
"<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
"<meta name=\"description\" content=\"${1:Description of your site}\">",
"<meta name=\"keywords\" content=\"${2:keyword1, keyword2, keyword3}\">",
"<meta name=\"author\" content=\"${3:Your Name}\">"
],
"description": "Create common meta tags for a webpage"
},
"HTML Section Boilerplate": {
"prefix": "!section",
"body": [
"<section id=\"${1:section-id}\">",
" <h2>${2:Section Title}</h2>",
" <p>${3:Section content goes here.}</p>",
"</section>"
],
"description": "Create a section element with a title and content"
},
"HTML Accordion Boilerplate": {
"prefix": "!accordion",
"body": [
"<div class=\"accordion\" id=\"${1:accordionExample}\">",
" <div class=\"accordion-item\">",
" <h2 class=\"accordion-header\" id=\"${2:headingOne}\">",
" <button class=\"accordion-button\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#${3:collapseOne}\" aria-expanded=\"true\" aria-controls=\"${3:collapseOne}\">",
" ${4:Accordion Item 1}",
" </button>",
" </h2>",
" <div id=\"${3:collapseOne}\" class=\"accordion-collapse collapse show\" aria-labelledby=\"${2:headingOne}\" data-bs-parent=\"#${1:accordionExample}\">",
" <div class=\"accordion-body\">",
" ${5:Content for the first accordion item.}",
" </div>",
" </div>",
" </div>",
" <div class=\"accordion-item\">",
" <h2 class=\"accordion-header\" id=\"${6:headingTwo}\">",
" <button class=\"accordion-button collapsed\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#${7:collapseTwo}\" aria-expanded=\"false\" aria-controls=\"${7:collapseTwo}\">",
" ${8:Accordion Item 2}",
" </button>",
" </h2>",
" <div id=\"${7:collapseTwo}\" class=\"accordion-collapse collapse\" aria-labelledby=\"${6:headingTwo}\" data-bs-parent=\"#${1:accordionExample}\">",
" <div class=\"accordion-body\">",
" ${9:Content for the second accordion item.}",
" </div>",
" </div>",
" </div>",
"</div>"
],
"description": "Create an accordion with collapsible content"
},
"HTML Video Embed Boilerplate": {
"prefix": "!embedvideo",
"body": [
"<iframe width=\"${1:560}\" height=\"${2:315}\" src=\"https://www.youtube.com/embed/${3:video-id}\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>"
],
"description": "Embed a YouTube video"
},
"HTML Jumbotron Boilerplate": {
"prefix": "!jumbotron",
"body": [
"<div class=\"jumbotron\">",
" <h1 class=\"display-4\">${1:Welcome to the site!}</h1>",
" <p class=\"lead\">${2:This is a simple hero unit, a jumbotron-style component for calling extra attention to featured content or information.}</p>",
" <hr class=\"my-4\">",
" <p>${3:It uses utility classes for typography and spacing to space content out within the larger container.}</p>",
" <a class=\"btn btn-primary btn-lg\" href=\"#\" role=\"button\">${4:Learn more}</a>",
"</div>"
],
"description": "Create a Bootstrap jumbotron"
},
"HTML Navbar with Search Boilerplate": {
"prefix": "!navbarsearch",
"body": [
"<nav class=\"navbar navbar-expand-lg navbar-light bg-light\">",
" <a class=\"navbar-brand\" href=\"#\">${1:Brand}</a>",
" <button class=\"navbar-toggler\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbarNav\" aria-controls=\"navbarNav\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">",
" <span class=\"navbar-toggler-icon\"></span>",
" </button>",
" <div class=\"collapse navbar-collapse\" id=\"navbarNav\">",
" <ul class=\"navbar-nav\">",
" <li class=\"nav-item active\">",
" <a class=\"nav-link\" href=\"#\">Home <span class=\"sr-only\">(current)</span></a>",
" </li>",
" <li class=\"nav-item\">",
" <a class=\"nav-link\" href=\"#\">Features</a>",
" </li>",
" <li class=\"nav-item\">",
" <a class=\"nav-link\" href=\"#\">Pricing</a>",
" </li>",
" </ul>",
" <form class=\"d-flex ml-auto\">",
" <input class=\"form-control me-2\" type=\"search\" placeholder=\"Search\" aria-label=\"Search\">",
" <button class=\"btn btn-outline-success\" type=\"submit\">Search</button>",
" </form>",
" </div>",
"</nav>"
],
"description": "Create a Bootstrap navbar with a search bar"
},
"HTML Navigation Bar Boilerplate": {
"prefix": "!navbar",
"body": [
"<nav class=\"navbar navbar-expand-lg navbar-light bg-light\">",
" <a class=\"navbar-brand\" href=\"${1:#}\">${2:Brand}</a>",
" <button class=\"navbar-toggler\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#${3:navbarNav}\" aria-controls=\"${3:navbarNav}\" aria-expanded=\"false\" aria-label=\"Toggle navigation\">",
" <span class=\"navbar-toggler-icon\"></span>",
" </button>",
" <div class=\"collapse navbar-collapse\" id=\"${3:navbarNav}\">",
" <ul class=\"navbar-nav\">",
" <li class=\"nav-item active\">",
" <a class=\"nav-link\" href=\"${4:#}\">${5:Home}</a>",
" </li>",
" <li class=\"nav-item\">",
" <a class=\"nav-link\" href=\"${6:#}\">${7:About}</a>",
" </li>",
" <li class=\"nav-item\">",
" <a class=\"nav-link\" href=\"${8:#}\">${9:Services}</a>",
" </li>",
" <li class=\"nav-item\">",
" <a class=\"nav-link\" href=\"${10:#}\">${11:Contact}</a>",
" </li>",
" </ul>",
" </div>",
"</nav>"
],
"description": "Create a responsive navigation bar with links"
},
"HTML Breadcrumbs Boilerplate": {
"prefix": "!breadcrumbs",
"body": [
"<nav aria-label=\"breadcrumb\">",
" <ol class=\"breadcrumb\">",
" <li class=\"breadcrumb-item\"><a href=\"${1:#}\">${2:Home}</a></li>",
" <li class=\"breadcrumb-item\"><a href=\"${3:#}\">${4:Library}</a></li>",
" <li class=\"breadcrumb-item active\" aria-current=\"page\">${5:Data}</li>",
" </ol>",
"</nav>"
],
"description": "Create a breadcrumb navigation"
},
"HTML Card Boilerplate": {
"prefix": "!card",
"body": [
"<div class=\"card\" style=\"width: 18rem;\">",
" <img src=\"${1:#}\" class=\"card-img-top\" alt=\"${2:Card image}\">",
" <div class=\"card-body\">",
" <h5 class=\"card-title\">${3:Card Title}</h5>",
" <p class=\"card-text\">${4:Card content goes here.}</p>",
" <a href=\"${5:#}\" class=\"btn btn-primary\">${6:Go somewhere}</a>",
" </div>",
"</div>"
],
"description": "Create a Bootstrap card component"
},
"HTML Image Gallery Boilerplate": {
"prefix": "!gallery",
"body": [
"<div class=\"gallery\">",
" <img src=\"${1:#}\" alt=\"${2:Image 1}\" class=\"gallery-item\">",
" <img src=\"${3:#}\" alt=\"${4:Image 2}\" class=\"gallery-item\">",
" <img src=\"${5:#}\" alt=\"${6:Image 3}\" class=\"gallery-item\">",
" <img src=\"${7:#}\" alt=\"${8:Image 4}\" class=\"gallery-item\">",
"</div>"
],
"description": "Create a simple image gallery"
},
"HTML Modal Boilerplate": {
"prefix": "!modal",
"body": [
"<div class=\"modal fade\" id=\"${1:modalId}\" tabindex=\"-1\" aria-labelledby=\"${1:modalId}Label\" aria-hidden=\"true\">",
" <div class=\"modal-dialog\">",
" <div class=\"modal-content\">",
" <div class=\"modal-header\">",
" <h5 class=\"modal-title\" id=\"${1:modalId}Label\">${2:Modal Title}</h5>",
" <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>",
" </div>",
" <div class=\"modal-body\">",
" ${3:Modal content goes here.}",
" </div>",
" <div class=\"modal-footer\">",
" <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">${4:Close}</button>",
" <button type=\"button\" class=\"btn btn-primary\">${5:Save changes}</button>",
" </div>",
" </div>",
" </div>",
"</div>"
],
"description": "Create a Bootstrap modal"
},
"HTML Table with Sorting Boilerplate": {
"prefix": "!tablesort",
"body": [
"<table class=\"table\">",
" <thead>",
" <tr>",
" <th scope=\"col\" onclick=\"sortTable(0)\">${1:Column 1}</th>",
" <th scope=\"col\" onclick=\"sortTable(1)\">${2:Column 2}</th>",
" <th scope=\"col\" onclick=\"sortTable(2)\">${3:Column 3}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td>${4:Data 1}</td>",
" <td>${5:Data 2}</td>",
" <td>${6:Data 3}</td>",
" </tr>",
" <tr>",
" <td>${7:Data 4}</td>",
" <td>${8:Data 5}</td>",
" <td>${9:Data 6}</td>",
" </tr>",
" </tbody>",
"</table>",
"<script>",
"function sortTable(n) {",
" var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0;",
" table = document.querySelector(\".table\");",
" switching = true;",
" dir = \"asc\";",
" while (switching) {",
" switching = false;",
" rows = table.rows;",
" for (i = 1; i < (rows.length - 1); i++) {",
" shouldSwitch = false;",
" x = rows[i].getElementsByTagName(\"TD\")[n];",
" y = rows[i + 1].getElementsByTagName(\"TD\")[n];",
" if (dir === \"asc\") {",
" if (x.innerHTML.toLowerCase() > y.innerHTML.toLowerCase()) {",
" shouldSwitch = true;",
" break;",
" }",
" } else if (dir === \"desc\") {",
" if (x.innerHTML.toLowerCase() < y.innerHTML.toLowerCase()) {",
" shouldSwitch = true;",
" break;",
" }",
" }",
" }",
" if (shouldSwitch) {",
" rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);",
" switching = true;",
" switchcount++;",
" } else {",
" if (switchcount === 0 && dir === \"asc\") {",
" dir = \"desc\";",
" switching = true;",
" }",
" }",
" }",
"}",
"</script>"
],
"description": "Create a table with sorting functionality"
},
"HTML Tooltip Boilerplate": {
"prefix": "!tooltip",
"body": [
"<button type=\"button\" class=\"btn btn-secondary\" data-bs-toggle=\"tooltip\" data-bs-placement=\"top\" title=\"${1:Tooltip text}\">",
" ${2:Hover over me}",
"</button>",
"<script>",
" var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle=\"tooltip\"]'));",
" var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {",
" return new bootstrap.Tooltip(tooltipTriggerEl);",
" });",
"</script>"
],
"description": "Create a button with a tooltip"
},
"HTML Badge Boilerplate": {
"prefix": "!badge",
"body": [
"<span class=\"badge bg-${1:primary}\">${2:Badge Content}</span>"
],
"description": "Create a Bootstrap badge"
},
"HTML Dropdown Menu Boilerplate": {
"prefix": "!dropdown",
"body": [
"<div class=\"dropdown\">",
" <button class=\"btn btn-secondary dropdown-toggle\" type=\"button\" id=\"${1:dropdownMenuButton}\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">",
" ${2:Dropdown button}",
" </button>",
" <ul class=\"dropdown-menu\" aria-labelledby=\"${1:dropdownMenuButton}\">",
" <li><a class=\"dropdown-item\" href=\"#\">${3:Action}</a></li>",
" <li><a class=\"dropdown-item\" href=\"#\">${4:Another action}</a></li>",
" <li><a class=\"dropdown-item\" href=\"#\">${5:Something else here}</a></li>",
" </ul>",
"</div>"
],
"description": "Create a Bootstrap dropdown menu"
},
"HTML Pagination Boilerplate": {
"prefix": "!pagination",
"body": [
"<nav aria-label=\"Page navigation\">",
" <ul class=\"pagination\">",
" <li class=\"page-item\"><a class=\"page-link\" href=\"#\">${1:Previous}</a></li>",
" <li class=\"page-item\"><a class=\"page-link\" href=\"#\">1</a></li>",
" <li class=\"page-item\"><a class=\"page-link\" href=\"#\">2</a></li>",
" <li class=\"page-item\"><a class=\"page-link\" href=\"#\">3</a></li>",
" <li class=\"page-item\"><a class=\"page-link\" href=\"#\">${2:Next}</a></li>",
" </ul>",
"</nav>"
],
"description": "Create a Bootstrap pagination component"
},
"HTML Form Group Boilerplate": {
"prefix": "!formgroup",
"body": [
"<div class=\"mb-3\">",
" <label for=\"${1:inputId}\" class=\"form-label\">${2:Label}</label>",
" <input type=\"${3:text}\" class=\"form-control\" id=\"${1:inputId}\" placeholder=\"${4:Enter value}\">",
"</div>"
],
"description": "Create a Bootstrap form group"
},
"HTML Table with Pagination Boilerplate": {
"prefix": "!tablepagination",
"body": [
"<table class=\"table\">",
" <thead>",
" <tr>",
" <th scope=\"col\">${1:ID}</th>",
" <th scope=\"col\">${2:Name}</th>",
" <th scope=\"col\">${3:Age}</th>",
" <th scope=\"col\">${4:Country}</th>",
" </tr>",
" </thead>",
" <tbody>",
" <tr>",
" <td>${5:1}</td>",
" <td>${6:John Doe}</td>",
" <td>${7:30}</td>",
" <td>${8:USA}</td>",
" </tr>",
" <tr>",
" <td>${9:2}</td>",
" <td>${10:Jane Smith}</td>",
" <td>${11:25}</td>",
" <td>${12:Canada}</td>",
" </tr>",
" </tbody>",
"</table>",
"<nav>",
" <ul class=\"pagination\">",
" <li class=\"page-item\"><a class=\"page-link\" href=\"#\">Previous</a></li>",
" <li class=\"page-item active\" aria-current=\"page\">",
" <span class=\"page-link\">1</span>",
" </li>",
" <li class=\"page-item\"><a class=\"page-link\" href=\"#\">2</a></li>",
" <li class=\"page-item\"><a class=\"page-link\" href=\"#\">3</a></li>",
" <li class=\"page-item\"><a class=\"page-link\" href=\"#\">Next</a></li>",
" </ul>",
"</nav>"
],
"description": "Create a Bootstrap table with pagination"
},
"HTML Footer with Social Media Links Boilerplate": {
"prefix": "!socialfooter",
"body": [
"<footer class=\"bg-dark text-light py-4\">",
" <div class=\"container\">",
" <div class=\"row\">",
" <div class=\"col-12 col-md-6\">",
" <p>© ${1:${CURRENT_YEAR}} ${2:Your Company}. All rights reserved.</p>",
" </div>",
" <div class=\"col-12 col-md-6 text-md-end\">",
" <ul class=\"list-inline\">",
" <li class=\"list-inline-item\"><a href=\"#\" class=\"text-light\"><i class=\"fab fa-facebook\"></i> Facebook</a></li>",
" <li class=\"list-inline-item\"><a href=\"#\" class=\"text-light\"><i class=\"fab fa-twitter\"></i> Twitter</a></li>",
" <li class=\"list-inline-item\"><a href=\"#\" class=\"text-light\"><i class=\"fab fa-instagram\"></i> Instagram</a></li>",
" <li class=\"list-inline-item\"><a href=\"#\" class=\"text-light\"><i class=\"fab fa-linkedin\"></i> LinkedIn</a></li>",
" </ul>",
" </div>",
" </div>",
" </div>",
"</footer>"
],
"description": "Create a footer with social media links"
},
"HTML Input Text": {
"prefix": "input-text",
"body": [
"<input type=\"text\" name=\"$1\" placeholder=\"$2\">"
],
"description": "Create a text input field"
},
"HTML Input Password": {
"prefix": "input-password",
"body": [
"<input type=\"password\" name=\"$1\" placeholder=\"$2\">"
],
"description": "Create a password input field"
},
"HTML Input Email": {
"prefix": "input-email",
"body": [
"<input type=\"email\" name=\"$1\" placeholder=\"$2\">"
],
"description": "Create an email input field"
},
"HTML Input Number": {
"prefix": "input-number",
"body": [
"<input type=\"number\" name=\"$1\" placeholder=\"$2\">"
],
"description": "Create a number input field"
},
"HTML Input Tel": {
"prefix": "input-tel",
"body": [
"<input type=\"tel\" name=\"$1\" placeholder=\"$2\">"
],
"description": "Create a telephone input field"
},
"HTML Input URL": {
"prefix": "input-url",
"body": [
"<input type=\"url\" name=\"$1\" placeholder=\"$2\">"
],
"description": "Create a URL input field"
},
"HTML Input Search": {
"prefix": "input-search",
"body": [
"<input type=\"search\" name=\"$1\" placeholder=\"$2\">"
],
"description": "Create a search input field"
},
"HTML Input Date": {
"prefix": "input-date",
"body": [
"<input type=\"date\" name=\"$1\">"
],
"description": "Create a date input field"
},
"HTML Input Time": {
"prefix": "input-time",
"body": [
"<input type=\"time\" name=\"$1\">"
],
"description": "Create a time input field"
},
"HTML Input Color": {
"prefix": "input-color",
"body": [
"<input type=\"color\" name=\"$1\">"
],
"description": "Create a color picker input field"
},
"HTML Input Checkbox": {
"prefix": "input-checkbox",
"body": [
"<input type=\"checkbox\" name=\"$1\"> $2"
],
"description": "Create a checkbox input field"
},
"HTML Input Radio": {
"prefix": "input-radio",
"body": [
"<input type=\"radio\" name=\"$1\" value=\"$2\"> $3"
],
"description": "Create a radio button input field"
},
"HTML Input File": {
"prefix": "input-file",
"body": [
"<input type=\"file\" name=\"$1\">"
],
"description": "Create a file upload input field"
},
"HTML Input Range": {
"prefix": "input-range",
"body": [
"<input type=\"range\" name=\"$1\" min=\"$2\" max=\"$3\">"
],
"description": "Create a range slider input field"
},
"HTML Input Hidden": {
"prefix": "input-hidden",
"body": [
"<input type=\"hidden\" name=\"$1\" value=\"$2\">"
],
"description": "Create a hidden input field"
},
"HTML Input Submit": {
"prefix": "input-submit",
"body": [
"<input type=\"submit\" value=\"$1\">"
],
"description": "Create a submit button"
},
"HTML Input Reset": {
"prefix": "input-reset",
"body": [
"<input type=\"reset\" value=\"$1\">"
],
"description": "Create a reset button"
},
"HTML Input Button": {
"prefix": "input-button",
"body": [
"<input type=\"button\" value=\"$1\">"
],
"description": "Create a button input field"
},
"a": {
"prefix": "a",
"body": "<a href=\"$1\">$2</a>$3",
"description": "HTML - Defines a hyperlink"
},
"abbr": {
"prefix": "abbr",
"body": "<abbr title=\"$1\">$2</abbr>$3",
"description": "HTML - Defines an abbreviation"
},
"address": {
"prefix": "address",
"body": [
"<address>",
"\t$1",
"</address>"
],
"description": "HTML - Defines an address element"
},
"area": {
"prefix": "area",
"body": "<area shape=\"$1\" coords=\"$2\" href=\"$3\" alt=\"$4\">$5",
"description": "HTML - Defines an area inside an image map"
},
"article": {
"prefix": "article",
"body": [
"<article>",
"\t$1",
"</article>"
],
"description": "HTML - Defines an article"
},
"aside": {
"prefix": "aside",
"body": [
"<aside>",
"\t$1",
"</aside>$2"
],
"description": "HTML - Defines content aside from the page content"
},
"audio": {
"prefix": "audio",
"body": [
"<audio controls>",
"\t$1",
"</audio>"
],
"description": "HTML - Defines sounds content"
},
"b": {
"prefix": "b",
"body": "<b>$1</b>$2",
"description": "HTML - Defines bold text"
},
"base": {
"prefix": "base",
"body": "<base href=\"$1\" target=\"$2\">$3",
"description": "HTML - Defines a base URL for all the links in a page"
},
"bdi": {
"prefix": "bdi",
"body": "<bdi>$1</bdi>$2",
"description": "HTML - Used to isolate text that is of unknown directionality"
},
"bdo": {
"prefix": "bdo",
"body": [
"<bdo dir=\"$1\">",
"\t$2",
"</bdo>"
],
"description": "HTML - Defines the direction of text display"
},
"big": {
"prefix": "big",
"body": "<big>$1</big>$2",
"description": "HTML - Used to make text bigger"
},
"blockquote": {
"prefix": "blockquote",
"body": [
"<blockquote cite=\"$2\">",
"\t$1",
"</blockquote>"
],
"description": "HTML - Defines a long quotation"
},
"body": {
"prefix": "body",
"body": [
"<body>",
"\t$1",
"</body>"
],
"description": "HTML - Defines the body element"
},
"br": {
"prefix": "br",
"body": "<br>",
"description": "HTML - Inserts a single line break"
},
"button": {
"prefix": "button",
"body": "<button type=\"$1\">$2</button>$3",
"description": "HTML - Defines a push button"
},
"canvas": {
"prefix": "canvas",
"body": "<canvas id=\"$1\">$2</canvas>$3",
"description": "HTML - Defines graphics"
},
"caption": {
"prefix": "caption",
"body": "<caption>$1</caption>$2",
"description": "HTML - Defines a table caption"
},
"cite": {
"prefix": "cite",
"body": "<cite>$1</cite>$2",
"description": "HTML - Defines a citation"
},
"code": {
"prefix": "code",
"body": "<code>$1</code>$2",
"description": "HTML - Defines computer code text"
},
"col": {
"prefix": "col",
"body": "<col>$2",
"description": "HTML - Defines attributes for table columns"
},
"colgroup": {
"prefix": "colgroup",
"body": [
"<colgroup>",
"\t$1",
"</colgroup>"
],
"description": "HTML - Defines a group of table columns"
},
"command": {
"prefix": "command",
"body": "<command>$1</command>$2",
"description": "HTML - Defines a command button [not supported]"
},
"datalist": {
"prefix": "datalist",
"body": [
"<datalist>",
"\t$1",
"</datalist>"
],