0% found this document useful (0 votes)
225 views

CSS Interview Questions

CSS allows customizing web page styling through properties that control elements like color, font, size, and layout. There are three main ways to apply CSS - internal, external, and inline stylesheets. Internal stylesheets define CSS rules within <style> tags in the HTML <head> section. External stylesheets store rules in a separate .css file linked via <link> tags. Inline styles use the style attribute directly in HTML elements. CSS selectors target elements using tags, classes, IDs, and other attributes to style them. Common CSS properties configure text styling, backgrounds, links, tables, and positioning.

Uploaded by

Fun 4ever
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
225 views

CSS Interview Questions

CSS allows customizing web page styling through properties that control elements like color, font, size, and layout. There are three main ways to apply CSS - internal, external, and inline stylesheets. Internal stylesheets define CSS rules within <style> tags in the HTML <head> section. External stylesheets store rules in a separate .css file linked via <link> tags. Inline styles use the style attribute directly in HTML elements. CSS selectors target elements using tags, classes, IDs, and other attributes to style them. Common CSS properties configure text styling, backgrounds, links, tables, and positioning.

Uploaded by

Fun 4ever
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 28

CSS INTERVIEW QUESTIONS

FAQS:

1.Explain advantages of CSS?


 The main advantage of CSS is that style is applied consistently across variety of sites. One
instruction can control several areas which is advantageous.

 Web designers needs to use few lines of programming for every page improving site speed.
 Cascading sheet not only simplifies website development, but also simplifies the
maintenance as a change of one line of code affects the whole web site and maintenance
time.
2. Why do we use CSS?
 CSS (Cascading Style Sheets) is used to style and layout web pages — for example, to
alter the font, color, size, and spacing of your content, split it into multiple columns, or add
animations and other decorative features
3. Can we implement css anywhere in the web page?
 Add CSS Code In-Between The <head> Tags
 Unlike JavaScript, the CSS code must be included before the HTML code (DOM) gets loaded
on the browser. You may wonder why… because you could add the CSS code by the end of
the body and it will work fine

4. Explain about inline style sheets?

 An inline CSS is used to apply a unique style to a single HTML element.


 An inline CSS uses the style attribute of an HTML element.

5. Explain about internal style sheets?

 Internal CSS is one of the most widely used CSS forms for changing, styling, and modifying
the unique styles of a single web page. You can use the internal CSS by integrating the <style>
element in the <head> section of a HTML web page. 
 Internal CSS can be applied to the whole web page but not on multiple web pages and you
can style several web pages by using the same code on every page.

6. Explain about external style sheets?

 An external style sheet is a file with a . css extension that contains cascading style sheet
(CSS) definitions for a webpage(s). It completely separates the CSS styles from the HTML
document making it easy to reuse and maintain.

7. Explain difference between internal and external style sheets?

 Internal CSS are those that can be written in the same file as the HTML code, i.e. the HTML
code and CSS code are placed in the same file. External CSS means that we can write in a
different file than the HTML code, i.e. the HTML file is separate (index. html) and the CSS file
is separate (style. css).

8. Explain difference between inline and internal style sheets?

 Inline CSS: Requires the style attribute placed inside an HTML element.
 Internal CSS: Requires the <style> element placed inside the head section of an HTML file.
 External CSS: Requires the <link> element placed inside the head section of an HTML file.

9. Explain about selectors


 Element Selector.
 Id Selector.
 Class Selector.
 Universal Selector.
 Group Selector.
 Attribute Selector.
 Pseudo-Class Selector.
 Pseudo-Element Selector.
10. Explain difference between tag selector and id selector?
 Difference between id and class attribute: The only difference between them is that “id” is
unique in a page and can only apply to at most one element, while “class” selector can
apply to multiple elements
11. Why do we use group selector?
 The CSS grouping selector is used to select multiple elements and style them together.
This reduces the code and extra effort to declare common styles for each element .

12. In which scenario we do use id selector and class selector?


 Difference between id and class attribute: The only difference between them is that “id” is
unique in a page and can only apply to at most one element, while “class” selector can
apply to multiple elements
13. Explain difference between child selector and direct child selector?

14. Is it possible to apple multiple selectors on same html element?

15. Explain about CSS selectors precedence?


 Inline style: Inline style has highest priority among all. 2) Id Selector: It has
second highest priority. 3) Classes, pseudo-classes and attributes: These
selectors has lowest priority.
16. What are CSS units?
 A CSS unit is used to determine the property size, which we set for an element or its
