0% found this document useful (0 votes)
27 views55 pages

w3.css_mcq_AI

W3.CSS is a free and open-source web framework developed by W3Schools that provides a lightweight set of CSS styles for web development. It allows for responsive design and can be used alongside other CSS frameworks without requiring JavaScript. The framework includes various classes for creating containers, navigation bars, buttons, and color classes for styling elements.

Uploaded by

vips.stud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views55 pages

w3.css_mcq_AI

W3.CSS is a free and open-source web framework developed by W3Schools that provides a lightweight set of CSS styles for web development. It allows for responsive design and can be used alongside other CSS frameworks without requiring JavaScript. The framework includes various classes for creating containers, navigation bars, buttons, and color classes for styling elements.

Uploaded by

vips.stud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 55

What is W3.CSS?

A) A programming language
B) A web framework
C) A database management system
D) An operating system
Answer: B

What is the purpose of W3.CSS?


A) To create dynamic web pages
B) To add interactivity to websites
C) To provide a set of CSS styles for web development
D) To manage server-side scripts
Answer: C

Who developed W3.CSS?


A) Adobe
B) Google
C) Microsoft
D) W3Schools
Answer: D

Is W3.CSS a free and open-source framework?


A) Yes
B) No
Answer: A

Which of the following is true about W3.CSS?


A) It is a lightweight framework
B) It is a heavy framework
C) It is a very old framework
D) It is a deprecated framework
Answer: A

Can W3.CSS be used with other CSS frameworks?


A) Yes
B) No
Answer: A

Does W3.CSS require JavaScript to work?


A) Yes
B) No
Answer: B

Which of the following is NOT a feature of W3.CSS?


A) Responsive design
B) CSS animations
C) Server-side scripting
D) CSS grids
Answer: C

Which class is used to create a container in W3.CSS?


A) .container
B) .wrapper
C) .box
D) .content
Answer: A

Which of the following is used to create a full-width container in W3.CSS?


A) .container-full
B) .full-container
C) .container-fluid
D) .fluid-container
Answer: C

Which class is used to create a navigation bar in W3.CSS?


A) .navbar
B) .navigation
C) .nav
D) .menu
Answer: A

Which class is used to create a dropdown menu in W3.CSS?


A) .dropdown
B) .dropdown-menu
C) .drop-menu
D) .menu-dropdown
Answer: B

Which class is used to create a button in W3.CSS?


A) .btn
B) .button
C) .clickable
D) .action
Answer: A

Which class is used to create a badge in W3.CSS?


A) .tag
B) .label
C) .badge
D) .mark
Answer: C

Which class is used to create a modal in W3.CSS?


A) .modal
B) .popup
C) .dialog
D) .window
Answer: A

W3.css intro

What is W3.CSS?
A) A programming language
B) A web framework
C) A database management system
D) An operating system
Answer: B

What is the purpose of W3.CSS?


A) To create dynamic web pages
B) To add interactivity to websites
C) To provide a set of CSS styles for web development
D) To manage server-side scripts
Answer: C

Who developed W3.CSS?


A) Adobe
B) Google
C) Microsoft
D) W3Schools
Answer: D

Is W3.CSS a free and open-source framework?


A) Yes
B) No
Answer: A

Which of the following is true about W3.CSS?


A) It is a lightweight framework
B) It is a heavy framework
C) It is a very old framework
D) It is a deprecated framework
Answer: A

Can W3.CSS be used with other CSS frameworks?


A) Yes
B) No
Answer: A

Does W3.CSS require JavaScript to work?


A) Yes
B) No
Answer: B

Which of the following is NOT a feature of W3.CSS?


A) Responsive design
B) CSS animations
C) Server-side scripting
D) CSS grids
Answer: C

Which class is used to create a container in W3.CSS?


A) .container
B) .wrapper
C) .box
D) .content
Answer: A

Which of the following is used to create a full-width container in W3.CSS?


A) .container-full
B) .full-container
C) .container-fluid
D) .fluid-container
Answer: C

Which class is used to create a navigation bar in W3.CSS?


A) .navbar
B) .navigation
C) .nav
D) .menu
Answer: A

Which class is used to create a dropdown menu in W3.CSS?


A) .dropdown
B) .dropdown-menu
C) .drop-menu
D) .menu-dropdown
Answer: B

Which class is used to create a button in W3.CSS?


A) .btn
B) .button
C) .clickable
D) .action
Answer: A

Which class is used to create a badge in W3.CSS?


A) .tag
B) .label
C) .badge
D) .mark
Answer: C

Which class is used to create a modal in W3.CSS?


A) .modal
B) .popup
C) .dialog
D) .window
Answer: A

W3.CSS Colors

How many color classes are available in W3.CSS?


A) 6
B) 8
C) 10
D) 12
Answer: B

Which color class is used to set the background color of an element to red?
A) .w3-red
B) .w3-green
C) .w3-blue
D) .w3-yellow
Answer: A

Which color class is used to set the text color of an element to green?
A) .w3-text-red
B) .w3-text-green
C) .w3-text-blue
D) .w3-text-yellow
Answer: B

Which color class is used to set the border color of an element to blue?
A) .w3-border-red
B) .w3-border-green
C) .w3-border-blue
D) .w3-border-yellow
Answer: C

Which color class is used to set the hover color of an element to yellow?
A) .w3-hover-red
B) .w3-hover-green
C) .w3-hover-blue
D) .w3-hover-yellow
Answer: D

Which color class is used to set the background color of a container to light gray?
A) .w3-container-gray
B) .w3-container-light-gray
C) .w3-container-dark-gray
D) .w3-container-text-gray
Answer: B

Which color class is used to set the background color of a panel to light green?
A) .w3-panel-green
B) .w3-panel-light-green
C) .w3-panel-dark-green
D) .w3-panel-text-green
Answer: B

Which color class is used to set the text color of a button to white?
A) .w3-button-white
B) .w3-button-black
C) .w3-button-text-white
D) .w3-button-text-black
Answer: A

