Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

51.

Which of the following property defines the minimum number of lines in a paragraph to be left at the top of a page?(a) white-space(b) widows(c) display(d) widthI had been asked this question in unit test.This intriguing question comes from Strings and Keywords in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT choice is (B) widows

To explain I would say: This PROPERTY is really only meaningful in a PAGED environment, such as print OUTPUT.
52.

Which of the following property controls how spaces, tabs, and newline characters are handled in an element?(a) space(b) display(c) widows(d) white-spaceThis question was posed to me during an interview.I would like to ask this question from Strings and Keywords topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

Right OPTION is (d) white-space

For explanation I WOULD say: The VALUES of pre-wrap and pre-line are not supported in older BROWSERS.

53.

Which of the following property determines whether or not an element is visible?(a) display(b) visibility(c) transperancy(d) disappearThe question was posed to me in an online interview.The question is from Strings and Keywords topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

Right answer is (B) visibility

The explanation is: This PROPERTY is not the same as display: none as it simply makes the item INVISIBLE; it does not COMPLETELY remove it from the display CANVAS.

54.

Which of the following property allows the text direction to be overridden to support multiple languages and text flow directions in the same document?(a) unicode-bidi(b) visibility(c) top(d) vertical-alignI have been asked this question by my school teacher while I was bunking the class.This intriguing question comes from Strings and Keywords topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT CHOICE is (a) unicode-bidi

The BEST I can EXPLAIN: SYNTAX:
55.

Which of the following is the Color Format that is a defined using the keyword rgb, followed by three numbers between 0 and 255, contained in parentheses and separated by commas, with no spaces between them.(a) HSLa Color(b) HSL Color(c) RGBa Color(d) RGB ColorThis question was posed to me by my school teacher while I was bunking the class.The origin of the question is Strings and Keywords topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct ANSWER is (d) RGB Color

Easiest explanation: RGB color values can ALSO be defined USING percentages. The format is the same, except that the numbers are REPLACED by

percentage values between 0% and 100%.

56.

Which of the following is the Color Format that is the CSS3 HSL value with a fourth value to set the alpha channel value for the color to define the opacity of the element?(a) HSLa Color(b) HSL Color(c) RGBa Color(d) RGB ColorI got this question at a job interview.This intriguing question originated from Strings and Keywords topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct choice is (a) HSLa Color

The explanation: An HSLa is SPECIFIED via a function style hsla(hue,saturation, lightness, alpha), where hue, saturation, and lightness are the same as standard HSL() VALUES, and the alpha channel value for DEFINING opacity is a number between 0 (fully transparent) and 1 (fully opaque).

57.

Which of the following is the Color Format that is a CSS’s six-digit hexadecimal format as color defined in (X)HTML?(a) Specification defined named colors(b) System Color Names(c) 6-Hex Color(d) 3-Hex ColorThe question was posed to me during a job interview.My question comes from Strings and Keywords topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct answer is (c) 6-Hex Color

To explain: CSS’s six-digit hexadecimal format is the same as color defined in (X)HTML. The format specifies color as #rrggbb, where rr is the AMOUNT of red, gg the amount of GREEN, and bb the amount of BLUE, all specified in a hexadecimal VALUE RANGING from 00 to FF.

58.

Which of the following defined as alphanumeric names that correspond to some current counter value in a document?(a) Class(b) Key(c) Counters(d) None of the mentionedThe question was posed to me in an interview for internship.My enquiry is from Strings and Keywords in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct option is (c) COUNTERS

Easy explanation: Counters demonstrate the possibility of variable-like values in CSS. They are defined as ALPHANUMERIC names that correspond to some current COUNTER value in a document.

59.

Which of the following strings are defined by in css?(a) single quotes(b) double quotes(c) both single quotes and double quotes(d) none of the mentionedI got this question in exam.My enquiry is from Strings and Keywords in section CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT ANSWER is (c) both single quotes and double quotes

The explanation: In CSS, STRINGS are defined with either single quotes (‘EXAMPLE’) or double quotes (“example”). Quotes MAY be found within the opposite quote (“I say this is an ‘example’!”).
60.

Which of the following property is used to set the color of the arrow icon within a scroll bar?(a) scrollbar-base-color(b) scrollbar-arrow-color(c) scrollbar-darkshadow-color(d) scrollbar-face-colorI got this question in an international level competition.The above asked question is from Major Themes in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT ANSWER is (B) scrollbar-arrow-color

Explanation: SYNTAX:

61.

