-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_finetune_html.json
3188 lines (3188 loc) · 472 KB
/
data_finetune_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
[
{
"instruction": "Generate the HTML code for a page with a centered headline that says \"My Portfolio\".",
"input": "",
"output": "<html>\n <head>\n <title>My Portfolio</title>\n </head>\n <body>\n <center>\n <h1>My Portfolio</h1>\n </center>\n </body>\n</html>"
},
{
"instruction": "Edit the following HTML structure to include the Bootstrap 4 library.",
"input": "<html>\n<head>\n <title>My Web Page</title>\n</head>\n<body>\n\n</body>\n</html>",
"output": "<html>\n<head>\n <title>My Web Page</title>\n <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css\" integrity=\"sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z\" crossorigin=\"anonymous\">\n <script src=\"https://code.jquery.com/jquery-3.5.1.slim.min.js\" integrity=\"sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj\" crossorigin=\"anonymous\"></script>\n <script src=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js\" integrity=\"sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN\" crossorigin=\"anonymous\"></script>\n <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js\" integrity=\"sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV\" crossorigin=\"anonymous\"></script>\n</head>\n<body>\n\n</body>\n</html>"
},
{
"instruction": "Create an HTML page containing a login form with the following fields: username, password, and submit button.",
"input": "",
"output": "<html>\n <head>\n <title>Login Form</title>\n </head>\n <body>\n <form action=\"/login\" method=\"POST\">\n <input type=\"text\" name=\"username\" placeholder=\"Username\"/>\n <input type=\"password\" name=\"password\" placeholder=\"Password\"/>\n <input type=\"submit\" value=\"Submit\"/>\n </form>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page with a text input form and a submit button.",
"input": "",
"output": "<html>\n <head>\n <title>Text Input Form</title>\n </head>\n <body>\n <form action=\"/submit\" method=\"POST\">\n <input type=\"text\" name=\"input\" placeholder=\"Enter Text\"/>\n <input type=\"submit\" value=\"Submit\"/>\n </form>\n </body>\n</html>"
},
{
"instruction": "Write an HTML page that displays a table containing the following columns: \"Name\", \"Age\", and \"Marital Status\".",
"input": "",
"output": "<html>\n<head>\n <title>Example Table</title>\n</head>\n<body>\n <table>\n <tr>\n <th>Name</th>\n <th>Age</th>\n <th>Marital Status</th>\n </tr>\n <tr>\n <td>John</td>\n <td>25</td>\n <td>Single</td>\n </tr>\n <tr>\n <td>Jane</td>\n <td>30</td>\n <td>Married</td>\n </tr>\n </table>\n</body>\n</html>"
},
{
"instruction": "Construct a basic HTML page that renders a heading, a description of the page, and a photo.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>My Page</title>\n </head>\n <body>\n <h1>My Page</h1>\n <p>This is my first HTML page.</p>\n <img src=\"sample-image.jpg\" alt=\"sample image\">\n </body>\n</html>"
},
{
"instruction": "Create a HTML page with a list of items.",
"input": "",
"output": "<html>\n <head>\n <title>My List</title>\n </head>\n <body>\n <h1>My List</h1>\n <ul>\n <li>Item 1</li>\n <li>Item 2</li>\n <li>Item 3</li>\n </ul>\n </body>\n</html>"
},
{
"instruction": "Create a website using HTML and CSS.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n\n<head>\n <title>My Website</title>\n <link rel=\"stylesheet\" href=\"style.css\">\n<head>\n\n<body>\n <h1>My Website</h1>\n\n <div class=\"content\">\n Content goes here.\n </div>\n\n</body>\n\n</html>\n\n//style.css\nbody {\n font-family: sans-serif;\n font-size: 14px;\n color: #000;\n background-color: #fff;\n}\n\nh1 {\n text-align: center;\n color: #444;\n font-size: 20px;\n margin-top: 20px;\n}\n\n.content {\n font-size: 12px;\n padding: 10px;\n}"
},
{
"instruction": "Write HTML code to create a navigation bar with links to Home and About pages.",
"input": "",
"output": "<div>\n <ul>\n <li><a href=\"/home\">Home</a></li>\n <li><a href=\"/about\">About</a></li>\n </ul>\n</div>"
},
{
"instruction": "Create a HTML page which includes a header, subheader and a paragraph of text.",
"input": "",
"output": "<html>\n<head>\n <title>My Page</title>\n</head>\n<body>\n <h1>My Page</h1>\n <h2>Subheader</h2>\n <p>This is some text in my page.</p>\n</body>\n</html>"
},
{
"instruction": "Create a HTML form with a username and password text box",
"input": "",
"output": "<html>\n <body>\n\n <form action=\"\">\n <p>\n Username: <input type=\"text\" name=\"username\" />\n </p>\n <p>\n Password: <input type=\"password\" name=\"password\" />\n </p>\n <p>\n <input type=\"submit\" value=\"Submit\" />\n </p>\n </form>\n\n </body>\n</html>"
},
{
"instruction": "Use HTML and CSS to create a navigation bar.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <style>\n nav {\n position: relative;\n background-color: #e9ecef;\n display: flex;\n z-index: 999;\n }\n\n nav ul {\n list-style-type: none;\n margin: 0;\n padding: 0;\n }\n\n nav li {\n float: left;\n font-size: 14px;\n }\n </style>\n\n</head>\n<body>\n <nav>\n <ul>\n <li>Home</li>\n <li>About</li>\n <li>Contact</li>\n </ul>\n </nav>\n</body>\n</html>"
},
{
"instruction": "Create a HTML page that contains a text box and a submit button.",
"input": "",
"output": "<html> \n<head> \n<title>Input Form</title> \n</head> \n<body> \n<form> \n <input type=\"text\" name=\"inputbox\"> \n <input type=\"submit\" value=\"Submit\"> \n</form> \n</body>\n</html>"
},
{
"instruction": "Write a HTML page that has a section of two columns and six rows.",
"input": "",
"output": "<html>\n <head> \n <style> \n .section {\n display:flex; \n flex-direction:row; \n }\n .cell {\n flex: 0 1 50%; \n } \n </style> \n </head> \n <body> \n <div class=\"section\"> \n <div class=\"cell\"></div> \n <div class=\"cell\"></div>\n </div> \n <div class=\"section\"> \n <div class=\"cell\"></div> \n <div class=\"cell\"></div>\n </div> \n <div class=\"section\"> \n <div class=\"cell\"></div> \n <div class=\"cell\"></div>\n </div> \n <div class=\"section\"> \n <div class=\"cell\"></div> \n <div class=\"cell\"></div>\n </div> \n <div class=\"section\"> \n <div class=\"cell\"></div> \n <div class=\"cell\"></div>\n </div> \n <div class=\"section\"> \n <div class=\"cell\"></div> \n <div class=\"cell\"></div>\n </div> \n </body>\n</html>"
},
{
"instruction": "Create an HTML page given a logo and some text.",
"input": "Logo: <img src=\"example_logo.png\">\nText: Hello, world!",
"output": "<html>\n <head>\n <title>Example Page</title>\n </head>\n <body>\n <div>\n <img src=\"example_logo.png\" alt=\"Example Logo\" />\n </div>\n <div>Hello, world!</div>\n </body>\n</html>"
},
{
"instruction": "Using HTML and JavaScript, write a script to display the current date in the format \"Monday, June 15th\"",
"input": "",
"output": "<html>\n <head>\n <title>Displaying Date</title>\n \n <script type=\"text/javascript\">\n function getDate() \n {\n var d = new Date();\n var month = [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"];\n \n var day = d.getDate();\n var sup = \"\";\n if (day == 1 || day == 21 || day ==31)\n {\n sup = \"st\";\n }\n else if (day == 2 || day == 22)\n {\n sup = \"nd\";\n }\n else if (day == 3 || day == 23)\n {\n sup = \"rd\";\n }\n else\n {\n sup = \"th\";\n }\n \n alert(\"Today is \" + d.getDay() + \" \" + month[d.getMonth()] + \" \" + day + sup);\n }\n </script>\n </head>\n<body> \n <input type=\"button\" onclick=\"getDate()\" value=\"Click Me to Get the Date\">\n</body>\n</html>"
},
{
"instruction": "Edit the following HTML page to contain two headings, 'Welcome to my website' and 'About Us'.",
"input": "<html>\n</html>",
"output": "<html>\n <head>\n <title>Welcome to my Website</title>\n </head>\n <body>\n <h1>Welcome to my Website</h1>\n <h2>About Us</h2>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page that contains a simple form with two input fields.",
"input": "",
"output": "<html>\n<head>\n <title>Simple Form</title>\n</head>\n<body>\n <form name=\"form1\" action=\"\">\n <input type=\"text\" name=\"nameField\" placeholder=\"Name\">\n <input type=\"text\" name=\"emailField\" placeholder=\"Email\">\n <input type=\"submit\" value=\"Submit\">\n </form>\n</body>\n</html>"
},
{
"instruction": "Create a HTML page which displays the text \"Hello World!\"",
"input": "",
"output": "<html>\n <head>\n <title>Hello World!</title>\n </head>\n <body>\n <h1>Hello World!</h1>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page with a button and a tag cloud",
"input": "",
"output": "<html>\n <head>\n <title>Tag Cloud</title>\n <style>\n .tag-cloud {\n position: relative;\n font-size: 0;\n }\n\n .tag {\n display: inline-block;\n border-radius: 10px;\n padding: 10px 20px;\n font-size: 15px;\n margin: 10px;\n background: #999;\n }\n\n button {\n position: absolute;\n bottom: 5px;\n right: 5px;\n }\n </style>\n </head>\n <body>\n <div class=\"tag-cloud\">\n <div class=\"tag\">Tag1</div>\n <div class=\"tag\">Tag2</div>\n <div class=\"tag\">Tag3</div>\n <div class=\"tag\">Tag4</div>\n <div class=\"tag\">Tag5</div>\n </div>\n <button>Show Tags</button>\n </body>\n</html>"
},
{
"instruction": "Create a web page with two radio buttons and two text inputs",
"input": "",
"output": "<html>\n<head>\n <title>Form</title>\n</head>\n<body>\n <h2>Form</h2>\n <form action=\"\">\n <input type=\"radio\" name=\"gender\" value=\"male\"> Male<br>\n <input type=\"radio\" name=\"gender\" value=\"female\"> Female<br><br>\n\n <label for=\"name\">Name: </label>\n <input type=\"text\" name=\"name\" id=\"name\"><br>\n\n <label for=\"age\">Age: </label>\n <input type=\"text\" name=\"age\" id=\"age\"><br>\n\n <input type=\"submit\" value=\"Submit\">\n </form>\n</body>\n</html>"
},
{
"instruction": "Modify the following HTML code to insert a paragraph with the text \"Hello, world!\"",
"input": "<div>\n <h1>This is a heading</h1>\n</div>",
"output": "<div>\n <h1>This is a heading</h1>\n <p>Hello, world!</p>\n</div>"
},
{
"instruction": "Create a HTML page with a heading \"Welcome to my Website\"",
"input": "",
"output": "<html> \n <head> \n <title>Welcome to my Website</title> \n </head> \n <body> \n <h1>Welcome to my Website</h1> \n </body> \n</html>"
},
{
"instruction": "Create an HTML page that displays an ordered list of strings provided in an array.",
"input": "",
"output": "<html>\n<body>\n<h1>My List</h1>\n<ol>\n <li>String1</li>\n <li>String2</li>\n <li>String3</li>\n <!-- and so on --> \n</ol>\n</body>\n</html>"
},
{
"instruction": "Write an HTML page that displays your name and the names of your three favorite hobbies",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>My Hobbies</title>\n </head>\n <body>\n <p>My name is John Doe and my three favorite hobbies are music, reading, and hiking.</p>\n </body>\n</html>"
},
{
"instruction": "Create a web page to display a list of blog posts.",
"input": "",
"output": "<html>\n<head></head>\n<body>\n <h2>List of Blog Posts</h2>\n <div id=\"blog_list\">\n <!-- loop to output blog posts from database -->\n <?php \n $blog_posts = $db->get_blog_posts(); \n foreach($blog_posts as $post): ?>\n <div class=\"post\">\n <h3><?php echo $post['title'] ?></h3>\n <p><?php echo $post['content'] ?></p>\n </div>\n <?php endforeach; ?>\n </div>\n</body>\n</html>"
},
{
"instruction": "Construct a basic HTML page and display the text \"Welcome to my website!\".",
"input": "",
"output": "<html>\n<head>\n <title>Welcome to My Website!</title>\n</head>\n<body>\n <h1>Welcome to My Website!</h1>\n</body>\n</html>"
},
{
"instruction": "Generate a HTML page of a table with user details and each row of the table should contains an 'Edit' button for each user.",
"input": "data = [\n {\"name\": \"John Smith\", \"age\": 32, \"city\": \"New York\"},\n {\"name\": \"Julia Cooper\", \"age\": 28, \"city\": \"Los Angeles\"},\n {\"name\": \"Max Bailey\", \"age\": 36, \"city\": \"London\"}\n]",
"output": "<html>\n <head>\n <title>User Details</title>\n </head>\n <body>\n <table>\n <th>Name</th>\n <th>Age</th>\n <th>City</th>\n <th>Edit</th>\n {% for user in data %}\n <tr>\n <td>{{ user.name }}</td>\n <td>{{ user.age }}</td>\n <td>{{ user.city }}</td>\n <td><button onclick=\"editUser({{ user.name }},'{{ user.age }}','{{ user.city }}')\">Edit</button></td>\n </tr>\n {% endfor %}\n </table>\n </body>\n</html>"
},
{
"instruction": "Write an HTML webpage that displays the given text in two columns side by side",
"input": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ornare et ipsum at mollis. Duis in euismod dui.</p>",
"output": "<html>\n <head>\n <style>\n .column {\n float: left;\n width: 50%;\n }\n .row::after {\n content: \"\";\n clear: both;\n display: table;\n }\n </style>\n </head>\n <body>\n <div class=\"row\">\n <div class=\"column\">\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus ornare et \n </div>\n <div class=\"column\">\n ipsum at mollis. Duis in euismod dui.\n </div>\n </div>\n </body>\n</html>"
},
{
"instruction": "Create a web page with a simple registration form that contains fields for username, password, and email.",
"input": "",
"output": "<html>\n <head>\n <title>Registration Form</title>\n </head>\n\n <body>\n <h1>Registration Form</h1>\n \n <form action=\"\">\n <label for=\"username\">Username:</label><br>\n <input type=\"text\" name=\"username\" id=\"username\"><br><br>\n\n <label for=\"password\">Password:</label><br>\n <input type=\"password\" name=\"password\" id=\"password\"><br><br>\n\n <label for=\"email\">Email:</label><br>\n <input type=\"email\" name=\"email\" id=\"email\"><br><br>\n \n <input type=\"submit\" value=\"Submit\">\n </form>\n </body>\n</html>"
},
{
"instruction": "Compile and execute this HTML program to display \"Hello World\" on the screen.",
"input": "<html>\n <body>\n <h1>Hello World</h1>\n </body>\n</html>",
"output": "<html>\n <body>\n <h1>Hello World</h1>\n </body>\n</html>\n\nHello World"
},
{
"instruction": "Using HTML and CSS, create an interactive button.",
"input": "",
"output": "<html>\n<head>\n<style>\n.button {\n background-color: #4CAF50; /* Green */\n border: none;\n color: white;\n padding: 15px 32px;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n font-size: 16px;\n margin: 4px 2px;\n cursor: pointer;\n}\n</style>\n</head>\n<body>\n\n<h1>Interactive Button</h1>\n\n<button class=\"button\">Click Me!</button>\n\n</body>\n</html>"
},
{
"instruction": "Write a CSS HTML snippet to create the following design.",
"input": "",
"output": "<div>\n <div class=\"first\">\n <div class=\"square\">1</div>\n <div class=\"square\">2</div>\n <div class=\"square\">3</div>\n </div>\n <div class=\"second\">\n <div class=\"square\">4</div>\n <div class=\"square\">5</div>\n <div class=\"square\">6</div>\n </div>\n</div>\n\n<style>\n .first, .second{\n display: flex;\n }\n .square {\n background: #000;\n padding: 10px;\n margin: 5px;\n font-weight: bold;\n color: #FFF;\n width: 30px;\n height: 30px;\n }\n</style>"
},
{
"instruction": "Create a web page in HTML with a heading and a paragraph of text.",
"input": "",
"output": "<html>\n <head>\n <title>My Page</title>\n </head>\n <body>\n <h1>Welcome to My Page</h1>\n <p>This is my page and I'm so excited for you to visit!</p>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page with a form to capture the user's name and age.",
"input": "",
"output": "<html>\n <head><title>User Information Form</title></head>\n <body>\n <h2>User Information Form</h2>\n <form action=\"user_information.php\" method=\"post\">\n <p>Name: <input type=\"text\" name=\"name\"></p>\n <p>Age: <input type=\"number\" name=\"age\"></p>\n <input type=\"submit\" value=\"Submit\">\n </form>\n </body>\n</html>"
},
{
"instruction": "Modify the html string below by removing the < h2> and </ h2> tags.",
"input": "<div>\n <h2>Task Instructions</h2>\n <p>Write a program to calculate the area and perimeter of a rectangle.</p>\n</div>",
"output": "<div>\n <p>Write a program to calculate the area and perimeter of a rectangle.</p>\n</div>"
},
{
"instruction": "Build a HTML page which contains the given string in the format of a paragraph.",
"input": "This is the sample string.",
"output": "<html>\n<body>\n <p>This is the sample string.</p>\n</body>\n</html>"
},
{
"instruction": "Create a html page that displays the following text on the web page.",
"input": "Hello World!!",
"output": "<html>\n <head>\n <title>Hello World!! </title>\n </head>\n <body>\n Hello World!! \n </body>\n</html>"
},
{
"instruction": "Write an HTML template to display a greeting message. The message should include the name of the user who visits the website.",
"input": "username = \"John\"",
"output": "<html>\n\t<head>\n\t\t<title>Greeting Message</title>\n\t</head>\n\t<body>\n\t\t<h1>Hello, {{ username }}!</h1>\n\t</body>\n</html>"
},
{
"instruction": "Create an HTML page where the main content area has a random background color when the page is loaded.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>RandomBackground</title>\n <script>\n window.addEventListener(\"load\",function(){\n var randomColor = \"#\"+((1<<24)*Math.random()|0).toString(16);\n document.querySelector(\"body\").style.background = randomColor;\n });\n </script>\n </head>\n <body>\n </body>\n</html>"
},
{
"instruction": "Create a web page using HTML and CSS that displays a div with some text.",
"input": "",
"output": "<html>\n <head>\n <title>Div Example</title>\n </head>\n <body>\n <div>Hello, welcome to my website!</div>\n </body>\n</html>"
},
{
"instruction": "Create a web page with a centered title and paragraph in HTML.",
"input": "title = \"My First Web Page\"\nparagraph = \"This is my first web page. It is an amazing experience!\"",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>My First Web Page</title>\n </head>\n <body>\n <div class=\"main\">\n <h1 align=\"center\">My First Web Page</h1>\n <p align=\"center\">This is my first web page. It is an amazing experience!</p>\n </div>\n </body>\n</html>"
},
{
"instruction": "Correct the following HTML code to remove mistakes and indentation errors",
"input": "`<html><head><title>My Site</title></head>\n <body>\n <h1>Welcome!</h1><p>My website\n </body>\n </html>`",
"output": "<html>\n <head>\n <title>My Site</title>\n </head>\n <body>\n <h1>Welcome!</h1>\n <p>My website</p>\n </body>\n</html>"
},
{
"instruction": "Create a HTML page with 3 sections, using div tags.",
"input": "",
"output": "<div>\n <div id=\"section1\"> Section 1... </div> \n <div id=\"section2\"> Section 2... </div> \n <div id=\"section3\"> Section 3... </div>\n</div>"
},
{
"instruction": "Create an HTML page to display a table of students",
"input": "Data of students: First name, LastName and Age",
"output": "<html>\n <head> <title>My Student Table </title> </head>\n <body>\n <table>\n <thead>\n <tr>\n <th>First Name</th>\n <th>Last Name</th>\n <th>Age</th>\n </tr>\n </thead>\n <tbody>\n {% for firstName, lastName, age in studentsList %}\n <tr>\n <td>{{ firstName }}</td>\n <td>{{ lastName }}</td>\n <td>{{ age }}</td>\n </tr>\n {% endfor %}\n </tbody>\n </table>\n </body>\n</html>"
},
{
"instruction": "Improve the following HTML structure.",
"input": "<div>\n<h2>Welcome!</h2>\n<p>This is my website.</p>\n</div>",
"output": "<div>\n <h2>Welcome!</h2>\n <p>Hello and welcome to my website. Here, you can find all the information you need to know about me.</p>\n</div>"
},
{
"instruction": "Design a webpage with a given template.",
"input": "Template: Pink and Purple with three-column layout",
"output": "<html>\n<head>\n <title>Pink and Purple Layout</title>\n <style>\n body {\n background-color: pink;\n }\n #container {\n display: flex;\n }\n #container > div {\n flex: 1;\n background-color: purple;\n }\n </style>\n</head>\n<body>\n <div id=\"container\">\n <div></div>\n <div></div>\n <div></div>\n </div>\n</body>\n</html>"
},
{
"instruction": "Create a HTML page that displays the words \"Hello, World!\" in different colors.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Hello World Page</title>\n <style>\n h1 {\n color: red;\n }\n\n h2 {\n color: blue;\n }\n\n h3 {\n color: green;\n }\n </style>\n</head>\n<body>\n <h1>Hello, World!</h1>\n <h2>Hello, World!</h2>\n <h3>Hello, World!</h3>\n</body>\n</html>"
},
{
"instruction": "Create a HTML page with a heading 2 of \"Operating System\".",
"input": "",
"output": "<html>\n<head>\n <title>Operating System</title>\n</head>\n<body>\n <h2>Operating System</h2>\n\n</body>\n</html>"
},
{
"instruction": "Write an HTML page including the given text.",
"input": "This is a test page",
"output": "<html>\n <head>\n <title>Test Page</title>\n </head>\n <body>\n <h1>This is a test page</h1>\n </body>\n</html>"
},
{
"instruction": "Create a simple web page with a div element and a child paragraph element.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Simple Web Page</title>\n </head>\n\n <body>\n <div>\n <p>The quick brown fox jumps over the lazy dog.</p>\n </div>\n </body>\n</html>"
},
{
"instruction": "Design an HTML page with a table of products and their prices.",
"input": "Table with 5 products and their prices",
"output": "<html>\n <head>\n <title>Product Prices</title>\n </head>\n <body>\n <h1>Product Prices</h1>\n <table>\n <tr>\n <th>Product Name</th><th>Price</th>\n </tr>\n <tr>\n <td>Laptop</td><td>1000</td>\n </tr>\n <tr>\n <td>Keyboard</td><td>50</td>\n </tr>\n <tr>\n <td>Monitor</td><td>200</td>\n </tr>\n <tr>\n <td>Mouse</td><td>30</td>\n </tr>\n <tr>\n <td>Headphones</td><td>50</td>\n </tr>\n </table>\n </body>\n</html>"
},
{
"instruction": "Create a PHP page to add two numbers.",
"input": "",
"output": "<html>\n <head>\n <title>Add two numbers</title>\n </head>\n <body>\n <?php\n if (isset($_POST['add'])) {\n $num1 = $_POST['num1'];\n $num2 = $_POST['num2'];\n $sum = $num1 + $num2;\n ?>\n <p>The sum of <?php echo $num1; ?> and <?php echo $num2; ?> is <?php echo $sum; ?></p>\n <?php\n } else {\n ?>\n <form action=\"add.php\" method=\"post\">\n <label>Enter first number:</label>\n <input type=\"text\" name=\"num1\">\n <br>\n <label>Enter second number:</label>\n <input type=\"text\" name=\"num2\">\n <input type=\"submit\" name=\"add\" value=\"Add\">\n </form>\n <?php\n }\n ?>\n </body>\n</html>"
},
{
"instruction": "Modify the following HTML to apply an external style sheet.",
"input": "<html> \n <head> \n <title>This Is a Test</title> \n </head> \n <body>\n <h1>Hello World!</h1> \n </body>\n</html>",
"output": "<!DOCTYPE html>\n<html> \n <head> \n <title>This Is a Test</title> \n <link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\"> \n </head> \n <body>\n <h1>Hello World!</h1> \n </body>\n</html>"
},
{
"instruction": "Construct a HTML code which opens a popup window.",
"input": "",
"output": "<html>\n <head>\n <title>Popup Window</title>\n </head>\n <body>\n \n <!-- Trigger/Open The Modal -->\n <button id=\"myBtn\">Open Popup Window</button>\n \n <!-- The Modal -->\n <div id=\"myModal\" class=\"modal\">\n\n <!-- Modal content -->\n <div class=\"modal-content\">\n <span class=\"close\">×</span>\n <p>This is the popup window!</p>\n </div>\n\n </div>\n\n <script>\n // Get the modal\n var modal = document.getElementById(\"myModal\");\n\n // Get the button that opens the modal\n var btn = document.getElementById(\"myBtn\");\n\n // Get the <span> element that closes the modal\n var span = document.getElementsByClassName(\"close\")[0];\n\n // When the user clicks the button, open the modal \n btn.onclick = function() {\n modal.style.display = \"block\";\n }\n\n // When the user clicks on <span> (x), close the modal\n span.onclick = function() {\n modal.style.display = \"none\";\n }\n\n // When the user clicks anywhere outside of the modal, close it\n window.onclick = function(event) {\n if (event.target == modal) {\n modal.style.display = \"none\";\n }\n }\n </script>\n </body>\n</html>"
},
{
"instruction": "Write an HTML page that displays a red box.",
"input": "",
"output": "<html>\n <head>\n <title>Red Box</title>\n </head>\n <body>\n <div style=\"width: 200px;height: 200px;background-color: red;\"></div>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page containing a text field and a button.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Input Form</title>\n</head>\n<body>\n <form>\n <input type=\"text\" />\n <input type=\"submit\" value=\"Submit\" />\n </form>\n</body>\n</html>"
},
{
"instruction": "Create a basic HTML structure including an h1 titled \"Welcome\".",
"input": "",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Welcome</title>\n</head>\n<body>\n <h1>Welcome</h1>\n\n</body>\n</html>"
},
{
"instruction": "Create an HTML page with a form that validates a user's email address.",
"input": "",
"output": "<html>\n <head>\n <title>Email Validation Form</title>\n </head>\n <body>\n <h1>Email Validation Form</h1>\n <form action=\"/\" method=\"POST\">\n <input type=\"text\" name=\"email\" placeholder=\"Enter your email address\">\n <button type=\"submit\">Submit</button>\n </form>\n <script>\n let inputField = document.querySelector('input');\n\n inputField.addEventListener('input', function() {\n let emailRegex = /^(([^<>()[\\]\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@(([^<>()[\\]\\.,;:\\s@\\\"]+\\.)+[^<>()[\\]\\.,;:\\s@\\\"]{2,})$/i;\n let isEmailValid = inputField.value.match(emailRegex);\n inputField.style.borderColor = (isEmailValid) ? \"green\" : \"red\";\n });\n </script>\n </body>\n</html>"
},
{
"instruction": "Create a HTML page that containsthe loading icon for a web page request.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Loading Icon</title>\n </head>\n <body>\n <div id=\"loading-icon\">\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n <span></span>\n </div>\n <style type=\"text/css\">\n #loading-icon {\n margin: auto;\n text-align: center;\n width: 120px;\n }\n\n #loading-icon span {\n background-color: #E3EEF6;\n border-radius: 50%;\n display: inline-block;\n height: 10px;\n margin-right: 10px;\n width: 10px;\n animation: loader 2s ease-in infinite;\n }\n\n #loading-icon span:nth-child(1) {\n animation-delay: 0s;\n }\n\n #loading-icon span:nth-child(2) {\n animation-delay: 0.3s;\n }\n\n #loading-icon span:nth-child(3) {\n animation-delay: 0.6s;\n }\n\n #loading-icon span:nth-child(4) {\n animation-delay: 0.9s;\n }\n\n #loading-icon span:nth-child(5) {\n animation-delay: 1.2s;\n }\n\n @keyframes loader {\n 25% { transform: scale(1.3); }\n 50% { transform: scale(1.1); }\n 75% { transform: scale(1.3); }\n }\n </style>\n </body>\n</html>"
},
{
"instruction": "Edit the following HTML code to include a new form field.",
"input": "<html>\n<head>\n <title>My Form</title>\n</head>\n<body>\n <form>\n <label for=\"name\">Name</label>\n <input type=\"text\" id=\"name\">\n </form>\n</body>\n</html>",
"output": "<html>\n<head>\n <title>My Form</title>\n</head>\n<body>\n <form>\n <label for=\"name\">Name</label>\n <input type=\"text\" id=\"name\">\n <label for=\"address\">Address</label>\n <input type=\"text\" id=\"address\">\n </form>\n</body>\n</html>"
},
{
"instruction": "Create a web page with a form for user input of a modified text.",
"input": "",
"output": "<html>\n<body>\n <form action = \"processText.php\" method = \"post\">\n <textarea rows = \"10\" cols = \"30\" name = \"modifiedText\"></textarea><br>\n <input type = \"submit\" value = \"Submit\" />\n </form>\n</body>\n</html>"
},
{
"instruction": "Format the following HTML code into a valid HTML document.",
"input": "<title>My Website!</title><h1>Welcome</h1>",
"output": "<html>\n <head>\n <title>My Website!</title>\n </head>\n <body>\n <h1>Welcome</h1>\n </body>\n</html>"
},
{
"instruction": "Edit this HTML document so the <h1> tag at the top of the page is aligned to the center.",
"input": "<html>\n <head>\n <title>My Page</title> \n </head>\n <body>\n <h1>Page Title</h1>\n </body>\n</html>",
"output": "<html>\n <head>\n <title>My Page</title> \n </head>\n <body>\n <h1 style=\"text-align: center;\">Page Title</h1>\n </body>\n</html>"
},
{
"instruction": "Write a HTML page to create a survey form.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Survey Form</title>\n</head>\n<body>\n <form action=\"/action_page.php\">\n <label for=\"name\">Name:</label><br>\n <input type=\"text\" id=\"name\" name=\"name\" placeholder=\"Your name..\" required><br>\n <label for=\"email\">Email:</label><br>\n <input type=\"text\" id=\"email\" name=\"email\" placeholder=\"Your email..\" required><br>\n <label for=\"age\">Age:</label><br>\n <input type=\"number\" id=\"age\" name=\"age\" placeholder=\"Your age..\" required><br><br>\n <fieldset>\n <legend>Gender:</legend>\n <input type=\"radio\" id=\"male\" name=\"gender\" value=\"male\" checked>\n <label for=\"male\">Male</label><br>\n <input type=\"radio\" id=\"female\" name=\"gender\" value=\"female\">\n <label for=\"female\">Female</label><br>\n <input type=\"radio\" id=\"other\" name=\"gender\" value=\"other\">\n <label for=\"other\">Other</label><br>\n </fieldset>\n <fieldset>\n <legend>Interests:</legend>\n <input type=\"checkbox\" id=\"tech\" name=\"tech\" value=\"tech\">\n <label for=\"tech\">Technology</label><br>\n <input type=\"checkbox\" id=\"sport\" name=\"sport\" value=\"sport\">\n <label for=\"sport\">Sports</label><br>\n <input type=\"checkbox\" id=\"science\" name=\"science\" value=\"science\">\n <label for=\"science\">Science</label><br>\n </fieldset><br>\n <label for=\"comment\">Comment:</label><br>\n <textarea id=\"comment\" name=\"comment\" placeholder=\"Write something..\" style=\"height:90px\"></textarea>\n <br><br>\n <input type=\"submit\" value=\"Submit\">\n </form> \n</body>\n</html>"
},
{
"instruction": "Create a HTML page displaying a table with the following values",
"input": "[{name: 'John', age: 25, country: 'US'}, \n{name: 'Jane', age: 32, country: 'Canada'},\n{name: 'David', age: 28, country: 'Mexico'}]",
"output": "<html>\n<head>\n<title>Table</title>\n</head>\n \n<body>\n \n <table>\n <thead>\n <tr>\n <th>Name</th>\n <th>Age</th>\n <th>Country</th>\n </tr>\n </thead>\n \n <tbody>\n <tr> \n <td>John</td>\n <td>25</td>\n <td>US</td>\n </tr> \n <tr>\n <td>Jane</td>\n <td>32</td>\n <td>Canada</td>\n </tr>\n <tr>\n <td>David</td>\n <td>28</td>\n <td>Mexico</td>\n </tr>\n </tbody>\n </table>\n \n</body>\n</html>"
},
{
"instruction": "Create a HTML page with a search bar.",
"input": "",
"output": "<html>\n <body>\n <h1>Search Page</h1>\n <form action=\"search.php\" type=\"GET\">\n <input type=\"text\" name=\"text\"/>\n <input type=\"submit\" name=\"submit\" value=\"Search\"/> \n </form>\n </body>\n</html>"
},
{
"instruction": "Create a HTML page with text \"Hello, World!\"",
"input": "",
"output": "<html>\n<head>\n <title>Hello, World!</title>\n</head>\n<body>\n <h1>Hello, World!</h1>\n</body>\n</html>"
},
{
"instruction": "Create a HTML page with a table containing five columns and four rows.",
"input": "",
"output": "<html>\n<head>\n <title>Table with Columns and Rows</title>\n</head>\n<body>\n <table>\n <tr>\n <th>Column 1</th>\n <th>Column 2</th>\n <th>Column 3</th>\n <th>Column 4</th>\n <th>Column 5</th>\n </tr>\n <tr>\n <td>Cell 1</td>\n <td>Cell 2</td>\n <td>Cell 3</td>\n <td>Cell 4</td>\n <td>Cell 5</td>\n </tr>\n <tr>\n <td>Cell 6</td>\n <td>Cell 7</td>\n <td>Cell 8</td>\n <td>Cell 9</td>\n <td>Cell 10</td>\n </tr>\n <tr>\n <td>Cell 11</td>\n <td>Cell 12</td>\n <td>Cell 13</td>\n <td>Cell 14</td>\n <td>Cell 15</td>\n </tr>\n </table>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page that has an input field and a button. When the button is clicked, the text from the input field should be printed to the console.",
"input": "",
"output": "<html>\n <head>\n </head>\n <body>\n <input type=\"text\" id=\"myInput\">\n <button onclick=\"printInput()\">Print Input</button>\n \n <script>\n function printInput(){\n const inputVal = document.getElementById(\"myInput\").value;\n console.log(inputVal);\n }\n </script>\n </body>\n</html>"
},
{
"instruction": "Create an HTML form which accepts an input string and returns the longest word in the string",
"input": "Hello world!",
"output": "<html>\n <head>\n <title>Longest word finder</title>\n <script type=\"text/javascript\">\n function longestWordFinder() {\n // Get user input\n const inputString = document.getElementById(\"inputString\").value;\n\n // Split the input string into an array of words\n let words = inputString.split(\" \");\n\n // Iterate through the words array and find the longest word\n let longestWord = words[0];\n for (let i = 1; i < words.length; i++) {\n if (words[i].length > longestWord.length)\n longestWord = words[i];\n }\n\n // Display the result\n document.getElementById(\"result\").innerHTML = longestWord;\n } \n </script>\n </head>\n <body>\n <h1>Longest Word Finder</h1>\n <input type=\"text\" id=\"inputString\" />\n <button type=\"submit\" onclick=\"longestWordFinder()\">Submit</button>\n <p>The longest word is: <span id=\"result\"></span></p>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page with a table that displays the given data.",
"input": "Dessert | Calories\nChocolate Cake | 450\nIce Cream Sundae | 300\nDonut | 350",
"output": "<html>\n<head>\n <title>Calorie Table</title>\n</head>\n<body>\n <h1>Calorie Table</h1>\n <table>\n <thead>\n <th>Dessert</th>\n <th>Calories</th>\n </thead>\n <tbody>\n <tr>\n <td>Chocolate Cake</td>\n <td>450</td>\n </tr>\n <tr>\n <td>Ice Cream Sundae</td>\n <td>300</td>\n </tr>\n <tr>\n <td>Donut</td>\n <td>350</td>\n </tr>\n </tbody>\n </table>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page with a form to sign up for a newsletter.",
"input": "",
"output": "<html>\n<head>\n <title>Newsletter Sign Up</title>\n</head>\n<body>\n <form action=\"submit.html\" method=\"POST\">\n <h1>Newsletter Sign Up</h1>\n Name: <input type=\"text\" name=\"name\"><br>\n Email: <input type=\"email\" name=\"email\"><br>\n <input type=\"submit\" value=\"Submit\">\n </form>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page that displays a table of the 10 most visited countries.",
"input": "Country | Number of Visitors\nUnited States| 206 million\nChina | 61 million\nSpain | 82 million\nUnited Kingdom | 37 million\nGermany | 37 million\nFrance | 86 million\nItaly | 58 million\nTurkey | 39 million\nJapan | 28 million\nRussia | 28 million",
"output": "<html>\n<head>\n <title>Top 10 Visited Countries</title>\n</head>\n<body>\n <h1>Top 10 Visited Countries</h1>\n <table>\n <thead>\n <th>Country</th>\n <th>Number of Visitors</th>\n </thead>\n <tbody>\n <tr>\n <td>United States</td>\n <td>206 million</td>\n </tr>\n <tr>\n <td>China</td>\n <td>61 million</td>\n </tr>\n <tr>\n <td>Spain</td>\n <td>82 million</td>\n </tr>\n <tr>\n <td>United Kingdom</td>\n <td>37 million</td>\n </tr>\n <tr>\n <td>Germany</td>\n <td>37 million</td>\n </tr>\n <tr>\n <td>France</td>\n <td>86 million</td>\n </tr>\n <tr>\n <td>Italy</td>\n <td>58 million</td>\n </tr>\n <tr>\n <td>Turkey</td>\n <td>39 million</td>\n </tr>\n <tr>\n <td>Japan</td>\n <td>28 million</td>\n </tr>\n <tr>\n <td>Russia</td>\n <td>28 million</td>\n </tr>\n </tbody>\n </table>\n</body>\n</html>"
},
{
"instruction": "Create a HTML webpage which displays a list of products.",
"input": "",
"output": "<html>\n <head> \n <title>List Of Products</title>\n </head>\n <body>\n <ul>\n <li>Product 1</li>\n <li>Product 2</li>\n <li>Product 3</li>\n </ul>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page to display a form to enter email and password.",
"input": "",
"output": "<html>\n<head>\n <title>Login Form</title>\n</head>\n<body>\n <h1>Login Form</h1>\n <form>\n Email: <input type=\"text\" name=\"email\" /><br />\n Password: <input type=\"password\" name=\"pwd\" /><br />\n <input type=\"submit\" value=\"Submit\" />\n </form>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page using JavaScript that generates a table with the following data.",
"input": "const data = [\n {\n name: \"John Doe\",\n age: 30,\n city: \"New York\"\n },\n {\n name: \"Jane Smith\",\n age: 25,\n city: \"San Francisco\"\n },\n {\n name: \"Adam Johnson\",\n age: 27,\n city: \"Los Angeles\"\n }\n];",
"output": "<html>\n <head>\n <script>\n function generateTable() {\n const data = [\n {\n name: \"John Doe\",\n age: 30,\n city: \"New York\"\n },\n {\n name: \"Jane Smith\",\n age: 25,\n city: \"San Francisco\"\n },\n {\n name: \"Adam Johnson\",\n age: 27,\n city: \"Los Angeles\"\n }\n ];\n\n let table = document.createElement('table');\n\n // Add Table Headers\n let tableHeaders = \"<tr>\";\n [\"Name\",\"Age\",\"City\"].forEach(header => {\n tableHeaders += `<th>${header}</th>`;\n });\n tableHeaders += \"</tr>\";\n table.innerHTML = tableHeaders;\n\n //Add Table Rows\n data.forEach(datum => {\n let tableRow = document.createElement('tr');\n for (let key in datum) {\n let tableData = document.createElement('td');\n tableData.innerText = datum[key];\n tableRow.appendChild(tableData);\n }\n table.appendChild(tableRow);\n });\n\n document.getElementById('table-container').appendChild(table);\n }\n </script>\n </head>\n <body>\n <div id=\"table-container\"></div>\n <script> generateTable(); </script>\n </body>\n</html>"
},
{
"instruction": "Create a HTML page using a basic text editor",
"input": "",
"output": "<html>\n<head>\n <title>My Title</title>\n</head>\n<body>\n <h1>Hello World!</h1>\n</body>\n</html>"
},
{
"instruction": "Create a HTML page displaying a table of the 10 most disruptive technologies of all time.",
"input": "",
"output": "<html>\n<head>\n <title>Most Disruptive Technologies</title>\n</head>\n<body>\n <h1>Ten Most Disruptive Technologies Of All Time</h1>\n <table>\n <tr>\n <th>Technology</th>\n <th>Description</th>\n </tr>\n <tr>\n <td>The Internet</td>\n <td>A worldwide computer network providing a variety of information and communication facilities.</td>\n </tr>\n <tr>\n <td>Smartphones</td>\n <td>A mobile device that combines the functions of a mobile phone, personal digital assistant, and digital camera.</td>\n </tr>\n <tr>\n <td>The Automobile</td>\n <td>A motor vehicle with four wheels, powered by an internal combustion engine and able to carry a small number of people.</td>\n </tr>\n <tr>\n <td>Electricity</td>\n <td>The presence and flow of electric charge.</td>\n </tr>\n <tr>\n <td>The Airplane</td>\n <td>A powered aircraft that is heavier than air, propelled by one or more engines, and capable of sustained, rising flight in the atmosphere.</td>\n </tr>\n <tr>\n <td>The Computer</td>\n <td>A machine for performing calculations automatically.</td>\n </tr>\n <tr>\n <td>The Steam Engine</td>\n <td>A device for converting the thermal energy of steam into mechanical work or electricity.</td>\n </tr>\n <tr>\n <td>Medical Imaging</td>\n <td>A medical imaging technology that produces visual representations of the inside of a body for medical analysis.</td>\n </tr>\n <tr>\n <td>The Telephone</td>\n <td>A device that converts sound, typically and most efficiently the human voice, into electrical signals.</td>\n </tr>\n <tr>\n <td>Printing Press</td>\n <td>A press used for printing from a plate or block that bears the design to be printed.</td>\n </tr>\n </table>\n</body>\n</html>"
},
{
"instruction": "Construct an HTML page with a title \"My Website\" and a header tag.",
"input": "",
"output": "<!DOCTYPE html>\n<html> \n <head>\n <title>My Website</title>\n </head>\n <body>\n <h1>My Website</h1>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page with a table and list 3 books in it.",
"input": "",
"output": "<html>\n <head>\n <title>Books</title>\n </head>\n <body>\n <table>\n <thead>\n <tr>\n <th>Title</th>\n <th>Author</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>The Catcher in the Rye</td>\n <td>J. D. Salinger</td>\n </tr>\n <tr>\n <td>The Great Gatsby</td>\n <td>F. Scott Fitzgerald</td>\n </tr>\n <tr>\n <td>To Kill a Mockingbird</td>\n <td>Harper Lee</td>\n </tr>\n </tbody>\n </table>\n </body>\n</html>"
},
{
"instruction": "Create an HTML layout for a website. Make sure the layout has a header, a navigation menu, and a footer.",
"input": "",
"output": "<!DOCTYPE html> \n<html> \n <head> \n <title>Webpage Layout</title> \n </head> \n \n <body> \n \n <header> \n <h1>Header</h1> \n </header> \n \n <nav> \n <ul> \n <li>Home</li> \n <li>About</li> \n <li>Contact</li> \n <li>FAQ</li> \n </ul> \n </nav> \n \n <footer> \n <p>Footer</p> \n </footer> \n \n </body> \n</html>"
},
{
"instruction": "Create an HTML5 document with an h1 tag containing the text \"Hello World\".",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Hello World</title>\n </head>\n <body>\n <h1>Hello World</h1>\n </body>\n</html>"
},
{
"instruction": "Create a web page using HTML, CSS and JavaScript that displays a user's full name.",
"input": "const fullName = \"John Doe\";",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>My First Webpage</title>\n</head>\n<body>\n\n <h1>My Full Name</h1>\n <p>My full name is <span id=\"name\">John Doe</span>.</p>\n\n <script>\n const fullName = \"John Doe\";\n document.getElementById('name').innerHTML = fullName;\n </script>\n\n</body>\n</html>"
},
{
"instruction": "Create a HTML page displaying a simple table showing your name, age and occupation.",
"input": "",
"output": "<html>\n<head>\n <title>My Details</title>\n</head>\n<body>\n <table>\n <tr>\n <th>Name</th>\n <th>Age</th> \n <th>Occupation</th> \n </tr>\n <tr>\n <td> Joe Doe</td>\n <td> 25 </td>\n <td> Web Developer </td>\n </tr>\n </table>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page containing a table with four columns that holds data about the population of a country.",
"input": "",
"output": "<html>\n<head>\n <title>Country Population Table</title>\n</head>\n<body>\n <table>\n <tr>\n <th>City</th>\n <th>State</th>\n <th>Population</th>\n <th>Area (sq km)</th>\n </tr>\n <tr>\n <td>New York</td>\n <td>New York</td>\n <td>8.4M</td>\n <td>781</td>\n </tr>\n <tr>\n <td>Los Angeles</td>\n <td>California</td>\n <td>3.9M</td>\n <td>1,214</td>\n </tr>\n <tr>\n <td>Chicago</td>\n <td>Illinois</td>\n <td>2.7M</td>\n <td>606</td>\n </tr>\n </table>\n</body>\n</html>"
},
{
"instruction": "Write a function in HTML to display a list of students sorted by their final grade.",
"input": "var students = [{\n name: \"Tom\",\n grade: 90\n}, {\n name: \"Karl\",\n grade: 75\n}, {\n name: \"Kofi\",\n grade: 65\n}];",
"output": "<html>\n <head>\n <script>\n function sortStudents(students) {\n students.sort((a, b) => (a.grade > b.grade) ? 1 : -1);\n return students;\n }\n var sortedStudents = sortStudents(students);\n document.write('<ul>');\n sortedStudents.forEach(student => {\n document.write('<li>' + student.name + ' - ' + student.grade + '</li>');\n });\n document.write('<ul>');\n </script>\n </head>\n</html>"
},
{
"instruction": "Create an HTML page that prints \"Hello World!\" and displays the examples using a font size of 8px.",
"input": "",
"output": "<html>\n <head>\n <title>Hello World!</title>\n </head>\n <body>\n <p style=\"font-size: 8px;\">Hello World!</p>\n </body>\n</html>"
},
{
"instruction": "Create an HTML document that displays a list of 5 items.",
"input": "List of items:\nApple\nBanana\nOrange\nKiwi\nMango",
"output": "<html>\n<body>\n <ul>\n <li>Apple</li>\n <li>Banana</li>\n <li>Orange</li>\n <li>Kiwi</li>\n <li>Mango</li>\n </ul>\n</body>\n</html>"
},
{
"instruction": "Edit the following HTML page and add a link to an existing page on the internet.",
"input": "<html>\n <header>\n <title>My Page</title>\n </header>\n</html>",
"output": "<html>\n <header>\n <title>My Page</title>\n </header>\n <body>\n <a href=\"https://www.example.com\">Link to Example</a>\n </body>\n</html>"
},
{
"instruction": "Create an HTML document with a table containing book information.",
"input": "",
"output": "<html>\n <body>\n <h2>Book Information</h2>\n <table>\n <tr>\n <th>Title</th>\n <th>Author</th>\n <th>Price</th>\n </tr>\n <tr>\n <td>Harry Potter and the Sorcerer's Stone</td>\n <td>J.K. Rowling</td>\n <td>$10.99</td>\n </tr>\n <tr>\n <td>The Cat in the Hat</td>\n <td>Dr. Seuss</td>\n <td>$7.99</td>\n </tr>\n </table>\n </body>\n</html>"
},
{
"instruction": "Write an HTML page with a form which takes the input of an email address and a password and sends an email to the given address.",
"input": "",
"output": "<html>\n <head>\n <title>Form Email</title>\n <meta charset=\"utf-8\" />\n </head>\n <body>\n <form method=\"post\" action=\"send-email.php\">\n <label>Email: \n <input type=\"text\" name=\"email\" />\n </label>\n <label>Password: \n <input type=\"password\" name=\"password\" />\n </label>\n <input type=\"submit\" value=\"Send Email\" />\n </form>\n </body>\n </html>"
},
{
"instruction": "Create an HTML page that includes a form.",
"input": "The form should have inputs for a first name, last name, email, favorite color, and a submit button.",
"output": "<html> \n <body> \n <form action=\"\" method=\"post\"> \n First Name: <input type=\"text\" name=\"firstname\"><br> \n Last Name: <input type=\"text\" name=\"lastname\"><br> \n Email: <input type=\"text\" name=\"email\"><br> \n Favorite Color: <input type=\"text\" name=\"favoritecolor\"><br> \n <input type=\"submit\" value=\"Submit\"> \n </form> \n </body> \n</html>"
},
{
"instruction": "Create a HTML web page that displays \"Welcome To My Page\" with a heading level 2.",
"input": "",
"output": "<html>\n <head>\n <title>Welcome To My Page</title>\n </head>\n <body>\n <h2>Welcome To My Page</h2>\n </body>\n</html>"
},
{
"instruction": "Write a number of HTML tags such that their end tags are mismatched.",
"input": "",
"output": "<html>\n <head>\n <title>Test</title>\n </head>\n <body>\n <h1>My Heading</h1>\n <p>This is a test.\n </body>\n</html>"
},
{
"instruction": "Create an HTML webpage to display a welcome message.",
"input": "",
"output": "<html> \n <head> \n <title>Welcome</title> \n </head> \n <body>\n <h1>Welcome!</h1>\n </body>\n</html>"
},
{
"instruction": "Write an HTML webpage to display a table with employee details.",
"input": "",
"output": "<html> \n <head> \n <title>Employee Details</title>\n </head>\n <body>\n <h2>Employee Details</h2>\n\n <table> \n <thead> \n <tr> \n <th>Name</th> \n <th>Age</th> \n <th>Salary</th> \n </tr>\n </thead> \n <tbody>\n <tr> \n <td>John</td> \n <td>30</td> \n <td>50,000</td> \n </tr> \n <tr> \n <td>Alice</td> \n <td>27</td> \n <td>45,000</td> \n </tr> \n <tr> \n <td>Vinod</td> \n <td>35</td> \n <td>70,000</td> \n </tr> \n </tbody> \n </table>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page to display the attendance of students in an academic year.",
"input": "Attendance Data:\n\nStudent Name: John Doe\nAttendance in 2020-21 academic year - 91%.\n\nStudent Name: Jane Smith\nAttendance in 2020-21 academic year - 94%.",
"output": "<!DOCTYPE html>\n<html>\n<head>\n<title> Student Attendance </title>\n<style type=\"text/css\">\nh1 {\n font-family: sans-serif; \n}\ntable {\n font-family: sans-serif;\n border-collapse: collapse;\n}\ntd {\n border: 1px solid #dddddd;\n padding: 8px;\n}\n</style>\n</head>\n\n<body>\n<h1> Student Attendance </h1>\n<table>\n<tr>\n<th>Student Name</th>\n<th>Attendance (%)</th>\n</tr>\n<tr>\n <td>John Doe</td>\n <td>91%</td>\n</tr>\n<tr>\n <td>Jane Smith</td>\n <td>94%</td>\n</tr>\n</table>\n</body>\n</html>"
},
{
"instruction": "Create a HTML page to display a weather forecast for the selected city.",
"input": "City: London\nWeather Forecast:\n\nDay 1 - Clear Sky\nDay 2 - Cloudy\nDay 3 - Rain",
"output": "<!DOCTYPE html>\n<html>\n<head>\n<title>Weather Forecast</title>\n</head>\n<body>\n\n<h1>Weather Forecast - London</h1>\n\n<p>Day 1 - Clear Sky</p>\n<p>Day 2 - Cloudy</p>\n<p>Day 3 - Rain</p>\n\n</body>\n</html>"
},
{
"instruction": "Create an HTML page that displays \"Welcome to our website\" when you first visit the page",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Welcome to our website</title>\n</head>\n<body>\n <h1>Welcome to our website!</h1>\n</body>"
},
{
"instruction": "Create an HTML page that displays a table with names, ages, and phone numbers",
"input": "Name: John\nAge: 25\nPhone: 555-555-5555\nName: Jane\nAge: 32\nPhone: 333-333-3333",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Table of Names and Information</title>\n</head>\n<body>\n <table>\n <tr>\n <th>Name</th>\n <th>Age</th>\n <th>Phone</th>\n </tr>\n <tr>\n <td>John</td>\n <td>25</td>\n <td>555-555-5555</td>\n </tr>\n <tr>\n <td>Jane</td>\n <td>32</td>\n <td>333-333-3333</td>\n </tr>\n </table>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page that contains the following table.",
"input": "<table>\n <tr>\n <th>Name</th>\n <th>Age</th>\n <th>City</th>\n </tr>\n <tr>\n <td>John Doe</td>\n <td>23</td>\n <td>New York</td>\n </tr>\n <tr>\n <td>Trish Smith</td>\n <td>29</td>\n <td>Philadelphia</td>\n </tr>\n</table>",
"output": "<html>\n<head>\n <title>Table Sample</title>\n</head>\n<body>\n <table>\n <tr>\n <th>Name</th>\n <th>Age</th>\n <th>City</th>\n </tr>\n <tr>\n <td>John Doe</td>\n <td>23</td>\n <td>New York</td>\n </tr>\n <tr>\n <td>Trish Smith</td>\n <td>29</td>\n <td>Philadelphia</td>\n </tr>\n </table>\n</body>\n</html>"
},
{
"instruction": "Edit the following HTML page so the text appears in bold.",
"input": "<html>\n <head>\n <title>Text Sample</title>\n </head>\n <body>\n <p>This is a sample text.</p>\n </body>\n</html>",
"output": "<html>\n <head>\n <title>Text Sample</title>\n </head>\n <body>\n <p><b>This is a sample text.</b></p>\n </body>\n</html>"
},
{
"instruction": "Construct an HTML page using valid HTML markup.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>My First HTML Page</title>\n </head>\n <body>\n <h1>Hello World!</h1>\n <p>This is my first HTML page.</p>\n </body>\n</html>"
},
{
"instruction": "You are given a code snippet of a web page. Fill in the missing tags to make it valid HTML.",
"input": "<html>\n <head>\n <title>My Homepage</title>\n </head>\n<body>\n <h1>Welcome to My Homepage</h1>\n <p>Hello, I'm John and this is my homepage. This is where I share my interests with the world.</p>\n</body>\n</html>",
"output": "<html>\n <head>\n <title>My Homepage</title>\n </head>\n <body>\n <h1>Welcome to My Homepage</h1>\n <p>Hello, I'm John and this is my homepage. This is where I share my interests with the world.</p>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page to display a table with 2 columns: Description and Price.",
"input": "",
"output": "<html>\n <head>\n <title>Price Table</title>\n </head>\n <body>\n <table>\n <tr>\n <th>Description</th>\n <th>Price</th>\n </tr>\n <tr>\n <td>Item 1</td>\n <td>$2.99</td>\n </tr>\n <tr>\n <td>Item 2</td>\n <td>$5.99</td>\n </tr>\n <tr>\n <td>Item 3</td>\n <td>$9.99</td>\n </tr>\n </table>\n </body>\n</html>"
},
{
"instruction": "Update the following line of HTML code to use semantic tags for optimization.",
"input": "<div>Learn HTML Tutorial here</div>",
"output": "<div><h1>Learn HTML Tutorial here</h1></div>"
},
{
"instruction": "Edit the given HTML code to add a footnote section.",
"input": "<code>\n<!DOCTYPE html>\n<html>\n<head>\n <title>Example</title>\n</head>\n<body>\n <h1>This is a Heading</h1>\n <p>This is a paragraph.</p>\n</body>\n</html>",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Example</title>\n</head>\n<body>\n <h1>This is a Heading</h1>\n <p>This is a paragraph.</p>\n <footer>\n <p> Copyright (c) Example.com. All Rights Reserved.</p> \n </footer>\n</body>\n</html>"
},
{
"instruction": "Create a script in HTML to output a horizontal line.",
"input": "",
"output": "<html>\n <head>\n <title>Horizontal Line</title>\n </head>\n <body>\n <hr>\n </body>\n</html>"
},
{
"instruction": "Create an HTML website with navigation, logo and footer.",
"input": "<ninput>",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>My Website</title>\n</head>\n<body>\n <div class=\"navbar\">\n <!-- navigation links here -->\n </div>\n <div class=\"logo\">\n <!-- logo here -->\n </div>\n <div class=\"main-content\">\n <!-- page content here -->\n </div>\n <div class=\"footer\">\n <!-- footer here -->\n </div>\n</body>\n</html>"
},
{
"instruction": "Generate an HTML page with a heading and a paragraph.",
"input": "",
"output": "<html>\n<head>\n <title>My page</title>\n</head>\n<body>\n <h1>My Page</h1>\n <p>This is the content of my page.</p>\n</body>\n</html>"
},
{
"instruction": "Clean up the following HTML string so it can be rendered properly.",
"input": "HTML string:\n\n<div>\n <h1>This is a header</h2>\n <p>paragraph<p>\n</div>",
"output": "<div>\n <h1>This is a header</h1>\n <p>paragraph</p>\n</div>"
},
{
"instruction": "Write an HTML page that displays a single line of text saying \"Hello World\".",
"input": "",
"output": "<html>\n <head>\n <title>Hello World</title>\n </head>\n <body>\n <p>Hello World</p>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page with a navigation bar that links to three other HTML pages.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n<title>My Navigation Page</title>\n</head>\n<body>\n<div>\n <a href=\"page1.html\">Page 1</a>\n <a href=\"page2.html\">Page 2</a>\n <a href=\"page3.html\">Page 3</a>\n</div>\n</body>\n</html>"
},
{
"instruction": "Create a CSS stylesheet that colors the background of a webpage with a random color whenever the page is refreshed.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n<title>Random Background</title>\n<style type=\"text/css\">\n body {\n background-color: <?php echo '#'.str_pad(dechex(mt_rand(0, 0xFFFFFF)), 6, '0', STR_PAD_LEFT); ?>;\n }\n</style>\n</head>\n<body>\n\n</body>\n</html>"
},
{
"instruction": "Create an HTML page to list the students in a class list in a table.",
"input": "",
"output": "<html>\n <head>\n <title>Class List</title>\n </head>\n <body>\n <h2>Class List</h2>\n <table>\n <tr>\n <th>Name</th><th>Age</th><th>Gender</th>\n </tr>\n <tr>\n <td>John Doe</td><td>21</td><td>Male</td>\n </tr>\n <tr>\n <td>Catrine Smith</td><td>18</td><td>Female</td>\n </tr>\n <tr>\n <td>John Wilkins</td><td>19</td><td>Male</td>\n </tr>\n </table>\n </body>\n</html>"
},
{
"instruction": "Reformat the following HTML code to make it better readable.",
"input": "<div><ul><li>Item 1</li><li>Item 2</li></ul></div>",
"output": "<div>\n <ul>\n <li>Item 1</li>\n <li>Item 2</li>\n </ul>\n</div>"
},
{
"instruction": "Create a HTML web page which shows the news for the day.",
"input": "",
"output": "<html>\n<head>\n <title>Today's News</title>\n</head>\n<body>\n <h1>Today's News</h1>\n <div class=\"news-container\">\n <div class=\"news-article\"> ... </div>\n <div class=\"news-article\"> ... </div>\n <div class=\"news-article\"> ... </div>\n </div>\n</body>\n</html>"
},
{
"instruction": "Edit the following HTML code snippet to give the <body> tag the class 'main'.",
"input": "<html>\n <head>\n <title>Page Title</title>\n </head>\n</html>",
"output": "<html>\n <head>\n <title>Page Title</title>\n </head>\n <body class=\"main\">\n </body>\n</html>"
},
{
"instruction": "Design a HTML page to register a new user.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<body>\n<h2>User Registration</h2>\n\n<form action=\"/action_page.php\">\n Username:<br>\n <input type=\"text\" name=\"username\" value=\"\"><br>\n Email:<br>\n <input type=\"text\" name=\"email\" value=\"\"><br><br>\n <input type=\"submit\" value=\"Submit\">\n</form> \n\n</body>\n</html>"
},
{
"instruction": "Create a HTML web page with four different headings.",
"input": "",
"output": "<html>\n<head>\n <title>Headings Page</title>\n</head>\n<body>\n <h1>Heading 1</h1>\n <h2>Heading 2</h2>\n <h3>Heading 3</h3>\n <h4>Heading 4</h4>\n</body>\n</html>"
},
{
"instruction": "Create a HTML email template with placeholder information from a JavaScript object.",
"input": "var data = {\n firstname: 'John',\n lastname: 'Doe',\n email: '[email protected]'\n};",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Email Template</title>\n</head>\n<body>\n <h1>Hello, {{data.firstname}} {{data.lastname}}!</h1>\n <p>This is an automated email sent to you at {{data.email}}.</p>\n <p>Thank you!</p>\n</body>\n</html>"
},
{
"instruction": "Use HTML to create a webpage with a text input field and a button.",
"input": "",
"output": "<html>\n <body>\n <input type=\"text\" id=\"text_input\" />\n <button onclick=\"handleInput()\">Submit</button>\n </body>\n</html>"
},
{
"instruction": "Edit the given HTML structure to center the content in the page.",
"input": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>My First Web Page</title>\n</head>\n<body>\n\n</body>\n</html>",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>My First Web Page</title>\n</head>\n<body style =\"text-align:center;\">\n\n</body>\n</html>"
},
{
"instruction": "Edit a given HTML string so that every word is displayed in bold.",
"input": "<div>This is a sample sentence.</div>",
"output": "<div>\n<strong>This</strong> <strong>is</strong> <strong>a</strong> <strong>sample</strong> <strong>sentence.</strong>\n</div>"
},
{
"instruction": "Design a web page using HTML and CSS.",
"input": "",
"output": "<html>\n <head>\n <title>My webpage</title>\n </head>\n <body>\n <h1>Hello World!</h1>\n <p>Welcome to my webpage.</p>\n </body>\n</html>\n<style>\n body {\n font-family: Arial, sans-serif;\n font-size: 16px;\n }\n</style>"
},
{
"instruction": "Write an HTML page to display a given data table.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Table Display</title>\n </head>\n <body>\n <table>\n <tr>\n <th>Name</th>\n <th>Age</th>\n </tr>\n <tr>\n <td>John</td>\n <td>21</td>\n </tr>\n <tr>\n <td>Jane</td>\n <td>25</td>\n </tr>\n <tr>\n <td>Joe</td>\n <td>30</td>\n </tr>\n </table>\n </body>\n</html>"
},
{
"instruction": "Create an HTML form that, when submitted, displays all the user input on the same page.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>User Input</title>\n</head>\n<body>\n <h1>User Input</h1>\n <form action=\"#\" method=\"post\">\n <label>Name: </label>\n <input type=\"text\" name=\"name\" /><br>\n <label>Email: </label>\n <input type=\"email\" name=\"email\" /><br>\n <label>Country: </label>\n <input type=\"text\" name=\"country\" /><br><br>\n <input type=\"submit\" value=\"Submit\" name=\"submit\" />\n </form>\n<?php\nif(isset($_POST['submit'])){\n $name = $_POST['name'];\n $email = $_POST['email'];\n $country = $_POST['country'];\n echo \"<p>Your name is: $name <br>\";\n echo \"Your email is: $email <br>\";\n echo \"Your country is: $country <br></p>\";\n}\n?>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page with a table showing the results of the following SQL query:",
"input": "SELECT student_name, grade \nFROM students\nORDER BY grade DESC",
"output": "<html>\n <head>\n <title>Student Grades</title>\n </head>\n <body>\n <h2>Student Grades</h2>\n <table>\n <thead>\n <tr>\n <th>Student Name</th>\n <th>Grade</th>\n </tr>\n </thead>\n <tbody>\n <?php\n // Connect to the database\n // Run the query\n // Loop through the results\n ?>\n </tbody>\n </table>\n </body>\n</html>"
},
{
"instruction": "Modify the HTML code with the following: Make all the text bold without changing the fontsize.",
"input": "<div>\n <h1>Welcome</h1>\n <p>This is an example text</p>\n</div>",
"output": "<div>\n <h1><strong>Welcome</strong></h1>\n <p><strong>This is an example text</strong></p>\n</div>"
},
{
"instruction": "Please fix the following broken HTML code.",
"input": "<html>\n <head>\n <title>Test HTML Page\n </head>\n <body>\n/body>\n</html>",
"output": "<html>\n <head>\n <title>Test HTML Page</title>\n </head>\n <body>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page that displays a table containing four columns: first name, last name, age, and city. Put your own data into the columns.",
"input": "",
"output": "<html>\n <head>\n <title>People Table</title>\n </head> \n <body>\n <table>\n <tr>\n <th>First Name</th>\n <th>Last Name</th>\n <th>Age</th>\n <th>City</th>\n </tr>\n <tr>\n <td>John</td>\n <td>Doe</td>\n <td>50</td>\n <td>New York</td>\n </tr>\n <tr>\n <td>Jane</td>\n <td>Smith</td>\n <td>41</td>\n <td>Los Angeles</td>\n </tr>\n <tr>\n <td>Dave</td>\n <td>Jackson</td>\n <td>28</td>\n <td>Boston</td>\n </tr>\n </table>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page with an input field and a button, and write a JavaScript function that sets the font size of the entered text in the input field to 16pt when the button is clicked.",
"input": "",
"output": "<html>\n<head>\n <title>Change Font Size</title>\n <script type=\"text/javascript\">\n function changeFontSize() {\n var inputField = document.getElementById(\"inputField\");\n inputField.style.fontSize = \"16pt\";\n }\n </script>\n</head>\n<body>\n <input type=\"text\" id=\"inputField\" placeholder=\"Enter Text Here\">\n <button type=\"button\" onclick=\"changeFontSize()\">Change Font Size</button>\n</body>\n</html>"
},
{
"instruction": "Construct a web page with three columns and a header.",
"input": "",
"output": "<html>\n <head>\n <title>Three Column Page</title>\n </head>\n <body>\n <h1> Three Column Page </h1>\n <div>\n <div style=\"float:left;width:33%;\">\n Content for Column 1\n </div>\n <div style=\"float:left;width:33%;\">\n Content for Column 2\n </div>\n <div style=\"float:left;width:33%;\">\n Content for Column 3\n </div>\n </div>\n </body>\n</html>"
},
{
"instruction": "Construct an HTML page with a table that displays employee information, including name, age, and salary.",
"input": "",
"output": "<html>\n <head>\n <title>Employee Information</title>\n </head>\n <body>\n <table>\n <tr>\n <th>Name</th>\n <th>Age</th>\n <th>Salary</th>\n </tr>\n <tr>\n <td>John</td>\n <td>32</td>\n <td>50000</td>\n </tr>\n <tr>\n <td>Karen</td>\n <td>30</td>\n <td>45000</td>\n </tr>\n <tr>\n <td>Bob</td>\n <td>35</td>\n <td>55000</td>\n </tr>\n </table>\n </body>\n</html>"
},
{
"instruction": "Write a basic HTML structure with a header and a footer",
"input": "",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Document</title>\n</head>\n<body>\n <header>\n <!-- Header Content Here -->\n </header>\n\n <main>\n <!-- Page Content Here -->\n </main>\n\n <footer>\n <!-- Footer Content Here -->\n </footer>\n</body>\n</html>"
},
{
"instruction": "Write a basic HTML structure with two navigation links",
"input": "",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Document</title>\n</head>\n<body>\n <header>\n <nav>\n <a href=\"#\">Link 1</a>\n <a href=\"#\">Link 2</a>\n </nav>\n </header>\n\n </body>\n</html>"
},
{
"instruction": "Use HTML to create a basic web page which displays a welcome message and a button to redirect the user to another page.",
"input": "",
"output": "<html>\n <header>\n <title>Welcome Page</title>\n </header>\n <body>\n <h1>Welcome to My Website</h1>\n <p>This website offers a variety of resources.</p>\n <button onclick=\"window.location.href='anotherpage.html'\">Redirect</button>\n </body>\n</html>"
},
{
"instruction": "Use PHP to create a login page which contains an input field to accept the username and a submit button.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<body>\n\n<form action=\"action_login.php\" method=\"post\">\n Username: <input type=\"text\" name=\"username\">\n <input type=\"submit\" value=\"Submit\">\n</form> \n\n</body>\n</html>"
},
{
"instruction": "Decompile the following HTML code",
"input": "<h1>Hello World</h1>",
"output": "<html>\n <head>\n </head>\n <body>\n <h1>Hello World</h1>\n </body>\n</html>"
},
{
"instruction": "Create a basic HTML page using HTML tags.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>My page</title>\n </head>\n <body>\n <h1>This is my page</h1>\n </body> \n</html>"
},
{
"instruction": "Using HTML and CSS, create a basic website with three sections.",
"input": "",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <title>My Website</title>\n <style>\n .section{\n width: 75%; \n padding: 25px; \n margin: auto;\n }\n #section1, #section2, #section3{\n background-color: #f1f1f1;\n }\n </style>\n</head>\n\n<body>\n <div id=\"section1\" class=\"section\">\n <h1>Section 1</h1>\n </div>\n <div id=\"section2\" class=\"section\">\n <h1>Section 2</h1>\n </div>\n <div id=\"section3\" class=\"section\">\n <h1>Section 3</h1>\n </div>\n</body>\n</html>"
},
{
"instruction": "Create a JavaScript program to provide real-time search results for a given list of elements.",
"input": "list = [\u201cApple\u201d, \u201cBanana\u201d, \u201cOrange\u201d]",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n\t<title>Real-time Search Results</title>\n\t<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js\"></script>\n\t<script>\n\t\tfunction search() {\n\t\t var input = document.getElementById('search_box').value;\n\t\t var list = [\"Apple\",\"Banana\",\"Orange\"];\n\t\t var output = \"\";\n\t\t \n\t\t for (i=0; i<list.length; i++) {\n\t\t if (list[i].includes(input)) {\n\t\t output+=\"<li>\" + list[i] + \"</li>\";\n\t\t }\n\t\t }\n\t\t if (output == \"\") {\n\t\t document.getElementById(\"search_results\").innerHTML = \"No results found\";\n\t\t } else {\n\t\t document.getElementById(\"search_results\").innerHTML = output;\n\t\t }\n\t\t}\n\t</script>\n</head>\n<body>\n\t<input type=\"text\" id=\"search_box\" onkeyup=\"search()\" />\n\t<ul id=\"search_results\" > </ul>\n</body>\n</html>"
},
{
"instruction": "Create a web page with two input boxes to calculate the total cost of a product after sales tax.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Price and Tax Calculations</title>\n <script>\n function calculate(){\n let price = document.getElementById('price').value;\n let tax = document.getElementById('tax').value;\n let total = parseFloat(price) + (parseFloat(price)*parseFloat(tax)/100);\n\n document.getElementById('total').value = total;\n }\n </script>\n </head>\n \n <body>\n <input type=\"text\" id=\"price\" oninput=\"calculate()\" placeholder=\"Price\" />\n <input type=\"text\" id=\"tax\" oninput=\"calculate()\" placeholder=\"Tax %\" />\n <input type=\"text\" id=\"total\" placeholder=\"Total\" readonly=\"true\" />\n </body>\n\n</html>"
},
{
"instruction": "Write an HTML page containing a heading with the text \"Welcome\".",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Welcome</title>\n</head>\n<body>\n <h1>Welcome</h1>\n</body>\n</html>"
},
{
"instruction": "Edit this HTML code to make it compliant with the HTML5 standard.",
"input": "<html>\n<head>\n <title>My HTML Page</title>\n</head>\n<body>\n <p>My HTML Page</p>\n</body>\n</html>",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>My HTML Page</title>\n</head>\n<body>\n <p>My HTML Page</p>\n</body>\n</html>"
},
{
"instruction": "Create a basic HTML page with a heading and a paragraph of text.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>My HTML Page</title>\n</head>\n<body>\n <h1>My HTML Page</h1>\n <p>This is a basic HTML page with a heading and a paragraph of text.</p> \n</body>\n</html>"
},
{
"instruction": "Generate a valid HTML markup from the given JSON data.",
"input": "{\n \"name\": \"Sample Name\",\n \"city\": \"New Delhi\",\n \"state\": \"Delhi\"\n}",
"output": "<html>\n <head>\n <title>Sample Information</title>\n </head>\n <body>\n <h2>Sample Information</h2>\n <ul>\n <li>Name: Sample Name</li>\n <li>City: New Delhi</li>\n <li>State: Delhi</li>\n </ul>\n </body>\n</html>"
},
{
"instruction": "Create a website for the company ACME with all the following pages: Home, About Us, Contact Us, FAQ and Privacy Policy.",
"input": "",
"output": "<html>\n\n <head>\n <title>ACME</title>\n </head>\n\n <body>\n <header>\n <h1>ACME</h1>\n </header>\n\n <nav>\n <ul>\n <li><a href=\"index.html\">Home</a></li>\n <li><a href=\"about.html\">About Us</a></li>\n <li><a href=\"contact.html\">Contact Us</a></li>\n <li><a href=\"faq.html\">FAQ</a></li>\n <li><a href=\"privacy-policy.html\">Privacy Policy</a></li>\n </ul>\n </nav>\n </body>\n\n</html>"
},
{
"instruction": "Create a web page with two text fields for username and password.",
"input": "",
"output": "<html>\n <head>\n <title>Login</title>\n </head>\n <body>\n <h1>Login</h1>\n <form action=\"\">\n <label for=\"username\">Username:</label>\n <input type=\"text\" name=\"username\" id=\"username\" />\n <label for=\"password\">Password:</label>\n <input type=\"password\" name=\"password\" id=\"password\" />\n <input type=\"submit\" value=\"Login\" />\n </form>\n </body>\n</html>"
},
{
"instruction": "Create a HTML page that displays the top 5 countries in the world by population.",
"input": "Country Population (Millions)\nChina 1400\nIndia 1351\nUnited 329\nIndonesia 265\nBrazil 212",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>World's Top 5 Countries By Population</title>\n <style>\n table {\n font-family: arial, sans-serif;\n border-collapse: collapse;\n width: 100%;\n }\n td, th {\n border: 1px solid #dddddd;\n text-align: left;\n padding: 8px;\n } \n </style>\n</head>\n<body>\n <h1>World's Top 5 Countries By Population</h1>\n <table>\n <tr>\n <th>Country</th>\n <th>Population (Millions)</th>\n </tr>\n <tr>\n <td>China</td>\n <td>1400</td>\n </tr>\n <tr>\n <td>India</td>\n <td>1351</td>\n </tr>\n <tr>\n <td>United States</td>\n <td>329</td>\n </tr>\n <tr>\n <td>Indonesia</td>\n <td>265</td>\n </tr>\n <tr>\n <td>Brazil</td>\n <td>212</td>\n </tr>\n </table>\n</body>\n</html>"
},
{
"instruction": "Edit the given HTML code so that the header of the web page is centered.",
"input": "<html>\n <head>\n <title>Centering a header</title>\n </head>\n <body>\n <h1>This header is not centered</h1>\n </body>\n</html>",
"output": "<html>\n <head>\n <title>Centering a header</title>\n </head>\n <body>\n <h1 style=\"text-align: center;\">This header is now centered</h1>\n </body>\n</html>"
},
{
"instruction": "Generate a complete HTML document using the given parameters.",
"input": "title: GPT Demo\nheading: Welcome to the GPT Demo\nbody: This is a demo of GPT on coding tasks.",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>GPT Demo</title>\n</head>\n<body>\n <h1>Welcome to the GPT Demo</h1>\n <p>This is a demo of GPT on coding tasks.</p>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page with a table containing 2 columns.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n\t<title>Table Design</title>\n</head>\n<body>\n\t<table>\n\t\t<tr>\n\t\t\t<th>Column 1</th>\n\t\t\t<th>Column 2</th>\n\t\t</tr>\n\t</table>\n</body>\n</html>"
},
{
"instruction": "Generate a HTML page displaying the following information",
"input": "Company name: Acme Corp\nCompany motto: \u201cWe make the impossible possible!\u201d",
"output": "<html>\n<head>\n <title>Acme Corp</title>\n</head>\n<body>\n <h1>Acme Corp</h1>\n <p>We make the impossible possible!</p>\n</body>\n</html>"
},
{
"instruction": "Write an HTML page to calculate the area of a circle given its radius.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Area of Circle</title>\n <script>\n // get radius from user\n var radius = prompt(\"Enter the radius of Circle\");\n // calculate area \n var area = 3.14 * radius * radius;\n // print the area\n document.write(\"Area of Circle : \" + area);\n </script>\n </head>\n <body>\n </body>\n</html>"
},
{
"instruction": "Create a HTML page to show a result of the sum of two numbers.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Sum of Two Numbers</title>\n <script>\n // get numbers from user\n var a = prompt(\"Enter the first number\");\n var b = prompt(\"Enter the second number\");\n // calculate the sum \n var sum = +a + +b;\n // print the result\n document.write(\"Result : \" +sum);\n </script>\n </head>\n <body>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page with 4 sections containing text.",
"input": "",
"output": "<html>\n <body>\n <h1>Heading1</h1>\n <p>Paragraph1</p>\n <h2>Heading2</h2>\n <p>Paragraph2</p>\n <h3>Heading3</h3>\n <p>Paragraph3</p>\n <h4>Heading4</h4>\n <p>Paragraph4</p>\n </body>\n</html>"
},
{
"instruction": "Create a HTML page that includes a table with 3 columns and 3 rows.",
"input": "",
"output": "<html>\n <head>\n <title>Table Example</title>\n </head>\n <body>\n <table>\n <tr>\n <th>Column 1 Header</th>\n <th>Column 2 Header</th>\n <th>Column 3 Header</th>\n </tr>\n <tr>\n <td>Row 1, Column 1</td>\n <td>Row 1, Column 2</td>\n <td>Row 1, Column 3</td>\n </tr>\n <tr>\n <td>Row 2, Column 1</td>\n <td>Row 2, Column 2</td>\n <td>Row 2, Column 3</td>\n </tr>\n <tr>\n <td>Row 3, Column 1</td>\n <td>Row 3, Column 2</td>\n <td>Row 3, Column 3</td>\n </tr>\n </table>\n </body>\n</html>"
},
{
"instruction": "Generate a web page with a navigation bar on it.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Navbar Page</title>\n <style>\n .navbar {\n width: 100%;\n background-color: #555;\n }\n .navbar a {\n float: left;\n padding: 12px;\n color: white;\n text-decoration: none;\n font-size: 17px;\n }\n .navbar a:hover {\n background-color: #000;\n }\n </style>\n </head>\n <body>\n <div class=\"navbar\">\n <a href=\"#home\">Home</a>\n <a href=\"#about\">About</a>\n <a href=\"#contact\">Contact</a>\n </div>\n </body>\n</html>"
},
{
"instruction": "Edit a given HTML page and add a new link.",
"input": "<html> \n <head> \n <title>My webpage</title>\n </head> \n <body> \n Welcome to my webpage!\n </body>\n</html>",
"output": "<html> \n <head> \n <title>My webpage</title>\n </head> \n <body> \n Welcome to my webpage!\n <a href=\"https://example.com\">Link</a>\n </body>\n</html>"
},
{
"instruction": "Build a website with HTML and CSS containing three headings and two paragraphs.",
"input": "",
"output": "<html>\n <head>\n <style>\n h1 {\n color: red;\n font-size: 32px;\n }\n h2 {\n color: blue;\n font-size: 24px;\n }\n h3 {\n color: green;\n font-size: 16px;\n }\n </style>\n </head>\n <body>\n <h1>Heading 1</h1>\n <p>This is a paragraph.</p>\n <h2>Heading 2</h2>\n <p>This is a second paragraph.</p>\n <h3>Heading 3</h3>\n </body>\n</html>"
},
{
"instruction": "Design an HTML page that prints out \"Hello, World!\" in two columns.",
"input": "",
"output": "<html>\n<head>\n\t<title>Hello, World!</title>\n</head>\n<body>\n\t<div style=\"display: flex;\"><div>Hello,</div><div> World!</div></div>\n</body>\n</html>"
},
{
"instruction": "How to write an HTML page that displays the number from 1 to 10?",
"input": "",
"output": "<html>\n <body>\n <div>\n <h2>Number from 1 to 10</h2>\n <ul>\n <li>1</li>\n <li>2</li>\n <li>3</li>\n <li>4</li>\n <li>5</li>\n <li>6</li>\n <li>7</li>\n <li>8</li>\n <li>9</li>\n <li>10</li>\n </ul>\n </div>\n </body>\n</html>"
},
{
"instruction": "Create a simple HTML webpage without using any external stylesheets.",
"input": "",
"output": "<html>\n<head>\n <title>My Web Page</title>\n</head>\n<body>\n <h1>Welcome to My Web Page</h1>\n <p>This is my first web page.</p>\n</body>\n</html>"
},
{
"instruction": "Create a new HTML page with two buttons.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n<title>Two Buttons</title>\n</head>\n<body>\n <button>Button 1</button>\n <button>Button 2</button>\n</body>\n</html>"
},
{
"instruction": "Create a web page with a CSS style to hide all paragraphs in the HTML body.",
"input": "",
"output": "<html>\n <head>\n <style>\n p {\n display: none;\n }\n </style>\n </head>\n <body>\n <p>This paragraph is hidden.</p>\n <p>This paragraph is also hidden.</p>\n </body>\n</html>"
},
{
"instruction": "Create an HTML page containing a list of all US states.",
"input": "",
"output": "<html>\n <head>\n <title> US States </title> \n </head>\n <body>\n <ul>\n <li>Alabama</li>\n <li>Alaska</li>\n <li>Arizona</li>\n <li>Arkansas</li>\n <li>California</li>\n <li>Colorado</li>\n <li>Connecticut</li> \n <li>Delaware</li>\n <li>Florida</li>\n <li>Georgia</li>\n <li>Hawaii</li>\n <li>Idaho</li>\n <li>Illinois</li>\n <li>Indiana</li>\n <li>Iowa</li>\n <li>Kansas</li>\n <li>Kentucky</li>\n <li>Louisiana</li>\n <li>Maine</li>\n <li>Maryland</li>\n <li>Massachusetts</li>\n <li>Michigan</li>\n <li>Minnesota</li>\n <li>Mississippi</li>\n <li>Missouri</li>\n <li>Montana</li>\n <li>Nebraska</li>\n <li>Nevada</li>\n <li>New Hampshire</li>\n <li>New Jersey</li>\n <li>New Mexico</li>\n <li>New York</li>\n <li>North Carolina</li>\n <li>North Dakota</li>\n <li>Ohio</li>\n <li>Oklahoma</li>\n <li>Oregon</li>\n <li>Pennsylvania</li>\n <li>Rhode Island</li>\n <li>South Carolina</li>\n <li>South Dakota</li>\n <li>Tennessee</li>\n <li>Texas</li>\n <li>Utah</li>\n <li>Vermont</li>\n <li>Virginia</li> \n <li>Washington</li>\n <li>West Virginia</li>\n <li>Wisconsin</li>\n <li>Wyoming</li>\n </ul>\n </body>\n</html>"
},
{
"instruction": "Develop a web application that converts text to speech.",
"input": "",
"output": "<html>\n<head>\n <title>Text to Speech</title>\n <script src=\"https://code.responsivevoice.org/responsivevoice.js?key=KEY_HERE\"></script>\n</head>\n<body>\n <textarea id=\"text-input\" rows=\"10\" cols=\"50\"></textarea><br>\n <button type=\"button\" onclick=\"responsiveVoice.speak(document.getElementById('text-input').value)\">Speak</button>\n <button type=\"button\" onclick=\"responsiveVoice.cancel()\">Stop</button>\n</body>\n</html>"
},
{
"instruction": "Create a dynamic web page using HTML and CSS to display a list of books.",
"input": "",
"output": "<html>\n <head>\n <style>\n ul {\n list-style-type: none;\n padding: 0;\n margin: 0;\n }\n \n li {\n font-family: sans-serif;\n font-size: 20px;\n padding: 10px;\n border-bottom: 1px solid #ccc;\n }\n </style>\n </head>\n <body>\n <ul>\n <li>\n <b>Book 1</b>\n <br>\n Author: John Doe\n <br>\n Year: 2020\n </li>\n <li>\n <b>Book 2</b>\n <br>\n Author: Jane Doe\n <br>\n Year: 2019\n </li>\n <li>\n <b>Book 3</b>\n <br>\n Author: Robert Smith\n <br>\n Year: 2021\n </li>\n </ul>\n </body>\n</html>"
},
{
"instruction": "Using HTML and CSS, design a landing page for a blog website.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>My Blog</title>\n <style>\n .container{\n width:850px;\n height: 850px;\n background-color: #F5F5FF;\n margin:auto;\n padding: 20px;\n box-shadow: 0px 0px 7px 1px rgba(0,0,0,0.3);\n }\n .header{\n background-color: #323B45;\n font-size: 48px;\n font-weight: bold;\n color: #FFF;\n padding-left: 20px;\n padding-top: 15p\n </style>\n\n</head>\n<body>\n <div class=\"container\">\n <div class=\"header\">Welcome to My Blog</div>\n </div>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page that displays an alert when a page is visited.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Alert Message Box</title>\n <script>\n window.onload = function() {\n alert(\"Welcome to my webpage!\");\n }\n </script>\n</head>\n<body>\n</body>\n</html>"
},
{
"instruction": "Create a HTML page with a fixed header bar and a scrolling content area.",
"input": "",
"output": "<html> \n <head> \n </head> \n <body> \n <div id=\"header\">\n <!-- header content -->\n </div> \n <div id=\"content\" style=\"overflow-y:scroll;\">\n <!-- content here -->\n </div> \n </body> \n</html>"
},
{
"instruction": "Construct an HTML page to display a table with 10 rows, 5 columns, and a header row.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Table Example</title>\n</head>\n<body>\n <table>\n <thead>\n <tr>\n <th>Header 1</th>\n <th>Header 2</th>\n <th>Header 3</th>\n <th>Header 4</th>\n <th>Header 5</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>Cell 1</td>\n <td>Cell 2</td>\n <td>Cell 3</td>\n <td>Cell 4</td>\n <td>Cell 5</td>\n </tr>\n <tr>\n <td>Cell 6</td>\n <td>Cell 7</td>\n <td>Cell 8</td>\n <td>Cell 9</td>\n <td>Cell 10</td>\n </tr>\n </tbody>\n </table>\n</body>\n</html>"
},
{
"instruction": "Create an HTML page with a navigation bar containing a heading and a search field.",
"input": "",
"output": "<html>\n <head>\n <title>My Page</title>\n </head>\n <body>\n <nav>\n <h1>My Navigation</h1>\n <input type=\"text\" placeholder=\"search...\">\n </nav>\n </body>\n</html>"
},
{
"instruction": "Using an array, create a web page that prints out all of the array elements.",
"input": "arr = [1, 2, 3, 4, 5]",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Array values</title>\n</head>\n<body>\n <ul>\n <% for (let i = 0; i < arr.length; i++) { %>\n <li><%= arr[i] %></li>\n <% } %>\n </ul>\n</body>\n</html>"
},
{
"instruction": "Construct a HTML template using Bootstrap.",
"input": "",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <title>Bootstrap Example</title>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css\">\n <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js\"></script>\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js\"></script>\n <script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js\"></script>\n</head>\n<body>\n\n<div class=\"container\">\n <h2>Template</h2>\n <p>This is a template for a Bootstrap page.</p>\n <p>It uses bootstrap's grid system for the layout.</p> \n</div>\n\n</body>\n</html>"
},
{
"instruction": "Create a HTML page which includes two input fields and a button that generates output field that should contain the sum of the two numbers given in the two input fields.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Sum Calculator</title>\n <script>\n function calculate() {\n var num1 = Number(document.getElementById(\"num1\").value);\n var num2 = Number(document.getElementById(\"num2\").value);\n document.getElementById(\"output\").innerHTML = num1 + num2;\n }\n </script>\n </head>\n <body>\n <h3>Sum Calculator</h3>\n <input type=\"text\" id=\"num1\">\n <input type=\"text\" id=\"num2\">\n <button onclick=\"calculate()\"> Calculate </button>\n <p>Result: <span id=\"output\"></span></p>\n </body>\n</html>"
},
{
"instruction": "Edit this HTML snippet such that it displays 'Hello World' in bold.",
"input": "<div>Hello World</div>",
"output": "<div><b>Hello World</b></div>"
},
{
"instruction": "Create a web page with a JavaScript function to search for a product in a product inventory using user input.",
"input": "const products = [\n {name: \"iPhone\", price: 499},\n {name: \"MacBook Pro\", price: 1499},\n {name: \"iPad Pro\", price: 799},\n];",
"output": "<html>\n <head>\n <title>Product Search</title>\n </head>\n <body>\n <h1>Product Search</h1>\n <div>\n <input type=\"text\" id=\"search\" />\n <button type=\"button\" onclick=\"searchProducts()\">Search</button>\n </div>\n <ul id=\"products\"></ul>\n <script>\n const products = [\n {name: \"iPhone\", price: 499},\n {name: \"MacBook Pro\", price: 1499},\n {name: \"iPad Pro\", price: 799},\n ];\n\n function searchProducts() {\n let query = document.getElementById('search').value;\n\n let filteredProducts = products.filter(\n product => product.name.includes(query)\n );\n\n let productsList = document.getElementById('products');\n productsList.innerHTML = '';\n\n for (let product of filteredProducts) {\n let newElement = document.createElement('li');\n newElement.innerHTML = `${product.name} - ${product.price}$`;\n productsList.appendChild(newElement);\n }\n }\n </script>\n </body>\n</html>"
},
{
"instruction": "Construct an HTML page including a heading, button, and paragraph.",
"input": "",
"output": "<html>\n <head>\n <title>My Webpage</title>\n </head>\n <body>\n <h1>My Webpage</h1>\n <button>Click Here!</button>\n <p>This is some sample text.</p>\n </body>\n</html>"
},
{
"instruction": "Construct an HTML page using semantic elements to display a heading with \"Hello World!\".",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n<head>\n <title>Hello World!</title>\n</head>\n<body>\n <h1>Hello World!</h1>\n</body>\n</html>"
},
{
"instruction": "Create a HTML page to display a given list of items",
"input": "",
"output": "<html>\n <head>\n <title>List of Items</title>\n </head>\n <body>\n <h1>List of Items</h1>\n <ul>\n <li>Item 1</li>\n <li>Item 2</li>\n <li>Item 3</li>\n <li>Item 4</li>\n <li>Item 5</li>\n </ul>\n </body>\n</html>"
},
{
"instruction": "Design a web page with HTML and CSS so that it displays four boxes of different colors.",
"input": "",
"output": "<html>\n\n<head>\n<style> \n div {\n width:200px;\n height:200px;\n box-sizing:border-box;\n border-radius: 10px;\n }\n .box-1 {\n background: #F78181;\n }\n .box-2 {\n background: #FBB117;\n }\n .box-3 {\n background: #99E1D9;\n }\n .box-4 {\n background: #CDC5C2;\n }\n</style>\n</head>\n\n<body>\n <div class=\"box-1\"></div>\n <div class=\"box-2\"></div>\n <div class=\"box-3\"></div>\n <div class=\"box-4\"></div>\n</body>\n\n</html>"
},
{
"instruction": "Create a basic HTML page with a title, a heading and a brief introduction to yourself.",
"input": "My name is John Doe, I am an engineer and webdeveloper.",
"output": "<html>\n <head>\n <title>Introducing John Doe</title>\n </head>\n <body>\n <h1>Introducing John Doe</h1>\n <p>\n Hi, I'm John Doe. I am an engineer and webdeveloper with 20 years of experience. I have worked on projects for some of the biggest companies in the world, and I'm proud to say that I have always delivered quality work. I'm excited to have a chance to work on new projects and be part of an amazing team.\n </p>\n </body>\n</html>"
},
{
"instruction": "Create a basic HTML page with a table that displays the index, name, and link of the top 10 global universities.",
"input": "index | name | link\n1. Massachusetts Institute of Technology | https://www.mit.edu/ \n2. Stanford University | https://www.stanford.edu/ \n3. Harvard University | https://www.harvard.edu/ \n4. California Institute of Technology | https://www.caltech.edu/ \n5. University of Oxford | https://www.ox.ac.uk/ \n6. University of Cambridge | https://www.cam.ac.uk/ \n7. Princeton University | https://www.princeton.edu/ \n8. Imperial College London | https://www.imperial.ac.uk/ \n9. University of Chicago | https://www.uchicago.edu/ \n10. ETH Zurich (Swiss Federal Institute of Technology) | https://www.ethz.ch/",
"output": "<html>\n <head>\n <title>Top 10 Global Universities</title>\n </head>\n <body>\n <h1>Top 10 Global Universities</h1>\n <table>\n <tr>\n <th>Index</th>\n <th>Name</th>\n <th>Link</th>\n </tr>\n <tr>\n <td>1</td>\n <td>Massachusetts Institute of Technology</td>\n <td>https://www.mit.edu/</td>\n </tr>\n <tr>\n <td>2</td>\n <td>Stanford University</td>\n <td>https://www.stanford.edu/</td>\n </tr>\n <tr>\n <td>3</td>\n <td>Harvard University</td>\n <td>https://www.harvard.edu/</td>\n </tr>\n <tr>\n <td>4</td>\n <td>California Institute of Technology</td>\n <td>https://www.caltech.edu/</td>\n </tr>\n <tr>\n <td>5</td>\n <td>University of Oxford</td>\n <td>https://www.ox.ac.uk/</td>\n </tr>\n <tr>\n <td>6</td>\n <td>University of Cambridge</td>\n <td>https://www.cam.ac.uk/</td>\n </tr>\n <tr>\n <td>7</td>\n <td>Princeton University</td>\n <td>https://www.princeton.edu/</td>\n </tr>\n <tr>\n <td>8</td>\n <td>Imperial College London</td>\n <td>https://www.imperial.ac.uk/</td>\n </tr>\n <tr>\n <td>9</td>\n <td>University of Chicago</td>\n <td>https://www.uchicago.edu/</td>\n </tr>\n <tr>\n <td>10</td>\n <td>ETH Zurich (Swiss Federal Institute of Technology)</td>\n <td>https://www.ethz.ch/</td>\n </tr>\n </table>\n </body>\n</html>"
},
{
"instruction": "Write an HTML web page that displays a list of three job titles and their corresponding descriptions.",
"input": "Developer\nDesigner\nProject Manager\n\nDeveloper: Responsible for developing applications based on customer requirements\nDesigner: Designs and implements user interfaces for applications\nProject Manager: Manages the project's resources and timelines to ensure successful completion",
"output": "<!DOCTYPE html>\n\n<html>\n <head>\n <title>Job Titles and Descriptions</title>\n </head>\n \n <body>\n <p>\n <ul>\n <li>Developer: Responsible for developing applications based on customer requirements</li>\n <li>Designer: Designs and implements user interfaces for applications</li>\n <li>Project Manager: Manages the project's resources and timelines to ensure successful completion</li>\n </ul>\n </p>\n </body>\n</html>"
},
{
"instruction": "Write an HTML page that takes an email address as input and displays a \"Thank you\" message after the submission.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Thank You</title>\n </head>\n \n <body>\n <form method=\"POST\" action=\"\">\n <label>\n Email:\n <input type=\"email\" name=\"email\">\n </label>\n <input type=\"submit\" value=\"Submit\">\n </form>\n \n<?php\nif ($_POST) {\n echo 'Thank you for signing up!';\n}\n?>\n \n </body>\n</html>"
},
{
"instruction": "Create a HTML page to display the top 5 scores from a given array.",
"input": "An array with 10 elements [7, 8, 10, 3, 2, 9, 5, 1, 6, 4]",
"output": "<html>\n <head>\n <title>Top 5 scores</title>\n </head>\n <body>\n <h1>Top 5 scores</h1>\n <ul>\n <li>10</li>\n <li>9</li>\n <li>8</li>\n <li>7</li>\n <li>6</li>\n </ul>\n </body>\n</html>"
},
{
"instruction": "Create a web page with a navigation bar at the top.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n\n<head>\n <title>Navigation Bar Demo</title>\n</head>\n\n<body>\n <nav>\n <ul>\n <li><a href=\"#\">Home</a></li>\n <li><a href=\"#\">About</a></li>\n <li><a href=\"#\">Contact</a></li>\n </ul>\n </nav>\n\n <h1>Welcome!</h1>\n <p>This is a demo page with a navigation bar at the top.</p>\n \n</body>\n\n</html>"
},
{
"instruction": "Create an HTML page that prints the current date.",
"input": "",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Current Date</title>\n </head>\n <body>\n <p>Today's date is <script> document.write(new Date().toDateString()); </script></p>\n </body>\n</html>"
},
{
"instruction": "Create a HTML page that contains the following text: \"Welcome to my website!\".",
"input": "",
"output": "<html>\n <head> \n <title>Website</title>\n </head>\n <body>\n <h1>Welcome to my website!</h1>\n </body>\n</html>"
},
{
"instruction": "Create a basic HTML structure to show a blog post with the title, \"My First Blog Post.\"",
"input": "",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>My First Blog Post</title>\n</head>\n<body>\n <h1>My First Blog Post</h1>\n <p>Insert blog post content here.</p>\n</body>\n</html>"
},
{
"instruction": "Create a basic HTML structure with a table to display a list of cities and their population.",
"input": "",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Cities and Population</title>\n</head>\n<body>\n <h1>Cities and Population</h1>\n <table>\n <thead>\n <tr>\n <th>City</th>\n <th>Population</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td>Insert City Name</td>\n <td>Insert Population</td>\n </tr>\n </tbody>\n </table>\n</body>\n</html>"
},
{
"instruction": "Create a web page that shows your favorite color, name, and age.",
"input": "",
"output": "<html>\n <head>\n <title>Favorite Things</title>\n </head>\n <body>\n <h1>My Favorite Things</h1>\n <ul>\n <li>My favorite color is blue.</li>\n <li>My name is John.</li>\n <li>I am 24 years old.</li>\n </ul>\n </body>\n</html>"
},
{
"instruction": "Create a HTML page that displays the given text in a headline.",
"input": "This is a headline!",
"output": "<!DOCTYPE html>\n<html>\n <head>\n <title>Headline</title>\n </head>\n <body>\n <h1>This is a headline!</h1>\n </body>\n</html>"
},
{
"instruction": "Print the following string in HTML.",
"input": "\"Welcome to my website!\"",
"output": "<html>\n <head>\n <title>Welcome to my website!</title>\n </head>\n <body>Welcome to my website!</body>\n</html>"
},
{
"instruction": "Create an HTML page with two input fields, one for the first name, one for the last name, and a button. When the button is clicked, the input fields should be validated and an alert should be presented if the fields are empty.",
"input": "",
"output": "<html>\n<head>\n <title>Input Validation</title>\n</head>\n<body>\n <form action=\"\">\n <input type=\"text\" name=\"firstName\" placeholder=\"First Name\">\n <input type=\"text\" name=\"lastName\" placeholder=\"Last Name\">\n <input type=\"button\" value=\"Submit\" onclick=\"validateData()\">\n </form>\n\n <script>\n function validateData() {\n let firstName = document.querySelector('[name=\"firstName\"]').value;\n let lastName = document.querySelector('[name=\"lastName\"]').value;\n \n if (firstName.trim() === '' || lastName.trim() === '') {\n alert('First and last name are required.');\n }\n }\n </script>\n</body>\n</html>"
},
{
"instruction": "Construct a simple web page with two fields, a login input and a password input.",
"input": "",
"output": "<html>\n<body>\n\n<form>\n <div>\n <label>Login:</label>\n <input type=\"text\" id=\"login\" name=\"login\">\n </div>\n\n <div>\n <label>Password:</label>\n <input type=\"password\" id=\"password\" name=\"password\">\n </div>\n</form>\n\n</body>\n</html>"
},
{
"instruction": "Create a webpage with a button to allow the user to log in.",
"input": "[noinput]",
"output": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Login Page</title> \n</head>\n<body>\n \n <form action=\"login.php\" method=\"post\">\n <input type=\"submit\" value=\"Login\" />\n </form>\n\n</body>\n</html>"