Which color class is used to set the background color of a button to yellow?
A) .w3-button-yellow
B) .w3-button-orange
C) .w3-button-text-yellow
D) .w3-button-text-orange
Answer: A

Which color class is used to set the background color of a navigation bar to blue?
A) .w3-navbar-blue
B) .w3-navbar-light-blue
C) .w3-navbar-dark-blue
D) .w3-navbar-text-blue
Answer: A

Which color class is used to set the background color of a dropdown menu to gray?
A) .w3-dropdown-gray
B) .w3-dropdown-light-gray
C) .w3-dropdown-dark-gray
D) .w3-dropdown-text-gray
Answer: A

Which color class is used to set the background color of a table to light blue?
A) .w3-table-blue
B) .w3-table-light-blue
C) .w3-table-dark-blue
D) .w3-table-text-blue
Answer: B

Which color class is used to set the border color of a table to light green?
A) .w3-table-green
B) .w3-table-light-green
C) .w3-table-dark-green
D) .w3-table-text-green
Answer: B

Which color class is used to set the background color of a form to yellow?
A) .w3-form-yellow
B) .w3-form-orange
C) .w3-form-light-yellow
D) .w3-form-dark-yellow
Answer: A
What is the default font color in W3.CSS?
A) #000000
B) #ffffff
C) #ff0000
D) #00ff00
Answer: A

How many color classes does W3.CSS provide?


A) 8
B) 16
C) 32
D) 64
Answer: B

Which of the following is NOT a color class in W3.CSS?


A) .w3-red
B) .w3-green
C) .w3-blue
D) .w3-yellow
Answer: D
How many named colors are available in W3.CSS?
A) 141
B) 256
C) 16777216
D) 10
Answer: A
Which of the following is a named color in W3.CSS?
A) #007FFF
B) MediumSeaGreen
C) rgb(255, 165, 0)
D) hsl(120, 100%, 50%)
Answer: B

W3.CSS Containers

Which of the following is not a type of container in W3.CSS?


A) w3-container
B) w3-panel
C) w3-card
D) w3-box
Answer: D

Which of the following classes defines a container that fills the entire width of the screen?
A) w3-container
B) w3-container-fluid
C) w3-panel
D) w3-card
Answer: B

Which of the following classes adds a border to a container in W3.CSS?


A) w3-border
B) w3-card
C) w3-panel
D) w3-container
Answer: A

Which of the following classes adds a shadow effect to a container in W3.CSS?


A) w3-shadow
B) w3-border
C) w3-panel
D) w3-container
Answer: A
Which of the following classes adds a background color to a container in W3.CSS?
A) w3-color
B) w3-background
C) w3-panel
D) w3-container
Answer: B

Which of the following classes centers the content within a container in W3.CSS?
A) w3-center
B) w3-padding
C) w3-margin
D) w3-container
Answer: A

Which of the following classes allows a container to be collapsible in W3.CSS?


A) w3-collapse
B) w3-card
C) w3-container
D) w3-panel
Answer: D

Which of the following classes allows a container to be expandable in W3.CSS?


A) w3-collapse
B) w3-card
C) w3-container
D) w3-panel
Answer: A

Which of the following classes adds a hover effect to a container in W3.CSS?


A) w3-hover
B) w3-panel-hover
C) w3-container-hover
D) w3-box-hover
Answer: A

Which of the following classes makes the content of a container scrollable in W3.CSS?
A) w3-scrollable
B) w3-card
C) w3-panel
D) w3-container
Answer: A

Which of the following classes adds a rounded border to a container in W3.CSS?


A) w3-round
B) w3-border-round
C) w3-card
D) w3-container
Answer: A

Which of the following classes adds a margin to a container in W3.CSS?


A) w3-margin
B) w3-padding
C) w3-container-margin
D) w3-panel-margin
Answer: A

Which of the following classes adds a padding to a container in W3.CSS?


A) w3-padding
B) w3-margin
C) w3-container-padding
D) w3-panel-padding
Answer: A

Which of the following classes allows a container to be horizontally centered in W3.CSS?


A) w3-display-middle
B) w3-center
C) w3-horizontal-center
D) w3-container-center
Answer: B

Which of the following classes allows a container to be vertically centered in W3.CSS?


A) w3-display-middle
B) w3-center
C) w3-vertical-center
D) w3-container-center
Answer: C

Which of the following classes allows a container to have a fixed height in W3.CSS?
A) w3-height
B) w3-fixed-height
C) w3-container-height
D) w3-panel-height
Answer: B
Which of the following is the class used to create a container in W3.CSS?
A) .container
B) .wrap
C) .box
D) .content
Answer: A

Which of the following classes can be used to create a fixed-width container in W3.CSS?
A) .container
B) .container-small
C) .container-medium
D) .container-large
Answer: D

Which of the following classes can be used to create a full-width container in W3.CSS?
A) .container-full
B) .container-fluid
C) .container-100
D) .container-wide
Answer: B

Which of the following classes can be used to center the content of a container horizontally in W3.CSS?
A) .container-center
B) .container-hcenter
C) .container-middle
D) .container-align-center
Answer: B

Which of the following classes can be used to center the content of a container vertically in W3.CSS?
A) .container-middle
B) .container-vcenter
C) .container-center
D) .container-align-middle
Answer: A

Which of the following classes can be used to create a container with a specific background color in
W3.CSS?
A) .bg-color
B) .container-bg
C) .container-color
D) .bg-container
Answer: B

Which of the following classes can be used to create a container with rounded corners in W3.CSS?
A) .container-rounded
B) .container-curved
C) .container-corner
D) .container-radius
Answer: A

Which of the following classes can be used to create a container with a shadow in W3.CSS?
A) .container-shadow
B) .container-depth
C) .container-haze
D) .container-glow
Answer: A

Which of the following classes can be used to create a container with a border in W3.CSS?
A) .container-bordered
B) .container-border
C) .container-outline
D) .container-boxed
Answer: A