Which of the following property is used to give a 3-D sense of depth to an element?(a) overflow-style(b) opacity(c) overflow-x(d) perspectiveThe question was asked in an international level competition.I want to ask this question from Major Themes topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT CHOICE is (d) perspective

Easy EXPLANATION: SYNTAX:
62.

Which of the following property defines a color for the face of a scroll bar, including arrow regions and the scroll box?(a) scrollbar-base-color(b) scrollbar-arrow-color(c) scrollbar-darkshadow-color(d) scrollbar-face-colorI had been asked this question in an internship interview.My question is based upon Major Themes in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT OPTION is (d) scrollbar-face-color

Easy EXPLANATION: SYNTAX
63.

Which of the following property allows a marquee to be used in the case of a text overflow?(a) overflow-style(b) opacity(c) overflow-x(d) perspectiveThe question was asked in an interview.My doubt stems from Major Themes in division CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT ANSWER is (C) overflow-x

For EXPLANATION: SYNTAX:
64.

Which of the following property defines the offset from an element’s border and its outline?(a) outline-radius(b) opacity(c) outline-offset(d) overflow-styleThe question was asked by my school teacher while I was bunking the class.This interesting question is from Major Themes in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT OPTION is (C) outline-offset

Explanation: SYNTAX:
65.

___________ property specifies how the position of the mask should be calculated by setting the origin relative to different locations within an element’s box.(a) mask-image(b) mask-box-image(c) mask-attachment(d) mask-originI got this question in an interview.This interesting question is from Major Themes in section CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT CHOICE is (d) mask-origin

The EXPLANATION: SYNTAX:
66.

_____________ property specifies whether the mask should scroll or stay fixed when the page is scrolled.(a) mask-image(b) mask-box-image(c) mask-attachment(d) mask-originI had been asked this question during an internship interview.My question is based upon Major Themes topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT OPTION is (C) mask-attachment

Best EXPLANATION: SYNTAX:
67.

___________ property defines a mask to be used as a box’s overlay in order to clip the box to a complex shape.(a) mask(b) mask-box-image(c) mask-attachment(d) mask-originThe question was posed to me during an interview.The query is from Major Themes in section CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT OPTION is (a) mask

To ELABORATE: SYNTAX:
68.

_____________ property specifies the direction in which a marquee should move.(a) marquee-style(b) marquee-play-count(c) marquee-direction(d) none of the mentionedI got this question during an online interview.I want to ask this question from Major Themes in division CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT OPTION is (C) marquee-direction

Easy EXPLANATION: SYNTAX:
69.

Each property may also have a cascaded value of ___________ which means that, for a given element, the property takes the same specified value as the property for the element’s parent.(a) !important(b) delay(c) inherit(d) importantThis question was addressed to me in unit test.Query is from Document Structure and CSS Inheritance in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct choice is (c) INHERIT

The best I can explain: Each PROPERTY may also have a cascaded value of ‘inherit’, which means that, for a GIVEN ELEMENT, the property takes the same specified value as the property for the element’s parent. The ‘inherit’ value can be used to enforce INHERITANCE of values, and it can also be used on properties that are not normally inherited.

70.

The __________ may be able to specify style information for a particular document. For example, the user may specify a file that contains a style sheet or the user agent may provide an interface that generates a user style sheet.(a) author(b) user(c) user-agent(d) none of the mentionedI had been asked this question by my college professor while I was bunking the class.This is a very interesting question from Document Structure and CSS Inheritance topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

Right CHOICE is (b) user

The best I can EXPLAIN: User: The user MAY be able to specify style information for a PARTICULAR document. For example, the user may specify a file that CONTAINS a style sheet or the user agent may provide an interface that generates a user style sheet (or behaves as if it did) .

71.

The __________ specifies style sheets for a source document according to the conventions of the document language. For instance, in HTML, style sheets may be included in the document or linked externally.(a) author(b) user(c) user-agent(d) none of the mentionedThis question was posed to me during an interview.This intriguing question comes from Document Structure and CSS Inheritance topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct answer is (a) author

Explanation: Author. The author SPECIFIES style SHEETS for a source document according to the conventions of the document language. For instance, in HTML, style sheets MAY be INCLUDED in the document or linked externally.

72.

The ___________________ property specifies whether or not an element should be resizable by the user.(a) Outline Offset(b) Resize(c) Unit(d) None of the mentionedThe question was posed to me during an interview for a job.I would like to ask this question from Document Structure and CSS Inheritance topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT OPTION is (B) Resize

Explanation: Self-explainatory.

73.

CSS3 ___________ let you display smooth transitions between two or more specified colors(a) Float(b) Align(c) Gradients(d) ColorThis question was addressed to me in class test.Question is from Document Structure and CSS Inheritance in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