content. The units in CSS are required to define the measurement such as margin: 20px
17. What are the three types of CSS measurement units?

18. Which is the default measurement unit of css?


 There is no 'default unit'. The CSS spec requires that a length (other than zero) that is
missing a unit be treated as an error
19. What is Z index in CSS?
 z-index is the CSS property that controls the stacking order of overlapping elements on
a page. An element with a higher z-index value will appear in front of an element with a lower
z-index value. The property is called “z-index” because it sets the order of elements along the
z-axis.
20. Should I use PT or PX?

21. Should I use percentages in CSS?


 It depends on the company you work for, some will be percentages, some will prefer rem,
or em, or vh. Each company has their own style, and requirements. Honestly, didn't really
notice the viewport width until you asked, so
22. What Are CSS Backgrounds?
 The background shorthand CSS property sets all background style properties at once,
such as color, image, origin and size, or repeat method
23. How do we Sets the starting position of a background image?
 The background-position property sets the starting position of a background image. Tip: By
default, a background-image is placed at the top-left corner of an element, and repeated both
vertically and horizontally.
24. CSS Background Images are not HTML Images, then why?
 Make sure the image path is set correctly in the background-image url.
Once you have made sure that your CSS file is linked correctly, also check
that the image itself is set correctly. Again, you will want to open your code
inspector in the browser to check
25. How do we set multiple background images?
 CSS allows you to add multiple background images for an element, through the
background-image property. The different background images are separated by commas,
and the images are stacked on top of each other, where the first image is closest to the
viewer.
26. What Are CSS Fonts?
 CSS Fonts is a module of CSS that defines font-related properties and how font
resources are loaded. It lets you define the style of a font, such as its family, size and
weight, line height, and the glyph variants to use when multiple are available for a single
character
27. What are the different font attributes available?
 The font property may be specified as either a single keyword, which will select a system font,
or as a shorthand for various font-related properties. If font is specified as a system keyword,
it must be one of: caption , icon , menu , message-box , small-caption , status-bar

28. Differentiate font-size and font-weight properties?


 Weight is if font is more or less bold. Size is height of font... The font-weight property
sets how thick or thin characters in text should be displayed. syntax: font-weight: normal|bold|
bolder|lighter|number|initial|inherit; The font-size property sets the size of the text.

29. What is default font size of html document?


 The default text size in browsers is 16px. So, the default size of 1em is 16px.

30. What Are CSS Text Attributes?


 CSS text formatting properties is used to format text and style text.
CSS text formatting include following properties:
 1.Text-color
2.Text-alignment
3.Text-decoration
4.Text-transformation
5.Text-indentation
6.Letter spacing
7.Line height
8.Text-direction
9.Text-shadow
10.Word spacing

31. What are the different text attributes available?

32. How to overrule underlining Hyperlinks?


 We can get rid of underlying hyperlinks by using CSS text-decoration property. If this
property is set to be none then there will be no underline hyperlinks displayed.

33. Can we define the text direction via CSS property?


 YES The direction CSS property sets the direction of text, table columns, and
horizontal overflow. 
34. What Are the hyperlink Attributes?
The <a> tag defines a hyperlink, which is used to link from one page to another. The most important
attribute of the <a> element is the href attribute, which indicates the link's destination. By default,
links will appear as follows in all browsers: An unvisited link is underlined and blue

35. way to set the color of active links?


 Use the :active class to change the color of active links. Possible values could be any
color name in any valid format
 <style>

 a:active {

 color: pink;

 }
 </style>
36. Which order we do follow while defining <a> pseudo properties?

 The recommended order is link,visited,focus,hover,active. The :link and :visited pseudo-


classes should generally come first. Next should be :focus and :hover—they're specified now
so that they override and apply to both visited and unvisited links.

37. What Are the css table Attributes?


 Some of the most commonly used CSS table style properties are border, padding, border-
spacing, border-collapse, background, color, height & width of cells, table-layout, text-
align, 
38. Explain about Collapse property?
 The border-collapse property in CSS is used to set the borders of the cell present inside
the table and tells whether these cells will share a common border or not

39. What is CSS Box Model and what are its elements?
 In CSS, the term "box model" is used when talking about design and layout. The CSS box
model is essentially a box that wraps around every HTML element. It consists of: margins,
borders, padding, and the actual content.

40. How to give border to text in css?

41. How many types of css borders available?

42. Differentiate border and outline?


 Outline differs from borders! Unlike border, the outline is drawn
