51
Which of the following CSS property is used to set an image as a background of an element?
A.
B.
C.
D.
Answer & Solution
The
background-image property in CSS is used to set an image as the
background of an element. Example: element
{ background-image: url('image.jpg'); }.
52
Which of the following HTML attribute used to define the internal stylesheet for single document?
A.
B.
C.
D.
Answer & Solution
The
<style> tag is used within the <head> section of an HTML document to define internal
CSS styles for that document. Example: <style> p { color: red; } </style>.
53
Which of the following HTML attribute used to define the inline CSS styles?
A.
B.
C.
D.
Answer & Solution
The style attribute is used to apply CSS styles directly to an individual HTML element, making it an inline style. Example: <div style="color: red;">.
54
Which of the following CSS property used to control the element's font-size?
A.
B.
C.
D.
Answer & Solution
The font-size property in CSS is used to specify the size of the text. Example: element { font-size: 16px; }.
55
Which of the following property in CSS is used to change the text color of an element?
A.
B.
C.
D.
Answer & Solution
The
color
property in CSS is used to set the color of the text in an element. Example: element { color: blue; }.
56
Which of the following property in CSS is used to change the background color of an element?
A.
B.
C.
D.
Answer & Solution
The background-color property in CSS is used to set the background color of an element. The correct syntax would look like element { background-color: red; }.
57
Which of the following is the correct syntax for creating external style sheet?
A.
B.
C.
D.
Answer & Solution
The
<link> element is used to link external style sheets
to an HTML document. The correct syntax includes the rel="stylesheet" to specify the relationship, type="text/css" to define the MIME type, and href="example.css" to provide the path to the CSS file.
58
CSS stands for -
A.
B.
C.
D.
Answer & Solution
CSS stands for "Cascading Style Sheets." It is used to describe the presentation of a document written in HTML or XML, including layout, colors, and fonts. The term "cascading" refers to the order in which styles are applied, based on the importance and specificity of the rules.