Right option is (b) Align

Best EXPLANATION: Earlier, you had to use images for these effects. However, by USING CSS3 gradients you can reduce download time and bandwidth usage. In addition, elements with gradients look BETTER when zoomed, because the GRADIENT is generated by the browser.

74.

How a style sheet can be glued to the HTML document?(a) Import a style sheet using the CSS @import notation.(b) Apply the basic, document-wide style sheet for the document by using the style element(c) Link an external style sheet to the document using the link elemen(d) All of the mentionedI got this question in my homework.This key question is from Document Structure and CSS Inheritance topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT CHOICE is (d) All of the mentioned

To EXPLAIN I WOULD SAY: Self-explainatory.
75.

As a general rule, properties in CSS inherit from ___________ elements(a) child to parent(b) parent to child(c) grandparents to parents(d) none of the mentionedI had been asked this question at a job interview.My question is based upon Document Structure and CSS Inheritance in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT ANSWER is (B) PARENT to child

For EXPLANATION: Self-explainatory.
76.

Which of the following property allows long words to be able to be broken and wrap onto the next line?(a) line-wrap(b) break-word(c) word-wrap(d) word-breakThe question was posed to me during an internship interview.My question is from CSS Miscellaneous Property topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT answer is (c) word-wrap

The explanation: This PROPERTY helps you break the words and wrap onto the NEXT line to PREVENT overflow of div.
77.

The ______________ is the link between the HTML document and the style. It specifies what elements are affected by the declaration.(a) Tag(b) Selector(c) Declaration(d) ClassThe question was posed to me in an online quiz.This intriguing question comes from Document Structure and CSS Inheritance topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT answer is (B) SELECTOR

Explanation: The selector is the link between the HTML document and the style. It specifies what elements are AFFECTED by the declaration. The declaration is that part of the RULE that sets forth what the effect will be.
78.

Which of the following option a declaration consist of?(a) Tag(b) Property(c) Selector(d) ClassThe question was posed to me in semester exam.This key question is from Document Structure and CSS Inheritance in section CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT choice is (b) Property

To explain: A declaration has TWO PARTS separated by a COLON:

Property – that PART before the colon

Value – that part after the colon.
79.

Choose the CSS property which specifies the placement of a table caption.(a) table-caption(b) cell-caption(c) caption-side(d) caption-adjustI have been asked this question in final exam.Query is from CSS Miscellaneous Property in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct choice is (c) caption-SIDE

The BEST explanation: The caption-side CSS PROPERTY positions the content of a table’s caption on the SPECIFIED side.

80.

Which of the following property aligns the flexible container’s items when the items do not use all available space on the main-axis?(a) wrap-content(b) fix-content(c) adjust-content(d) justify-contentI have been asked this question in quiz.The doubt is from CSS Miscellaneous Property in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct answer is (d) justify-content

To explain I would say: The CSS justify-content PROPERTY defines how the BROWSER distributes space between and AROUND flex items ALONG the main-axis of their CONTAINER.

81.

Which of the following specifies how much the item will grow relative to the rest of the flexible items inside the same container?(a) flex-scale(b) flex-size(c) flex-grow(d) flex-flowI got this question in my homework.My enquiry is from CSS Miscellaneous Property topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT CHOICE is (C) flex-grow

Easiest EXPLANATION: Self-explainatory.
82.

Which of the following CSS property can be used to provide the flex-direction and flex-wrap properties?(a) flex(b) flex-flow(c) flex-wrap(d) all of the mentionedThis question was posed to me by my college director while I was bunking the class.Enquiry is from CSS Miscellaneous Property topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT CHOICE is (B) flex-flow

To ELABORATE: It is a SHORTHAND for both flex-direction and flex-wrap.

83.

Which of the following property specifies the stack order of an element?(a) order(b) z-index(c) p-index(d) autoThis question was posed to me during an interview.I want to ask this question from CSS Miscellaneous Property in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct CHOICE is (b) z-index

For explanation: The correct OPTION is z-index. It can only be applied on POSITIONED VALUES.

84.

Identify the CSS property that specifies the length of the space used for the tab character.(a) size(b) tab-size(c) tab-space(d) all of the mentionedThis question was addressed to me in my homework.The origin of the question is CSS Miscellaneous Property in division CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT answer is (B) tab-size

To EXPLAIN: The tab-size CSS property is used to customize the width of a tab.
85.