outside the element's border, and may overlap other content. Also, the
outline is NOT a part of the element's dimensions; the element's total
width and height is not affected by the width of the outline.

43. What is CSS margin?

 The CSS margin properties are used to create space around elements, outside of


any defined borders.
 With CSS, you have full control over the margins. There are properties for setting
the margin for each side of an element (top, right, bottom, and left)

44. Why do we use margins?

 The margin helps to define where a line of text begins and ends. When a page is justified
the text is spread out to be flush with the left and right margins. When two pages of content
are combined next to each other (known as a two-page spread), the space between the two
pages is known as the gutter.

45. Write a code to set 4margins in different styles?

 p {
  margin-top: 100px;
  margin-bottom: 100px;
  margin-right: 150px;
  margin-left: 80px;
}

46. Is it possible to create an element with bottom border only?

47. What is CSS padding?

 The padding property in CSS defines the innermost portion of the box model, creating
space around an element's content, inside of any defined margins and/or borders.
Padding values are set using lengths or percentages, and cannot accept negative values. The
initial, or default, value for all padding properties is 0

48. Why do we use padding margins?

 Margins are used to add spaces between an image and the description of that image. CSS
Padding is used if we want to create a space between an element and the edge of the
container or the border. It is also useful in the requirement of changing the size of the
element.

49. Write a code to set 4padding in different styles?

 div {
  padding-top: 50px;
  padding-right: 30px;
  padding-bottom: 50px;
  padding-left: 80px;
}

50. Explain difference between margin and padding?

 In CSS, a margin is the space around an element's border, while padding is the space
between an element's border and the element's content. Put another way, the margin
property controls the space outside an element, and the padding property controls the space
inside an element.

51. Explain different cursor models?

 Arrow Cursor
 Text Pointer/I-beam
 Hand Cursor
 Hourglass/Waiting Cursor
 Help Pointer
 Object Resizing Cursor
 Pencil Cursor
 Precision Pointer
 White cross cursor
 Move Cursor
 Zoom In/Out Cursor
 Grab cursor
 Scroll cursor
 Unavailable Pointer

52. Define Image sprites with context to CSS?

 An image sprite is a collection of images put into a single image. A web page with many
images can take a long time to load and generates multiple server requests. Using image
sprites will reduce the number of server requests and save bandwidth .

53. Why do we use image sprites?

 You create a defined area with a <a> with display:block; or <div> and use overflow hidden; to
hide overflow and position:relative; . Then you place your <img> image sprite inside
absolutely positioned, which is possible since you positioned the parent. Then use :hover on
the image to change position.

54. Should my sprites be horizontal or vertical?

 For all images in the sprite, find the width of the widest image and the height of the tallest
image. If the largest width is greater than the largest height, then a horizontal stacking will
result in a more optimal sprite sheet. Otherwise, vertical stacking is more optimal.

55. What are Pseudo-elements?

 A CSS pseudo-element is used to style specified parts of an element.


 For example, it can be used to:

 Style the first letter, or line, of an element


 Insert content before, or after, the content of an element

56. How do I use pseudo classes in CSS?

 A CSS pseudo-class is a keyword added to a selector that specifies a special state of the


selected element(s). For example, the pseudo-class :hover can be used to select a button
when a user's pointer hovers over the button and this selected button can then be styled .

57. What are pseudo classes and pseudo elements CSS?

 Pseudo-classes enable you to target an element when it's in a particular state, as if you had
added a class for that state to the DOM. Pseudo-elements act as if you had added a whole
new element to the DOM, and enable you to style that
56. What is hover and focus in CSS?

 Hover: by putting your cursor over it. A hovered element is ready to be activated with a mouse
or any mouse-emulating technology (such as eye and motion tracking). Focus: a focused
element is ready to be activated with a keyboard or any keyboard-emulating technology (such
as switch devices).

57. What is difference between : and :: ?

58. How can the dimension be defined of an element?

 length - Defines the height/width in px, cm, etc. % - Defines the height/width in percent of
the containing block. initial - Sets the height/width to its default value. inherit - The
height/width will be inherited from its parent value.

59. What are the different CSS properties used to change dimensions?

 The CSS height and width properties are used to set the height and width of an element.
The CSS max-width property is used to set the maximum width of an element. This element
has a height of 50 pixels and a width of 100%.

60. what values can CSS dimensions accept?

61. What is the different provision provided in css to define the dimension