Which of the following classes can be used to create a container with a specific width in W3.CSS?
A) .container-fixed
B) .container-width
C) .container-size
D) .container-box
Answer: B

Which of the following classes can be used to create a container with a specific height in W3.CSS?
A) .container-height
B) .container-tall
C) .container-size
D) .container-box
Answer: A

Which of the following classes can be used to create a container with a minimum height in W3.CSS?
A) .container-min-height
B) .container-short
C) .container-limited
D) .container-minimize
Answer: A

Which of the following classes can be used to create a container with a maximum height in W3.CSS?
A) .container-max-height
B) .container-tall
C) .container-limited
D) .container-height-max
Answer: A

Which of the following classes can be used to create a container with padding in W3.CSS?
A) .container-padding
B) .container-pad
C) .container-space
D) .container-gap
Answer: B
Which of the following classes can be used to create a container with margin in W3.CSS?
A) .container-margin
B) .container-space
C) .container-pad
D) .container-gap
Answer: A

W3.css panel

Which of the following classes can be used to create a panel in W3.CSS?


A) .panel
B) .container
C) .box
D) .content
Answer: A

Which of the following classes can be used to add a header to a panel in W3.CSS?
A) .panel-header
B) .panel-heading
C) .panel-title
D) .panel-top
Answer: B

Which of the following classes can be used to add a footer to a panel in W3.CSS?
A) .panel-footer
B) .panel-bottom
C) .panel-end
D) .panel-close
Answer: A

Which of the following classes can be used to create a border around a panel in W3.CSS?
A) .panel-border
B) .panel-box
C) .panel-outline
D) .panel-frame
Answer: C
Which of the following classes can be used to create a panel with rounded corners in W3.CSS?
A) .panel-rounded
B) .panel-curved
C) .panel-corner
D) .panel-radius
Answer: A

Which of the following classes can be used to create a panel with a shadow in W3.CSS?
A) .panel-shadow
B) .panel-depth
C) .panel-haze
D) .panel-glow
Answer: A

Which of the following classes can be used to create a collapsible panel in W3.CSS?
A) .panel-collapse
B) .panel-collapsible
C) .panel-toggle
D) .panel-expand
Answer: B

Which of the following classes can be used to add a close button to a panel in W3.CSS?
A) .panel-close
B) .panel-dismiss
C) .panel-remove
D) .panel-exit
Answer: A

Which of the following classes can be used to add a title to a panel in W3.CSS?
A) .panel-title
B) .panel-heading
C) .panel-header
D) .panel-top
Answer: A
Which of the following classes can be used to create a panel with a specific background color in
W3.CSS?
A) .bg-color
B) .panel-bg
C) .panel-color
D) .bg-panel
Answer: B

Which of the following classes can be used to create a panel with a specific width in W3.CSS?
A) .panel-fixed
B) .panel-width
C) .panel-size
D) .panel-box
Answer: B

Which of the following classes can be used to create a panel with a specific height in W3.CSS?
A) .panel-height
B) .panel-tall
C) .panel-size
D) .panel-box
Answer: A

Which of the following classes can be used to create a panel with padding in W3.CSS?
A) .panel-padding
B) .panel-pad
C) .panel-space
D) .panel-gap
Answer: B

Which of the following classes can be used to create a panel with margin in W3.CSS?
A) .panel-margin
B) .panel-space
C) .panel-pad
D) .panel-gap
Answer: A

Which of the following classes can be used to create a panel with a horizontal scroll bar in W3.CSS?
A) .panel-scroll
B) .panel-horizontal
C) .panel-scrollbar
D) .panel-scroll-x
Answer: D
Which of the following classes is used to create a panel header in W3.CSS?
A) .panel-heading
B) .panel-header
C) .panel-title
D) .panel-top
Answer: A

Which of the following classes can be used to create a panel with a specific background color in
W3.CSS?
A) .bg-panel
B) .panel-color
C) .panel-bg
D) .panel-background
Answer: C

Which of the following classes is used to create a panel with a shadow in W3.CSS?
A) .panel-shadow
B) .panel-depth
C) .panel-haze
D) .panel-glow
Answer: A

Which of the following classes can be used to create a panel with rounded corners in W3.CSS?
A) .panel-rounded
B) .panel-curved
C) .panel-corner
D) .panel-radius
Answer: A

Which of the following classes can be used to create a panel with a border in W3.CSS?
A) .panel-bordered
B) .panel-border
C) .panel-outline
D) .panel-boxed
Answer: A

Which of the following classes can be used to create a panel with a specific width in W3.CSS?
A) .panel-fixed
B) .panel-width
C) .panel-size
D) .panel-box
Answer: B

Which of the following classes can be used to create a panel with a specific height in W3.CSS?
A) .panel-height
B) .panel-tall
C) .panel-size
D) .panel-box
Answer: A

Which of the following classes can be used to create a panel with a minimum height in W3.CSS?
A) .panel-min-height
B) .panel-short
C) .panel-limited
D) .panel-minimize
Answer: A

Which of the following classes can be used to create a panel with a maximum height in W3.CSS?
A) .panel-max-height
B) .panel-tall
C) .panel-limited
D) .panel-height-max
Answer: A

Which of the following classes can be used to create a panel with padding in W3.CSS?
A) .panel-padding
B) .panel-pad
C) .panel-space
D) .panel-gap
Answer: B

Which of the following classes can be used to create a panel with margin in W3.CSS?
A) .panel-margin
B) .panel-space
C) .panel-pad
D) .panel-gap
Answer: A

Which of the following classes is used to create a panel footer in W3.CSS?


A) .panel-footer
B) .panel-bottom
C) .panel-end
D) .panel-bottom-end
Answer: A

Which of the following classes can be used to create a panel with a specific font size in W3.CSS?
A) .panel-font-size
B) .panel-size
C) .panel-text
D) .panel-text-size
Answer: A

