-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCSS.HTML.html
More file actions
1734 lines (1381 loc) · 59.1 KB
/
CSS.HTML.html
File metadata and controls
1734 lines (1381 loc) · 59.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Assignment</title>
<!-- <link rel="stylesheet" href="style.css"> -->
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
align-items: center;
justify-content: center;
background-color: lightskyblue;
}
.question-1 {
width: 150vmin;
height: 255vmin;
background-color: #fff;
padding: 50px;
}
.question-1 h1 {
background-color: #27374D;
color: #fff;
}
.question-1 h2 {
font-size: 5vmin;
color: #27374D;
transition: 2s;
margin-bottom: 1.8vmin;
margin-top: 5vmin;
}
.question-1 h2:hover {
animation: infinite;
color: #27374D;
}
.question-1 p {
font-size: 3vmin;
color: #144272;
margin: 1.5vmin 5vmin;
}
.question-1 h3 {
font-size: 3vmin;
color: #144272;
margin: 0 3vmin;
}
.question-1 ul {
border: 2vmin solid #144272;
padding: 1.2vmin;
margin: 3vmin;
background-color: honeydew;
}
.question-1 li {
font-size: 3vmin;
color: #144272;
margin: 1.5vmin 7vmin 0 7vmin;
}
.section2 {
position: absolute;
bottom: -465vmin;
width: 150vmin;
height: 310vmin;
background-color: #fff;
padding: 50px;
}
.section2 h2 {
font-size: 5vmin;
color: #27374D;
transition: 2s;
margin-bottom: 1.8vmin;
margin-top: -4vmin;
}
.section2 p {
font-size: 3vmin;
color: #144272;
margin: 1.5vmin 5vmin;
}
.section2 h3 {
font-size: 3vmin;
color: #144272;
margin: 4vmin 3vmin;
}
table {
border: 1px solid #144272;
border-collapse: collapse;
margin-bottom: 8vmin;
}
table tr th {
border: 1px solid #000;
font-size: 3vmin;
color: #144272;
padding: 10px;
font-weight: bold;
background-color: lightgreen;
}
table tr td {
border: 1px solid #000;
font-size: 3vmin;
color: #144272;
padding: 10px;
font-weight: bold;
background-color: lightcyan;
}
.section2 ul {
margin-bottom: 4vmin;
}
.section2 li {
font-size: 3vmin;
color: #144272;
margin: 1.5vmin 7vmin 0 7vmin;
}
/* == Section 3 Start == */
.section3 {
position: absolute;
bottom: -872vmin;
width: 150vmin;
height: 876vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin;
}
/* == Question-5 Start == */
.opacity {
display: flex;
flex-direction: row;
justify-content: space-evenly;
margin: 7vmin 0;
}
figcaption {
font-size: 3vmin;
color: #144272;
margin: 2vmin 1vmin;
}
.img img{
display: inline;
opacity: 0.2;
transition: 1s ease-in;
}
.img1 img {
display: inline;
opacity: 0.5;
transition: 1s ease-in;
}
.img2 img {
display: inline;
opacity: 1;
transition: 1s ease-in;
}
img:hover {
transform: scale(1.1);
}
.example {
font-size: 3vmin;
color: #fff;
margin: 4vmin 3vmin;
height: 40vmin;
width: 130vmin;
background-color: #27374D;
border-radius: 5px;
}
.example h3 {
margin: 0 4vmin;
padding: 3vmin 0;
color: #fff;
}
.example p {
color: #fff;
}
.box {
height: 13vmin;
width: 120vmin;
background-color: #fff;
padding: 0vmin;
margin: 5vmin;
padding: 1vmin 3vmin;
color: #144272;
border-left: 5px solid orange;
}
/* == Question-5 End == */
/* == Question-6 Start == */
.question-6 {
margin-top: 10vmin;
}
.example1 {
}
.viz {
height: 7.5vmin;
width: 130vmin;
background-color: #27374D;
margin: 4vmin 3vmin;
padding: 2.5vmin 5vmin;
font-size: 2.5vmin;
color: #fff;
border-radius: 10px;
letter-spacing: 1px;
}
.lalo {
font-size: 2.5vmin;
color: #fff;
margin: 4vmin 3vmin;
height: 78vmin;
width: 130vmin;
background-color: #27374D;
border-radius: 10px;
padding: 5vmin;
line-height: 4vmin;
}
.result {
height: 40vmin;
width: 119vmin;
background-color: aquamarine;
border-bottom: 10px solid orange;
border-top: 10px solid orange;
border-left: 10px solid orange;
margin-top: 4vmin;
padding: 2vmin;
font-size: 5vmin;
font-weight: bold;
border-radius: 7px;
}
.example2 {
}
.example2 .pilo {
font-size: 2.5vmin;
color: #fff;
margin: 4vmin 3vmin;
height: 78vmin;
width: 130vmin;
background-color: #27374D;
border-radius: 10px;
padding: 5vmin;
line-height: 4vmin;
margin-bottom: 10vmin;
}
.example2 .result2 {
height: 40vmin;
width: 119vmin;
margin-top: 4vmin;
background-color: khaki;
border-bottom: 10px solid orange;
border-top: 10px solid orange;
border-left: 10px solid orange;
padding: 2vmin;
font-size: 5vmin;
font-weight: bold;
border-radius: 7px;
}
/* == Question-6 End == */
/* == Question-7 Start == */
.box1 {
font-size: 3.5vmin;
color: #fff;
margin: 4vmin 3vmin;
height: 63vmin;
width: 130vmin;
background-color: #27374D;
border-radius: 10px;
padding: 5vmin;
line-height: 4vmin;
}
.parinam {
height: 30vmin;
width: 35vmin;
border: 1px solid #27374D;
background-image: url("https://images.unsplash.com/photo-1566438480900-0609be27a4be?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8aW1hZ2V8ZW58MHx8MHx8fDA%3D&w=1000&q=80");
background-repeat: no-repeat;
background-size: 100%;
border-radius: 10px;
margin: 4vmin 3vmin 9vmin 3vmin;
}
/* == Question-7 End == */
/* == Question-8 Start == */
.content {
display: flex;
flex-direction: row;
}
.right1 {
width: 60vmin;
height: 30vmin;
border: 1px solid gray;
margin-top: 4vmin;
border-radius: 5px;
background-color: #27374D;
background-image: url("https://www.w3schools.com/css/img_5terre.jpg");
background-size: 30%;
background-repeat: no-repeat;
}
.right2 {
width: 60vmin;
height: 30vmin;
border: 1px solid gray;
margin-top: 4vmin;
border-radius: 5px;
background-color: #27374D;
margin-left: 1vmin;
background-image: url("https://www.w3schools.com/css/img_5terre.jpg");
background-size: 30%;
background-repeat: no-repeat;
border-radius: 10px;
background-position: bottom right;
}
.right3 {
width: 60vmin;
height: 30vmin;
border: 1px solid gray;
margin-top: 4vmin;
border-radius: 5px;
background-color: #27374D;
margin-left: 7vmin;
background-image: url("https://www.w3schools.com/css/img_5terre.jpg");
background-size: 30%;
background-repeat: no-repeat;
border-radius: 10px;
background-position: center center;
/* margin-top: 20vmin; */
}
.left1 {
margin: 4vmin 0 4vmin 3vmin;
}
.left1 h4 {
background-color: yellow;
width: 36vmin;
height: 4.5vmin;
padding-top: 0.8vmin;
padding-left: 1.8vmin;
font-size: 2.5vmin;
margin-left: 5vmin;
}
.left2 {
margin: 4vmin 0 4vmin 3vmin;
}
.left2 h4 {
background-color: yellow;
width: 41vmin;
height: 4.5vmin;
padding-top: 0.8vmin;
padding-left: 1.8vmin;
font-size: 2.5vmin;
margin-left: 5vmin;
}
.left3 {
margin: 4vmin 0 4vmin 3vmin;
}
.left3 h4 {
background-color: yellow;
width: 42vmin;
height: 4.5vmin;
padding-top: 0.8vmin;
padding-left: 1.8vmin;
font-size: 2.5vmin;
margin-left: 5vmin;
}
/* == Question-8 End == */
/* == Question-9 start == */
.Question-9 h2 {
margin-top: 7vmin;
}
.box2 {
font-size: 3.5vmin;
color: #fff;
margin: 4vmin 3vmin;
height: 104vmin;
width: 130vmin;
background-color: #27374D;
border-radius: 10px;
padding: 5vmin;
line-height: 4vmin;
}
.container {
height: 55vmin;
width: 130vmin;
margin: 4vmin 3vmin;
background-color: #27374D;
border-radius: 10px;
padding: 5vmin;
background-image: url("https://images.pexels.com/photos/255379/pexels-photo-255379.jpeg?cs=srgb&dl=pexels-miguel-%C3%A1-padri%C3%B1%C3%A1n-255379.jpg&fm=jpg");
background-size: cover;
background-repeat: no-repeat;
background-attachment:scroll;
}
/* == Question-9 End == */
/* == Question-10 start == */
.section4 {
width: 150vmin;
height: 180vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
.box3 {
font-size: 3.5vmin;
color: #fff;
margin: 4vmin 3vmin;
height: 30vmin;
width: 130vmin;
background-color: #27374D;
border-radius: 10px;
padding: 5vmin;
}
.box3 p {
color: #fff;
}
/* == Question-10 end == */
/* == Question-11 start == */
.section5 {
width: 150vmin;
height: 280vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
.box4 {
font-size: 3.5vmin;
color: #fff;
margin: 4vmin 3vmin;
height: 25vmin;
width: 130vmin;
background-color: #27374D;
border-radius: 10px;
padding: 5vmin;
}
.box5 {
font-size: 3.5vmin;
color: #fff;
margin: 4vmin 3vmin;
height: 145vmin;
width: 130vmin;
background-color: #27374D;
border-radius: 10px;
padding: 5vmin;
line-height: 4vmin;
}
.box6 {
margin: 4vmin 3vmin;
height: 35vmin;
width: 50vmin;
background-color: #27374D;
margin: 5% auto;
}
#box {
background: black;
color:white;
text-align: center;
width: 30vmin;
margin: 5% auto;
}
#box h3 {
color: #fff;
}
/* == Question-11 End == */
/* == Question-12 start == */
.section6 {
width: 150vmin;
height: 107vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
/* == Question-12 End == */
/* == Question-13 Start == */
.section7 {
width: 150vmin;
height: 296vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
.section7 h2 {
margin-top: -11vmin ;
}
.viz1 {
width: 50vmin;
height: 15vmin;
background-color: #27374D;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
margin: 5vmin 0 7vmin 42vmin;
}
.box8 {
margin: 4vmin 3vmin;
height: 38vmin;
width: 50vmin;
background-color: #27374D;
margin: 5% auto;
color: #fff;
font-size: 3.5vmin;
padding: 3vmin;
}
.viz2 {
width: 50vmin;
height: 15vmin;
background-color: #27374D;
color: #fff;
padding: 10px;
font-size: 3.5vmin;
justify-content: center;
margin: 5vmin 0 5vmin 42vmin;
}
.viz3 {
width: 60vmin;
height: 35vmin;
background-color: #27374D;
padding: 15px;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
margin: 5vmin 0 5vmin 42vmin;
font-size: 3.5vmin;
}
/* == Question-13 End == */
/* == Question-14 Start == */
.section8 {
width: 150vmin;
height: 172vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
.container1 {
margin: 4vmin 3vmin;
height: 71vmin;
width: 130vmin;
background-color: #27374D;
margin: 5% auto;
color: #fff;
font-size: 3.5vmin;
padding: 3vmin;
line-height: 5vmin;
}
.box10 {
margin: 4vmin 3vmin;
height: 31vmin;
width: 130vmin;
background-color: #27374D;
margin: 5% auto;
padding: 3vmin;
line-height: 5vmin;
}
.box10 p {
color: #ff9900;
font-size: 3.5vmin;
}
a:hover {
color: LimeGreen;
text-decoration: none;
}
/* == Question-14 End == */
/* == Question-15 Start == */
.section9 {
width: 150vmin;
height: 222vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
.box10 {
margin: 4vmin 3vmin;
height: 76vmin;
width: 130vmin;
background-color: #27374D;
margin: 5% auto;
padding: 3vmin;
color: #fff;
font-size: 3.5vmin;
}
.box11 {
margin: 4vmin 3vmin;
height: 66vmin;
width: 130vmin;
background-color: #27374D;
margin: 5% auto;
padding: 3vmin;
color: #fff;
font-size: 3.5vmin;
line-height: 5vmin;
}
/* == Question-15 End == */
/* == Question-16 Start == */
.section10 {
width: 150vmin;
height: 207vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
/* == Question-16 End == */
/* == Question-17 Start == */
.section11 {
width: 150vmin;
height: 78vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
/* == Question-17 End == */
/* == Question-18 Start == */
.section12 {
width: 150vmin;
height: 239vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
.viz4 {
width: 130vmin;
height: 16vmin;
background-color: #27374D;
padding: 15px;
color: #fff;
margin: 5vmin 0 5vmin 3vmin;
line-height: 4vmin;
}
.box01 {
height: 25vmin;
width: 120vmin;
background-color: #27374D;
padding: 0vmin;
margin: 5vmin;
padding: 2vmin 3vmin;
color: #fff;
font-size: 3.5vmin;
border-left: 8px solid orange;
}
/* == Question-18 End == */
/* == Question-19 Start == */
.section13 {
width: 150vmin;
height: 112vmin;
background-color: #fff;
padding: 50px;
margin-left: -8.2vmin
}
/* == Question-19 End == */
</style>
</head>
<body>
<!-- == question-1 Start == -->
<div class="question-1">
<h2>Q-1. What are the benefits of using CSS?</h2>
<p>Cascading Style Sheets (CSS) are a type of style sheet language that give web designers control over how an internet site interacts with web browsers, including how its HTML documents are formatted and displayed.</p>
<p>CSS, often known as cascading sheets, is a text-based coding language that describes how websites are formatted and how they interact with web browsers. The language enables web designers to control a wide range of style features, including layout, colour, and fonts, which in turn affects how HTML documents are formatted and displayed.</p>
<p>The key objective was to distinguish between the content of documents and their presentation, which includes design elements like colour, layout, and fonts. The design and aesthetics of an internet page are handled by CSS. You can adjust the text's colour, font style, paragraph spacing, column size and layout, among other things, by using CSS.</p>
<p> CSS gives instructions to HTML on how to display a website so that users may see it. Let's take a quick look at CSS's advantages and disadvantages.</p>
<h3>Advantages of CSS:</h3>
<ul>
<li>
With CSS, you only need to declare a repeating style for an element once and use it repeatedly because CSS will automatically apply the necessary styles.
</li>
<li>
The primary benefit of CSS is that it applies style uniformly across various websites. Multiple locations can be controlled by a single instruction, which is beneficial.
</li>
<li>
For each page, web designers should add a few lines of programming to increase site speed.
</li>
<li>
Because a change to one line of code impacts the entire website and maintenance time, cascading sheets simplify both website construction and maintenance.
</li>
<li>
Because it is less complicated, the effort is drastically decreased.
</li>
<li>
Changes that are consistent and spontaneous are formed.
</li>
<li>
Devices can easily read CSS updates. There is a need for responsive web design because consumers use a wide variety of smart devices to visit websites online.
</li>
<li>
It is capable of shifting position. It assists us in figuring out how the positions of the web elements that are present on the page have changed.
</li>
<li>
These significant values of inconsequential tags that blend in with a jumble of pages represent the bandwidth savings.
</li>
<li>
The user can easily customise the online page
</li>
<li>
It lessens the size of the file transfer.
</li>
</ul>
<h2>Q-2. What are the disadvantages of CSS?</h2>
<h3>Disadvantages of CSS:</h3>
<ul>
<li>
CSS, from CSS 1 to CSS3, causes misunderstanding among web browsers.
</li>
<li>
What works with one browser may not always work with another when it comes to CSS. The programme must be tested for compatibility by web developers using a variety of browsers.
</li>
<li>
The availability of security is limited.
</li>
<li>
If any compatibility issues arise after making the changes, we must verify them. All browsers are affected by the same change.
</li>
<li>
The world of programming languages is challenging for novices and those who are not developers. Different CSS levels, such as CSS, CSS 2, and CSS 3, can be very confusing.
</li>
<li>
compatibility with various browsers (some support styles sheets, while others do not).
</li>
<li>
On various browsers, CSS functions differently. CSS is supported in different ways by IE and Opera.
</li>
<li>
When utilising CSS, cross-browser difficulties could arise.
</li>
<li>
Confusion is brought on by the several tiers, which are confusing to newbies and non-developers.
</li>
</ul>
</div>
<!-- == question-1 End == -->
<!-- == Section2 Start == -->
<div class="section2">
<h2>Q-3. What is the difference between CSS2 and CSS3?</h2>
<p>
Cascading Style Sheet: CSS stands for this term. Its primary goal is to give the website some flair and fashion. Colour, layout, background, font, and border properties are available in CSS. Better content accessibility, increased flexibility and control, as well as the ability to specify presentational attributes, are all made possible by CSS features.</p>
<p>
ascading Style Sheet Level 3 is known as CSS3, and it is the most recent version of CSS. It is utilised to format, style, and organise websites. All current web browsers support CSS3, which has a number of new capabilities. The division of CSS standards into discrete modules that are easier to understand and use is CSS3's most significant feature.
</p>
<h3>Difference between CSS and CSS3:</h3>
<table>
<tr>
<th>S.No.</th>
<th>CSS2</th>
<th>CSS3</th>
</tr>
<tr>
<th>1</th>
<td> Text and objects can be positioned using CSS.</td>
<td>1. On the other hand, CSS3 can make the website more visually appealing and generate it more quickly. CSS and CSS3 are backwards compatible. </td>
</tr>
<tr>
<th>2</th>
<td>Responsive designing is not supported in CSS</td>
<td>Since CSS3 is the most recent version, responsive design is supported.</td>
</tr>
<tr>
<th>3</th>
<td>CSS cannot be split into modules. </td>
<td>In contrast, CSS3 can be divided into modules. </td>
</tr>
<tr>
<th>4</th>
<td>Using CSS, we cannot build 3D animation and transformation. </td>
<td>But because CSS3 provides animation and 3D transformations, we can perform any type of animation or transformation. </td>
</tr>
<tr>
<th>5</th>
<td>CSS is very slow as compared to CSS3 </td>
<td>In contrast, CSS3 is quicker than CSS.</td>
</tr>
<tr>
<th>6</th>
<td>CSS only employs simple colour schemes and a set of standard colours.</td>
<td>In contrast, CSS3 includes a good selection of gradients, HSL RGBA, and HSLA colours.</td>
</tr>
<tr>
<th>7</th>
<td>We are only able to use single text blocks in CSS.</td>
<td>However, multi-column text blocks are available in CSS3. </td>
</tr>
<tr>
<th>8</th>
<td>Media queries are not supported by CSS.</td>
<td>But media queries are supported by CSS3 </td>
</tr>
<tr>
<th>9</th>
<td>Modern browsers of different types do not all support CSS.</td>
<td>All current browsers support CSS3 codes because they are the newest version.</td>
</tr>
<tr>
<th>10</th>
<td>Designers must manually create rounded edges and gradients in CSS.</td>
<td>However, CSS3 has sophisticated techniques for creating rounded edges and gradients.</td>
</tr>
<tr>
<th>11</th>
<td>CSS doesn't support any special effects like text shadowing, text animation, etc. JQuery and JavaScript were used to create the animation. </td>
<td> Advanced features of CSS3 include text shadows, visual effects, and a variety of font styles and colours. </td>
</tr>
<tr>
<th>12</th>
<td>The user can set images for the list items, add background colours to list items and lists, and more through CSS. </td>
<td>In contrast, a unique display property is defined in the CSS3 list. Even list elements have characteristics for counter reset. </td>
</tr>
<tr>
<th>13</th>
<td>In 1996, CSS was created. </td>
<td>CSS3 was introduced as the most recent version in 2005. </td>
</tr>
<tr>
<th>14</th>
<td>14 Memory usage for CSS is high. </td>
<td>When compared to CSS, CSS3 uses less RAM.</td>
</tr>
</table>
<h2>Q.4 Name a few CSS style components</h2>
<p>The style of web pages using HTML elements is set using Cascading Style Sheets (CSS). It alters the properties of several web page elements, such as the background colour, font size, font family, colour, etc.</p>
<p>The following list of three CSS types includes:</p>
<ul>
<li>Inline CSS</li>
<li>embedded CSS</li>
<li>external CSS</li>
</ul>
<p><b>Inline CSS:</b> Inline CSS is a style sheet that includes a CSS property in the body of an element. The style attribute of an HTML tag is used to specify this kind of style.</p>
<p><b>Example:</b> This is an illustration of how inline CSS is used.</p>
<p><b>Internal or Embedded CSS:</b> When a single HTML document needs to be styled uniquely, internal or embedded CSS might be employed. The head part of the HTML document should contain the CSS rule set, which is done by embedding the CSS within the style> tag.</p>
<p><b>Example:</b>This illustrates how internal-css is used.</p>
<p><b>External CSS: </b>External CSS consists of independent CSS files that, with the aid of tag attributes (such as class, id, heading,... etc.), only include style characteristics. CSS properties should be linked to the HTML content using a link tag and are written in a separate file with a.css extension. It implies that a style can only be set once per element and will be used consistently throughout web pages.</p>
<p><b>Example:</b>CSS attribute can be found in the file provided below. The.css extension is used to save this file.
</p>
<!-- == Section 3 End == -->
<!-- == Section 3 Start == -->
<div class="section3">
<!-- == Qestion-5 Start == -->
<h2>Q.5 What do you understand by CSS opacity?</h2>
<h3>Definition and Usage</h3>
<p>The opacity level of an element is controlled by its opacity parameter.</p>
<p>The opacity-level, where 1 is fully opaque, 0.5 is partially transparent, and 0 is completely transparent, describes the transparency-level.</p>
<div class="opacity">
<figure class="img">
<img src="https://media-cdn.tripadvisor.com/media/vr-splice-j/0c/06/94/77.jpg" width="230px" alt="">
<figcaption>opacity 0.2</figcaption>
</figure>
</span><figure class="img1">
<img src="https://media-cdn.tripadvisor.com/media/vr-splice-j/0c/06/94/77.jpg" width="230px" alt="">
<figcaption>opacity 0.5</figcaption>