Which of the following is an appropriate value for overflow element?(a) hidden(b) auto(c) scroll(d) all of the mentionedThis question was addressed to me in homework.I'd like to ask this question from CSS Miscellaneous Property in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT ANSWER is (d) all of the mentioned

To ELABORATE: Overflow of a div or a CONTAINER can have the following values: visible|hidden|scroll|auto|initial|inherit.

86.

Which of the following property specifies the order of a flexible item relative to the rest of the flexible items inside the same container?(a) sort(b) layout(c) order(d) asortThis question was posed to me at a job interview.My question is taken from CSS Miscellaneous Property topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT option is (c) order

For explanation I would say: The CSS order property specifies the order USED to LAY out flex items in their flex CONTAINER. ELEMENTS are laid out in the ascending order of the order value.
87.

Which of the following CSS property sets the opacity level for an element?(a) opacity(b) transparency(c) transparent(d) all of the mentionedI have been asked this question in an international level competition.Enquiry is from CSS Miscellaneous Property topic in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct OPTION is (a) OPACITY

To explain: The opacity property DEFINES the transparency-level, where 1 is opaque, 0.5 is translucent, and 0 is completely transparent.

88.

______________ property defines whether table cell borders are connected or separate.(a) pre(b) border-color(c) border-collapse(d) tableI have been asked this question during a job interview.My question is based upon CSS and (X)HTML Elements Fundamentals in chapter CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT ANSWER is (C) border-collapse

To ELABORATE: EXAMPLE:
89.

____________ property associates a background image with an element.(a) image(b) background-image(c) float(d) none of the mentionedI got this question during an internship interview.My question is taken from CSS and (X)HTML Elements Fundamentals in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT choice is (B) background-image

The best explanation: Example:

90.

________________ property sets the background image to scroll or not to scroll with its associated element’s content(a) background(b) background-position(c) background-attachment(d) none of the mentionedI got this question in final exam.My question is from CSS and (X)HTML Elements Fundamentals topic in section CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT OPTION is (C) background-attachment

Easiest EXPLANATION: EXAMPLE:

91.

____________ property defines whether table cell borders are connected or separate.(a) border-color(b) border(c) border-style(d) none of the mentionedI got this question in unit test.The question is from CSS and (X)HTML Elements Fundamentals in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» CORRECT option is (d) NONE of the mentioned

Best explanation: border-collapse roperty defines WHETHER table cell BORDERS are CONNECTED or separate.
92.

_____________ property defines the space between cells in a table.(a) border(b) border-spacing(c) border-style(d) none of the mentionedI got this question in unit test.My question is based upon CSS and (X)HTML Elements Fundamentals topic in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

The correct choice is (B) border-spacing

Easy EXPLANATION: border-spacing: non-negative LENGTH(s) | INHERIT

93.

____________ property sets the coordinates of the clipping shape that exposes or hides the content of absolutely positioned elements(a) clammper(b) clip(c) clear(d) none of the mentionedI have been asked this question during an online exam.Origin of the question is CSS and (X)HTML Elements Fundamentals in section CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT option is (B) clip

Best explanation: clip: rect(COORDINATES) | auto | INHERIT
94.

The _____________ property allows us to include the padding and border in an element’s total width and height.(a) margin(b) box-sizing(c) padding(d) none of the mentionedI have been asked this question in quiz.The query is from CSS and (X)HTML Elements Fundamentals topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT OPTION is (b) box-sizing

For explanation I WOULD SAY: Example:
95.

The ___________ property specifies if/how an element is displayed.(a) background-color(b) border(c) color(d) displayI had been asked this question during an interview.The question is from CSS and (X)HTML Elements Fundamentals topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer»

The CORRECT OPTION is (d) display

To ELABORATE: EXAMPLE:

96.

The _____________ property specifies the background color of an element.(a) background-color(b) border(c) color(d) displayThe question was asked in semester exam.My question is based upon CSS and (X)HTML Elements Fundamentals topic in portion CSS Properties, Elements, Functions & Tables of CSS

Answer» RIGHT OPTION is (a) background-color

Best EXPLANATION: EXAMPLE:
97.

Which of the following elements are block and inline elements, respectively, that have no particular rendering?(a) div(b) span(c) box-model(d) both div and spanThis question was posed to me in class test.This interesting question is from CSS and (X)HTML Elements Fundamentals in division CSS Properties, Elements, Functions & Tables of CSS

Answer»

Correct ANSWER is (d) both div and span

The best explanation: The div ELEMENT and span element are BLOCK and inline elements, RESPECTIVELY, that have no particular rendering. You MIGHT call them generic tags. Because these tags don’t have any predefined meaning or rendering, they are very useful for arbitrary style duties.