Which of the following classes can be used to create a panel with a specific text color in W3.CSS?
A) .panel-color
B) .panel-text-color
C) .panel-text
D) .panel-font-color
Answer: B

W3.CSS Borders

Which of the following properties is used to set the border style in W3.CSS?
A) border-size
B) border-style
C) border-width
D) border-color
Answer: B

Which of the following values can be used for the border-style property in W3.CSS to create a dotted
border?
A) dashed
B) solid
C) double
D) dotted
Answer: D

Which of the following values can be used for the border-style property in W3.CSS to create a dashed
border?
A) dashed
B) solid
C) double
D) dotted
Answer: A

Which of the following values can be used for the border-style property in W3.CSS to create a double
border?
A) dashed
B) solid
C) double
D) dotted
Answer: C

Which of the following properties is used to set the border color in W3.CSS?
A) border-size
B) border-style
C) border-color
D) border-width
Answer: C

Which of the following values can be used for the border-color property in W3.CSS to create a red
border?
A) red
B) #ff0000
C) rgb(255,0,0)
D) All of the above
Answer: D

Which of the following properties is used to set the border width in W3.CSS?
A) border-size
B) border-style
C) border-color
D) border-width
Answer: D

Which of the following values can be used for the border-width property in W3.CSS to create a thin
border?
A) thin
B) medium
C) thick
D) All of the above
Answer: A

Which of the following values can be used for the border-width property in W3.CSS to create a
medium border?
A) thin
B) medium
C) thick
D) All of the above
Answer: B

Which of the following values can be used for the border-width property in W3.CSS to create a thick
border?
A) thin
B) medium
C) thick
D) All of the above
Answer: C

Which of the following properties is used to set the border radius in W3.CSS?
A) border-radius
B) border-corner
C) border-curve
D) border-angle
Answer: A

Which of the following values can be used for the border-radius property in W3.CSS to create a
rounded border?
A) rounded
B) curve
C) circle
D) All of the above
Answer: A

Which of the following values can be used for the border-radius property in W3.CSS to create a
circular border?
A) rounded
B) curve
C) circle
D) All of the above
Answer: C

Which of the following values can be used for the border-radius property in W3.CSS to create a curved
border?
A) rounded
B) curve
C) circle
D) All of the above
Answer: B

Which of the following properties is used to set the border image in W3.CSS?
A) border-image
B) border-style
C) border-color
D) border-width
Answer: A
Which of the following values can be used for the border-image property in W3.CSS to set the source
of the border image?
A) url(image.jpg)
B) #ff0000
C) dashed
D) None of the above
Answer: A
Which of the following classes is used to add a border to an element in W3.CSS?
A) .border
B) .bordered
C) .border-style
D) .bordered-element
Answer: A

Which of the following classes is used to add a border to all sides of an element in W3.CSS?
A) .border-all
B) .border-each
C) .border-sides
D) .border-every
Answer: A

Which of the following classes is used to add a border to the top of an element in W3.CSS?
A) .border-top
B) .border-up
C) .border-head
D) .border-high
Answer: A

Which of the following classes is used to add a border to the right of an element in W3.CSS?
A) .border-right
B) .border-r
C) .border-east
D) .border-side-r
Answer: A

Which of the following classes is used to add a border to the bottom of an element in W3.CSS?
A) .border-bottom
B) .border-down
C) .border-foot
D) .border-low
Answer: A

Which of the following classes is used to add a border to the left of an element in W3.CSS?
A) .border-left
B) .border-l
C) .border-west
D) .border-side-l
Answer: A

Which of the following classes is used to remove the border from an element in W3.CSS?
A) .border-none
B) .border-remove
C) .borderless
D) .border-off
Answer: A

Which of the following classes is used to add a specific width to an element's border in W3.CSS?
A) .border-width
B) .border-size
C) .border-thick
D) .border-girth
Answer: A

Which of the following classes is used to add a specific color to an element's border in W3.CSS?
A) .border-color
B) .border-paint
C) .border-shade
D) .border-tint
Answer: A

Which of the following classes is used to add a specific style to an element's border in W3.CSS?
A) .border-style
B) .border-pattern
C) .border-type
D) .border-design
Answer: A

Which of the following classes is used to add a rounded border to an element in W3.CSS?
A) .border-rounded
B) .border-curved
C) .border-radius
D) .border-shape
Answer: C

Which of the following classes is used to add a dotted border to an element in W3.CSS?
A) .border-dotted
B) .border-dot
C) .border-points
D) .border-splotches
Answer: A

Which of the following classes is used to add a dashed border to an element in W3.CSS?
A) .border-dashed
B) .border-dash
C) .border-lines
D) .border-stripes
Answer: A

Which of the following classes is used to add a double border to an element in W3.CSS?
A) .border-double
B) .border-two
C) .border-twin
D) .border-both
Answer: A

W3.css font

Which of the following classes is used to change the font size in W3.CSS?
A) .font-size
B) .font-weight
C) .font-style
D) .font-scale
Answer: A

Which of the following classes is used to change the font family in W3.CSS?
A) .font-family
B) .font-set
C) .font-type
D) .font-choice
Answer: A

Which of the following classes is used to make text bold in W3.CSS?


A) .bold
B) .font-bold
C) .text-bold
D) .bolder
Answer: D

Which of the following classes is used to make text italic in W3.CSS?


A) .italic
B) .font-italic
C) .text-italic
D) .cursive
Answer: B

Which of the following classes is used to make text underlined in W3.CSS?


A) .underline
B) .font-underline
C) .text-underline
D) .decorated
Answer: A

Which of the following classes is used to strike through text in W3.CSS?


A) .strike
B) .font-strike
C) .text-strike
D) .line-through
Answer: D

Which of the following classes is used to change the color of text in W3.CSS?
A) .text-color
B) .color
C) .font-color
D) .text-style
Answer: B

Which of the following classes is used to change the background color of text in W3.CSS?
A) .text-bgcolor
B) .bgcolor
C) .font-bgcolor
D) .text-background
Answer: A