of an element?

 length - Defines the height/width in px, cm, etc. % - Defines the height/width in percent of
the containing block. initial - Sets the height/width to its default value. inherit - The
height/width will be inherited from its parent value.

62. how to make <div> vertically scrollable?

For vertical scrollable bar use the x and y axis. Set the overflow-x:hidden; and overflow-
y:auto; that will automatically hide the horizontal scroll bar and present only vertical scrollbar.
Here the scroll div will be vertically scrollable.

63. How do I add a scrollbar to CSS?

64. How do I change the scrollbar height in CSS?

 ::-webkit-scrollbar {
 width: 2em;
 height: 2em.
 }
 ::-webkit-scrollbar-button {
 background: #ccc.
 }
 ::-webkit-scrollbar-track-piece {

65. How to set scrollbar width in css?


 The scrollbar-width property allows the author to set the maximum thickness of an
element's scrollbars when they are shown.
 scrollbar-width: auto;
 scrollbar-width: thin;
 scrollbar-width: none;

 /* Global values */
 scrollbar-width: inherit;
 scrollbar-width: initial;
 scrollbar-width: revert;
 scrollbar-width: revert-layer;
 scrollbar-width: unset;

66. How do you add a scrollbar color in CSS?


 The scrollbar-color CSS property sets the color of the scrollbar track and thumb. The
track refers to the background of the scrollbar, which is generally fixed regardless of the
scrolling position. The thumb refers to the moving part of the scrollbar, which usually floats on
top of the track

CSS MULTIPLE CHOICE QUESTIONS

1. CSS stands for? ( d )

a. cascade Style Sheets

b. cascading Spread Sheets

c. Cascade Spread Sheets

d. Cascading Style Sheets

2. What CSS define in HTML? ( d )

a. How to save HTML elements

b. How to send HTML elements

c. How to made HTML elements

d. How to display HTML elements

3. How do you insert a comment in a CSS file? ( a)


a. /* this is a comment */

b. <-- this is a comment -- >;

c. // this is a comment

d. // this is a comment //

4. CSS1 Developed in ……. by the W3C, describes CSS language and


simple visual ( d )

formatting for all HTML tags.

a. 1992

b. 1994

c. 1995

d. 1996

5. From which version of CSS under development since the late 1990s,
added a lot of extra ( )

features?

a. CSS1

b. CSS2

c. CSS3

d. None

6. A CSS declaration always ends with a ………, and declaration groups are
surrounded by ( a )

……

a. semicolon and curly brackets

b. semicolon and square brackets

c. either (A) or (B)

d. neither (A) or nor (B)

7. In css, “color:red” can be called as _______ ( c )


a. Selector

b. Rule

c. Declaration

d. Value

8. Which of the following statements is TRUE for CSS? ( c )

a. An external style sheet is ideal when the style is applied to many pages

b. An inline style sheet should be used when a single document has a


unique style

c. Both and b above

d. An external style sheet can be written in HTML.

9. Which HTML attribute is used to define inline styles? ( c )

a. Class

b. styles

c. style

d. Font

10. Which of the style sheet is also known as Embedded Style Sheet?
(d)

a. Document Style Sheet:

b. Inline Style Sheet:

c. External Style Sheet:

d. None of the above

11. An internal style sheet should be used when a single document has
a(a)

a. unique style

b. common style

c. either (A) or (B)


d. None

12. A ……… tag is used to specify that the browser is to fetch and use an
external style ( b )

sheet file

a. <sheet>;

b. <link>

c. <src>

d. None

13. How many types of levels in style sheets?(c )

a. One level

b. Two level

c. Three level

d. Four level

14. Which style sheet can be applied to the content of a single element?
(a)

a. Inline Style Sheet

b. External Style Sheet

c. Document/Embedded Style Sheet

d. None

15. Is this correct way to apply css.State true or false. &lt;link


rel=&quot;stylesheet&quot; type=&quot;text/css&quot;

href=&quot;mystyle.css&quot;&gt;(a)

a. True

b. False

c. May be
d. Can&#39;t say

16. The _____________ selector is used to specify a style for a single,


unique element (a)

a. Id

b. Class

c. Text

d. Bit

17. The id selector uses the id attribute of the HTML element, and is
defined with a( d)

a. ”@”

b. ”_”

c. ”%”

d. ”#”

18. Which of the following attributes is used to specify elements to bind


style rules to? ( d)

a. Id

b. Class

c. Tag

d. all of the mentioned

19. The class selector uses the HTML class attribute, and is defined
with(b)

a. ”:”

b. ”.”

c. ”,”

d. None

20. In CSS, ……………are patterns used to select the element(s) you want
to style. (a)
a. Selectors

b. decleration

c. Either(A) or (B)

d. Neither (A) nor (B)

21. Which of the following is not an Absolute Unit?

a. Px

b. Em

c. Pt

d. Vmin

22. Which of the following unit represent the viewport’s width?

a. Vh

b. Vm

c. em

d. px

23. What is the correct HTML for referring to an external style sheet?()

a. A point is 1/74 inches.

b. A point is 1/72 inches.

c. A point is 1/75 inches.

d. A point is 1/78 inches

24. Which is the preferable measurement in real time?

a. Um

b. Px

c. Mm

d. Cm
25. ________ property specifies an image to use as the background of an
element( b)

a. image

b. backgroundimage

c. background-img

d. background-image

26. Which of the below is the correct way to set a background image?(c )

a. body {background-image:uri(wall.gif);}

b. body {background-image:url(wall.gif&#39;);}

c. body {background-image:url(‘wall.gif’);}

d. body {background-image:uri(&#39;wall.gif&#39;);}

27. Which of the following will move the image up and down?( a)

a. Scroll

b. Fixed

c. repeat-x

d. repeat-y

28. Which of the following is not the value for background-repeat property?
(d)

a. repeat-y

b. repeat-x

c. no-repeat

d. fixed

29. can we use both background-color and background-image properties at a


time? (a)

a. True

b. False
c. None

30. Which of the below is the correct way to set a font size?(c)

a. h2 {font-size:200%;}

b. h2 {font-size:200px;}

c. both a and b

d. h2 {font-size:200;}

31. Which of the following is not a value for font-style property?(d)

a. Normal

b. italic

c. oblique

d. None

32. Which of the following selects a normal, or small-caps face from a font
family?(d)

a. font-weight

b. font-synthesis

c. font-kerning

d. font-variant

33. Which of the following property sets the font size of text?(d)

a. text-size

b. font-size

c. size

d. text

34. If a font name has more than one word,it should be

a. single quoted

b. double quoted
c. comma

d. None

35. Multiple font faces are separated by _______(b)

a. Semicolon

b. Comma

c. Dot

d. Slash

36. ___________ property can be used to increase or decrease the space


between words(b)

a. Space

b. word-spacing

c. word-space

d. Both b and c

37. Which of the following ways is correct to write a CSS?( c)

a. p {color:red;text-align:center};

b. p {color:red;text-align:center}

c. p {color:red;text-align:center;}

d. p (color:red;text-align:center;)

38. The ____________ property is mostly used to remove underlines from


links( c)

a. text-trans

b. text-transformation

c. text-decoration

d. text-deco

39. Which CSS property is equivalent for the attribute <center>;?(c)


a. Color

b. margin

c. align

d. font

40. Which of the following CSS property is used to give a line over the text?
(b)

a. text-decoration: underline

b. text-decoration: overline

c. text-decoration: line-through

d. text-decoration: none

41. Which of the following property sets the amount of spacing between
letters?(c)

a. Space

b. line-height

c. letter-spacing

d. letter-space

42. Which of the following property defines labels for a list of items?(a)

a. list-style-type

b. list-style-image

c. list-style

d. list

43. The_________ means unvisited hyperlinks.(c)

a. :active

b. :hover

c. :link

d. :visited
44. Which of the following property assigns a graphic image to a list item?(b)

a. list-style-type

b. list-style-image

c. list-style

d. list

45. The CSS list properties allow you to:(d)

a. Set different list item markers for ordered lists

b. Set different list item markers for unordered lists

c. Set an image as the list item marker

d. All of the above

46. Which property can be used to indicate whether the marker should
appearoutside or inside of the box containing the bullet points?(b)

a. list-style-character:

b. list-style-position:

c. list-style-image:

d. None of the above

47. How many types of property can be set in the hyperlink?(d)

a. One

b. Two

c. Three

d. Four

48. The _________ means an element that has the user’s mouse pointer
hovering(c)

over it.

a. a:link

b. a:visited
c. a:hover

d. None of the above

49. The _________ means an element on which the user is currently


clicking.(a)

a. a:active

b. a:visited

c. a:hover

d. None of the above

50. When setting the style for several link states, there are some order rules(
c)

a. a:hover MUST come after a:link and a:visited

b. a:active MUST come after a:hover

c. Either (A) or (B)

d. Neither (A) nor (B)

51. To specify table borders in CSS, ___________ property is used(d)

a. tbl-border

b. table-border

c. tb-border

d. border

52. ___________ property defines the space between cells in a table.(b)

a. Border

b. border-spacing

c. border-style

d. none

53. Which of the following property is used to control the space between the
border andcontent in a table(c)
a. Border

b. margin

c. padding

d. resize

54. Which is not the property of CSS box model?

a. Width

b. Height

c. Margin

d. Color

55. Which of the following property defines in a shorthand form the width,
style, and color for the top border of an element?(d)

a. border-style

b. border-height

c. border-width

d. border-top

56. Which of the following property sets the width of an element’s complete
border?(a)

a. border-width

b. width

c. border-depth

d. None

57. Which CSS property can be used to set the image as border instead of
the border style?(c)

a. background-image

b. border-image

c. background-image-source
d. border-image-source

58. Which of the following property specifies the look and design of an
outline?(b)

a. outline-font

b. outline-style

c. outline-format

d. None

59. Which of the following property sets the width of an element’s complete
border?(a)

a. border-width

b. width

c. border-depth

d. None

60. Which of the following property defines in a shorthand form the width,
style, and color for the left border of an element?(b)

a. border

b. border-style

c. border-left

d. none of the above

61. Which property is used to change the left margin of an element?(d)

a. Float

b. padding-left

c. Indent

d. margin-left

62. Which property is used to change the right margin of an element?(c)


a. Right-margin

b. padding-left

c. Margin-right

d. margin-left

63. Which property is used to change the bottom margin of an element?(c)

a. bottom-margin

b. padding-bottom

c. Margin-bottom

d. margin-left

64. In CSS, it is not possible to specify different padding for different


sides(b)

a. True

b. False

65. Which property is used to change the left padding of an element?(b)

a. Float

b. padding-left

c. Left-padding

d. margin-left

66. Which property is used to add space inside the text field?(a)

a. Padding

b. Margin

c. border

d. space

67. Which property is used to change the right margin of an element?(a)

a. Right-margin
b. padding-left

c. Margin-right

d. margin-left

68. Using padding is also known as ________(d)

a. Leon Dwyer method

b. Radu darvas method

c. Lindsay method

d. Langridge method

69. Which property is used to change the bottom margin of an element?


(c)

a. bottom-margin

b. padding-bottom

c. Margin-bottom

d. margin-left

70. Sprites are _____________(b)

a. 1-D images

b. 2-D images

c. 3-D images

d. not the image

71. Sprites are not used for _________(a)

a. beautify the web page

b. reducing HTTP request

c. reduce loading time

d. reducing multiple server requests


72. Each image in sprite should be approximately of _______(c)

a. 100 pixels

b. 20 pixels

c. 10 pixels

d. 50 pixels

73. Which of the following Selector same as :firstline; changed under


CSS3 to make pseudoelements obvious?(d)

a. :first-letter

b. :last-child

c. :first-line

d. ::first-line

74. A ___________ is used to define a special state of an element.(d)

a. pseudo-tag

b. pseudo-element

c. pseudo-id

d. pseudo-class

75. Which of the following selector selects the elements that are checked?
(c)

a. E ~ F

b. ::after

c. :checked

d. none of the mentioned

76. which property is used to set the maximum height of an element?(b)

a. height 

b. max-height
c. min-height

d. max-width

77. which property is used to set the width of an element?(a)

a. width 

b. max-height

c. min-height

d. max-width

78. which property is used to set the minimum width of an element?(a)

a. width 

b. max-height

c. min-height

d. max-width

79. which property is used to set the height of a line of text?(a)

a. line-height 

b. max-height

c. min-height

d. max-width

80. Which of the following property defines a color for the face of a scroll
bar,including arrow regions and the scroll box?(d)

a. scrollbar-base-color

b. scrollbar-arrow-color

c. scrollbar-darkshadow-color

d. scrollbar-face-color
81. Which of the following property is used to set the color of the arrow
icon within ascroll bar?(b)

a. scrollbar-base-color

b. scrollbar-arrow-color

c. scrollbar-darkshadow-color

d. scrollbar-face-color

82. Which of the following Overflow property value is described by


scrollbars shouldbe provided if the content is too big, but actual
implementation is left up to thebrowser?(a)

a. Visible

b. Scroll

c. Auto

d. Hidden

You might also like