Which of the following classes is used to align text to the left in W3.CSS?
A) .text-left
B) .left-align
C) .align-left
D) .text-align-left
Answer: A

Which of the following classes is used to align text to the center in W3.CSS?
A) .text-center
B) .center-align
C) .align-center
D) .text-align-center
Answer: A

Which of the following classes is used to align text to the right in W3.CSS?
A) .text-right
B) .right-align
C) .align-right
D) .text-align-right
Answer: A

Which of the following classes is used to justify text in W3.CSS?


A) .text-justify
B) .justify-align
C) .align-justify
D) .text-align-justify
Answer: A

Which of the following classes is used to add letter spacing to text in W3.CSS?
A) .letter-spacing
B) .text-spacing
C) .font-spacing
D) .spacing-letter
Answer: A

Which of the following classes is used to add word spacing to text in W3.CSS?
A) .word-spacing
B) .text-word-spacing
C) .font-word-spacing
D) .spacing-word
Answer: A

Which of the following classes is used to add line height to text in W3.CSS?
A) .line-height
B) .text-line-height
C) .font-line-height
D) .height-line
Answer: A
Which of the following classes is used to set the font size in W3.CSS?
A) .font-size
B) .font-style
C) .font-height
D) .font-large
Answer: A
Which of the following classes is used to set the font family in W3.CSS?
A) .font-family
B) .font-type
C) .font-kind
D) .font-face
Answer: A

Which of the following classes is used to set the font color in W3.CSS?
A) .font-color
B) .text-color
C) .color-text
D) .text-style
Answer: B

Which of the following classes is used to make text bold in W3.CSS?


A) .bold
B) .font-bold
C) .text-bold
D) .strong
Answer: D

Which of the following classes is used to make text italic in W3.CSS?


A) .italic
B) .font-italic
C) .text-italic
D) .emphasis
Answer: B

Which of the following classes is used to make text underlined in W3.CSS?


A) .underline
B) .font-underline
C) .text-underline
D) .highlight
Answer: A

Which of the following classes is used to make text strikethrough in W3.CSS?


A) .strike
B) .font-strike
C) .text-strike
D) .line-through
Answer: D

Which of the following classes is used to set the text alignment in W3.CSS?
A) .text-align
B) .align-text
C) .text-position
D) .position-text
Answer: A

Which of the following classes is used to set the text indentation in W3.CSS?
A) .text-indent
B) .indent-text
C) .text-offset
D) .offset-text
Answer: A

Which of the following classes is used to set the text decoration in W3.CSS?
A) .text-decoration
B) .deco-text
C) .text-ornament
D) .ornament-text
Answer: A

Which of the following classes is used to set the letter spacing in W3.CSS?
A) .letter-spacing
B) .spacing-letter
C) .letter-position
D) .position-letter
Answer: A

Which of the following classes is used to set the word spacing in W3.CSS?
A) .word-spacing
B) .spacing-word
C) .word-position
D) .position-word
Answer: A

Which of the following classes is used to set the text transform in W3.CSS?
A) .text-transform
B) .transform-text
C) .text-conversion
D) .conversion-text
Answer: A

Which of the following classes is used to set the text shadow in W3.CSS?
A) .text-shadow
B) .shadow-text
C) .text-outline
D) .outline-text
Answer: A

Which of the following classes is used to set the line height in W3.CSS?
A) .line-height
B) .height-line
C) .line-position
D) .position-line
Answer: A

Which of the following classes is used to set the text overflow in W3.CSS?
A) .text-overflow
B) .overflow-text
C) .text-wrap
D) .wrap-text
Answer: A

W3.CSS Text

Which of the following classes is used to set the text color in W3.CSS?
A) .text-color
B) .font-color
C) .color-text
D) .text-style
Answer: B

Which of the following classes is used to set the background color of text in W3.CSS?
A) .text-background
B) .background-text
C) .text-bgcolor
D) .bgcolor-text
Answer: A

Which of the following classes is used to set the size of the first letter in a paragraph in W3.CSS?
A) .first-letter
B) .letter-first
C) .initial-letter
D) .letter-initial
Answer: A

Which of the following classes is used to set the text direction in W3.CSS?
A) .text-direction
B) .direction-text
C) .text-flow
D) .flow-text
Answer: A

Which of the following classes is used to set the text alignment in W3.CSS?
A) .text-align
B) .align-text
C) .text-position
D) .position-text
Answer: A

Which of the following classes is used to set the text indentation in W3.CSS?
A) .text-indent
B) .indent-text
C) .text-offset
D) .offset-text
Answer: A

Which of the following classes is used to set the letter spacing in W3.CSS?
A) .letter-spacing
B) .spacing-letter
C) .letter-position
D) .position-letter
Answer: A

Which of the following classes is used to set the word spacing in W3.CSS?
A) .word-spacing
B) .spacing-word
C) .word-position
D) .position-word
Answer: A

Which of the following classes is used to set the text decoration in W3.CSS?
A) .text-decoration
B) .deco-text
C) .text-ornament
D) .ornament-text
Answer: A

Which of the following classes is used to set the text transform in W3.CSS?
A) .text-transform
B) .transform-text
C) .text-conversion
D) .conversion-text
Answer: A

Which of the following classes is used to set the text shadow in W3.CSS?
A) .text-shadow
B) .shadow-text
C) .text-outline
D) .outline-text
Answer: A

Which of the following classes is used to set the line height in W3.CSS?
A) .line-height
B) .height-line
C) .line-position
D) .position-line
Answer: A

Which of the following classes is used to set the text overflow in W3.CSS?
A) .text-overflow
B) .overflow-text
C) .text-wrap
D) .wrap-text
Answer: A

Which of the following classes is used to set the text wrapping in W3.CSS?
A) .text-wrap
B) .wrap-text
C) .text-overflow
D) .overflow-text
Answer: A

Which of the following classes is used to set the text orientation in W3.CSS?
A) .text-orientation
B) .orientation-text
C) .text-writing-mode
D) .writing-mode-text
Answer: A
Which of the following classes is used to set the text color in W3.CSS?
A) .text-color
B) .color-text
C) .font-color
D) .text-style
Answer: B
Which of the following classes is used to set the background color of text in W3.CSS?
A) .text-bg-color
B) .background-text
C) .bg-color-text
D) .text-background-color
Answer: D

Which of the following classes is used to set the font size in W3.CSS?
A) .font-size
B) .text-size
C) .size-font
D) .text-style
Answer: A

Which of the following classes is used to set the font family in W3.CSS?
A) .font-family
B) .text-family
C) .family-font
D) .text-style
Answer: A

Which of the following classes is used to make text bold in W3.CSS?


A) .bold
B) .text-bold
C) .font-bold
D) .strong
Answer: D

Which of the following classes is used to make text italic in W3.CSS?


A) .italic
B) .text-italic
C) .font-italic
D) .emphasis
Answer: C
Which of the following classes is used to make text underlined in W3.CSS?
A) .underline
B) .text-underline
C) .font-underline
D) .highlight
Answer: A

Which of the following classes is used to make text strikethrough in W3.CSS?


A) .strike
B) .text-strike
C) .font-strike
D) .line-through
Answer: D

Which of the following classes is used to set the text alignment in W3.CSS?
A) .text-align
B) .align-text
C) .text-position
D) .position-text
Answer: A

Which of the following classes is used to set the text indentation in W3.CSS?
A) .text-indent
B) .indent-text
C) .text-offset
D) .offset-text
Answer: A

Which of the following classes is used to set the text decoration in W3.CSS?
A) .text-decoration
B) .deco-text
C) .text-ornament
D) .ornament-text
Answer: A

Which of the following classes is used to set the letter spacing in W3.CSS?
A) .letter-spacing
B) .spacing-letter
C) .letter-position
D) .position-letter
Answer: A

Which of the following classes is used to set the word spacing in W3.CSS?
A) .word-spacing
B) .spacing-word
C) .word-position
D) .position-word
Answer: A

Which of the following classes is used to set the text transform in W3.CSS?
A) .text-transform
B) .transform-text
C) .text-conversion
D) .conversion-text
Answer: A

Which of the following classes is used to set the text shadow in W3.CSS?
A) .text-shadow
B) .shadow-text
C) .text-outline
D) .outline-text
Answer: A

Which of the following classes is used to set the line height in W3.CSS?
A) .line-height
B) .height-line
C) .line-position
D) .position-line
Answer: A

W3.CSS Tables

What is the default border-collapse property value in W3.CSS?


a) collapse
b) separate
c) inherit
d) initial
Answer: a) collapse

Which of the following W3.CSS classes is used to add zebra-striping to a table?


a) w3-hoverable
b) w3-responsive
c) w3-striped
d) w3-bordered
Answer: c) w3-striped

Which of the following is a correct way to apply a border to a table in W3.CSS?


a) Add a border attribute to the table tag
b) Apply a border property to the table element in CSS
c) Use the w3-border class
d) None of the above
Answer: c) Use the w3-border class

Which W3.CSS class is used to center a table on a page?


a) w3-center
b) w3-margin
c) w3-padding
d) w3-display-middle
Answer: a) w3-center

Which W3.CSS class is used to add hover effects to table rows?


a) w3-hoverable
b) w3-striped
c) w3-border
d) w3-padding
Answer: a) w3-hoverable

Which of the following is a correct way to add a caption to a table in W3.CSS?


a) Use the caption tag
b) Use the w3-caption class
c) Use the table-caption property in CSS
d) All of the above
Answer: b) Use the w3-caption class

Which W3.CSS class is used to add padding to a table?


a) w3-padding
b) w3-margin
c) w3-center
d) w3-striped
Answer: a) w3-padding

Which of the following is a correct way to set the width of a table in W3.CSS?
a) Use the width attribute in the table tag
b) Use the width property in CSS
c) Use the w3-table class
d) None of the above
Answer: b) Use the width property in CSS

Which W3.CSS class is used to make a table responsive?


a) w3-hoverable
b) w3-striped
c) w3-responsive
d) w3-padding
Answer: c) w3-responsive

Which of the following is a correct way to add a background color to a table in W3.CSS?
a) Use the background-color property in CSS
b) Use the bgcolor attribute in the table tag
c) Use the w3-bg class
d) All of the above
Answer: a) Use the background-color property in CSS

Which W3.CSS class is used to add borders to table cells?


a) w3-border
b) w3-padding
c) w3-margin
d) w3-cell-border
Answer: a) w3-border

Which of the following is a correct way to set the text alignment of a table cell in W3.CSS?
a) Use the align attribute in the td tag
b) Use the text-align property in CSS
c) Use the w3-center class
d) All of the above
Answer: b) Use the text-align property in CSS

Which W3.CSS class is used to add a header to a table?


a) w3-header
b) w3-padding
c) w3-margin
d) None of the above
Answer: d) None of the above

W3.CSS List

Which of the following is a valid w3.css class for creating a button?


A. w3-cell
B. w3-col
C. w3-button
D. w3-container
Answer: C

Which of the following is a valid w3.css class for creating a navigation bar?
A. w3-card
B. w3-dropdown
C. w3-bar
D. w3-section
Answer: C

Which of the following is a valid w3.css class for creating a responsive image?
A. w3-container
B. w3-image
C. w3-row
D. w3-panel
Answer: B

Which of the following is a valid w3.css class for creating a table?


A. w3-container
B. w3-table
C. w3-row
D. w3-section
Answer: B

Which of the following is a valid w3.css class for creating a progress bar?
A. w3-panel
B. w3-progress
C. w3-dropdown
D. w3-cell
Answer: B

Which of the following is a valid w3.css class for creating a form?


A. w3-card
B. w3-form
C. w3-section
D. w3-panel
Answer: B

Which of the following is a valid w3.css class for creating a modal dialog box?
A. w3-modal
B. w3-dropdown
C. w3-section
D. w3-container
Answer: A

Which of the following is a valid w3.css class for creating a tooltip?


A. w3-dropdown
B. w3-tooltip
C. w3-row
D. w3-section
Answer: B

Which of the following is a valid w3.css class for creating a list?


A. w3-list
B. w3-cell
C. w3-row
D. w3-container
Answer: A

Which of the following is a valid w3.css class for creating a carousel?


A. w3-carousel
B. w3-dropdown
C. w3-section
D. w3-panel
Answer: A
Which of the following are types of lists supported by w3.css?
A. Unordered lists
B. Ordered lists
C. Definition lists
D. All of the above
Answer: D

What class should be used to create an unordered list with bullets?


A. w3-ul
B. w3-ol
C. w3-list
D. w3-bullet
Answer: A

What class should be used to create an ordered list with numbers?


A. w3-ul
B. w3-ol
C. w3-list
D. w3-bullet
Answer: B
Which of the following classes can be used to style a list item as a link?
A. w3-hover-text-blue
B. w3-text-blue
C. w3-link
D. All of the above
Answer: D

Which of the following classes can be used to align a list horizontally?


A. w3-horizontal
B. w3-align-left
C. w3-center
D. w3-clear
Answer: A

What class should be used to create a nested list?


A. w3-nested-list
B. w3-ul-nested
C. w3-list-nested
D. w3-ul w3-ul-parent
Answer: D

Which of the following classes can be used to create a custom bullet for a list item?
A. w3-bullet
B. w3-circle
C. w3-square
D. All of the above
Answer: D

Which class should be used to create a definition list?


A. w3-ul
B. w3-ol
C. w3-dl
D. w3-list
Answer: C
Which class should be used to create a horizontal definition list?
A. w3-dl-horizontal
B. w3-dl-list
C. w3-dl-inline
D. w3-dl-grid
Answer: A

What class should be used to add a description to a definition list item?


A. w3-dt
B. w3-dd
C. w3-dl-description
D. w3-dl-definition
Answer: B
Which of the following are valid w3.css color classes?
A. w3-blue
B. w3-orange
C. w3-gray
D. All of the above
Answer: D

Which of the following w3.css classes can be used to create a responsive navigation menu?
A. w3-bar
B. w3-dropdown
C. w3-sidebar
D. All of the above
Answer: D

What is the syntax for creating a two-column layout using w3.css?


A. Use the class "w3-row" and divide it into two "w3-col" classes with different widths.
B. Use the class "w3-container" and divide it into two "w3-cell" classes with different widths.
C. Use the class "w3-grid" and divide it into two "w3-cell" classes with different widths.
D. Use the class "w3-row" and divide it into two "w3-cell" classes with different widths.
Answer: A

Which of the following w3.css classes can be used to create a responsive image gallery?
A. w3-display-container
B. w3-image-container
C. w3-gallery
D. w3-container
Answer: C

How can you center a div horizontally using w3.css?


A. Use the class "w3-center"
B. Use the class "w3-margin-auto"
C. Use the class "w3-row"
D. Use the class "w3-container"
Answer: B

Which of the following w3.css classes can be used to create a tooltip?


A. w3-tooltip
B. w3-popup
C. w3-modal
D. w3-dropdown
Answer: A

Which of the following w3.css classes can be used to create a responsive table?
A. w3-table
B. w3-container
C. w3-display-table
D. w3-grid
Answer: A

How can you create a button using w3.css?


A. Use the class "w3-button"
B. Use the class "w3-link"
C. Use the class "w3-text"
D. Use the class "w3-container"
Answer: A

Which of the following w3.css classes can be used to create a progress bar?
A. w3-progress
B. w3-bar
C. w3-container
D. w3-meter
Answer: A

How can you create a modal using w3.css?


A. Use the class "w3-modal"
B. Use the class "w3-dropdown"
C. Use the class "w3-popup"
D. Use the class "w3-tooltip"
Answer: A

W3.css image

Which of the following w3.css classes can be used to create a responsive image?
A. w3-image
B. w3-img
C. w3-picture
D. w3-graphics
Answer: A

How can you make an image round using w3.css?


A. Use the class "w3-round"
B. Use the class "w3-circle"
C. Use the class "w3-image-round"
D. Use the class "w3-image-circle"
Answer: B

Which of the following w3.css classes can be used to create a thumbnail image?
A. w3-thumbnail
B. w3-image-thumbnail
C. w3-img-thumbnail
D. w3-picture-thumbnail
Answer: A

How can you make an image grayscale using w3.css?


A. Use the class "w3-grayscale"
B. Use the class "w3-black-and-white"
C. Use the class "w3-sepia"
D. Use the class "w3-monochrome"
Answer: A

Which of the following w3.css classes can be used to create a slideshow of images?
A. w3-slideshow
B. w3-gallery
C. w3-carousel
D. w3-image-slider
Answer: C
What is the syntax for adding an image to an HTML document using w3.css?
A. <img src="image.jpg" class="w3-image">
B. <img class="w3-image" src="image.jpg">
C. <div class="w3-image"><img src="image.jpg"></div>
D. <img src="image.jpg" w3-class="image">
Answer: B

Which of the following w3.css classes can be used to create a responsive image?
A. w3-image
B. w3-picture
C. w3-container
D. w3-img
Answer: A

How can you make an image in w3.css take up 50% of its container's width?
A. Use the class "w3-half-width"
B. Use the class "w3-col-6"
C. Use the CSS property "width: 50%;"
D. Use the class "w3-image-half"
Answer: A

Which of the following w3.css classes can be used to add a border to an image?
A. w3-border
B. w3-image-border
C. w3-img-border
D. w3-picture-border
Answer: A

How can you make an image grayscale using w3.css?


A. Use the class "w3-grayscale"
B. Use the class "w3-image-grayscale"
C. Use the CSS property "filter: grayscale(100%);"
D. Use the class "w3-image-filter-grayscale"
Answer: A

Which of the following w3.css classes can be used to create a circular image?
A. w3-circle
B. w3-image-circle
C. w3-img-circle
D. w3-round-image
Answer: A

How can you create a responsive background image using w3.css?


A. Use the class "w3-background-image"
B. Use the class "w3-image-background"
C. Use the CSS property "background-image: url('image.jpg'); background-size: cover;"
D. Use the class "w3-bg-image"
Answer: C

Which of the following w3.css classes can be used to add a shadow to an image?
A. w3-shadow
B. w3-image-shadow
C. w3-img-shadow
D. w3-picture-shadow
Answer: A

How can you make an image spin using w3.css?


A. Use the class "w3-spin"
B. Use the class "w3-image-spin"
C. Use the CSS property "animation: spin 2s linear infinite;"
D. Use the class "w3-animate-spin"
Answer: D
Which of the following w3.css classes can be used to add a zoom effect to an image?
A. w3-zoom
B. w3-image-zoom
C. w3-img-zoom
D. w3-picture-zoom
Answer: A

How can you create a slider gallery using w3.css?


A. Use the class "w3-slider"
B. Use the class "w3-gallery"
C. Use the class "w3-image-slider"
D. Use the class "w3-carousel"
Answer: A

W3.css grid

What is the syntax for creating a grid container in w3.css?


A. <div class="w3-grid-container">
B. <div class="w3-container-grid">
C. <div class="w3-container w3-grid">
D. <div class="w3-grid">
Answer: D

Which of the following w3.css classes can be used to set the number of columns in a grid container?
A. w3-cols
B. w3-grid-cols
C. w3-container-cols
D. w3-grid-columns
Answer: A

How can you set the gap between grid items in w3.css?
A. Use the class "w3-gap"
B. Use the class "w3-item-gap"
C. Use the CSS property "grid-gap: 20px;"
D. Use the class "w3-grid-gap"
Answer: C
Which of the following w3.css classes can be used to create a grid item that spans multiple rows?
A. w3-row-span
B. w3-grid-row-span
C. w3-item-row-span
D. w3-grid-item-row-span
Answer: B

How can you make a grid item take up all available space in its column?
A. Use the class "w3-col"
B. Use the class "w3-grid-col"
C. Use the class "w3-auto-col"
D. Use the class "w3-col-auto"
Answer: A

Which of the following w3.css classes can be used to create a grid item that spans multiple columns?
A. w3-col-span
B. w3-grid-col-span
C. w3-item-col-span
D. w3-grid-item-col-span
Answer: A

How can you create a grid layout with three columns using w3.css?
A. Use the class "w3-cols-3"
B. Use the class "w3-grid-cols-3"
C. Use the CSS property "grid-template-columns: 1fr 1fr 1fr;"
D. Use the class "w3-grid-3cols"
Answer: C

Which of the following w3.css classes can be used to set the alignment of grid items within their
container?
A. w3-align-items
B. w3-grid-align-items
C. w3-item-align-items
D. w3-grid-item-align-items
Answer: A
How can you create a grid layout with a fixed column width of 200px using w3.css?
A. Use the class "w3-cols-200"
B. Use the class "w3-grid-cols-200"
C. Use the CSS property "grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));"
D. Use the class "w3-grid-200cols"
Answer: C

Which of the following w3.css classes can be used to set the justification of grid items within their
container?
A. w3-justify-items
B. w3-grid-justify-items
C. w3-item-justify-items
D. w3-grid-item-justify-items
Answer: A
What is the W3.CSS class used to create a grid container?
A. w3-container
B. w3-grid
C. w3-row
D. w3-col
Answer: B

What is the default value for the grid-template-columns property in W3.CSS?


A. 1fr
B. auto
C. 100%
D. 12
Answer: B

How do you create a grid with 4 columns in W3.CSS?


A. Use the w3-col-4 class on each grid item
B. Use the grid-template-columns property with four values separated by spaces
C. Use the w3-grid-4 class on the container
D. Use the w3-row-4 class on each row
Answer: B

How do you specify the number of rows in a grid using W3.CSS?


A. Use the grid-template-rows property
B. Use the w3-rows class on the container
C. Use the w3-col-row class on each column
D. Use the w3-grid-rows class on the container
Answer: A

How do you specify the gap between grid items in W3.CSS?


A. Use the grid-gap property
B. Use the w3-gap class on each item
C. Use the w3-grid-gap class on the container
D. Use the w3-row-gap class on each row
Answer: A

How do you center a grid horizontally in W3.CSS?


A. Use the w3-center class on the container
B. Use the justify-content property with the value center on the container
C. Use the w3-horizontal-center class on each item
D. Use the align-items property with the value center on the container
Answer: B

How do you center a grid vertically in W3.CSS?


A. Use the w3-center class on the container
B. Use the align-items property with the value center on the container
C. Use the w3-vertical-center class on each item
D. Use the justify-content property with the value center on the container
Answer: B

How do you make a grid item span multiple columns in W3.CSS?


A. Use the w3-col-span class on the item
B. Use the grid-column property with the span keyword
C. Use the w3-row-span class on the item
D. Use the grid-row property with the span keyword
Answer: B

How do you make a grid item span multiple rows in W3.CSS?


A. Use the w3-row-span class on the item
B. Use the grid-row property with the span keyword
C. Use the w3-col-span class on the item
D. Use the grid-column property with the span keyword
Answer: B

How do you align a grid item to the right in W3.CSS?


A. Use the w3-right class on the item
B. Use the justify-self property with the value end on the item
C. Use the w3-align-right class on the item
D. Use the align-self property with the value end on the item
Answer: B

How do you align a grid item to the bottom in W3.CSS?


A. Use the w3-bottom class on the item
B. Use the align-self property with the value end on the item
C. Use the w3-align-bottom class on the item
D. Use the justify-self property with the value end on the item
Answer: B

You might also like