Which three are valid HTML5 input types for forms?
a) email
b) datetime
c) text
d) number
e) color
Answers: a) email, d) number, e) color
Which three attributes can be used for form validation in HTML5?
a) required
b) pattern
c) min / max
d) validate
e) mustfill
Answers: a) required, b) pattern, c) min / max
Which three tags are used exclusively within the <head> section?
a) <title>
b) <meta>
c) <style>
d) <script>
e) <link>
Answers: a) <title>, b) <meta>, e) <link>
Which three are valid values for the name attribute of the <meta> tag?
a) author
b) description
c) content
d) keywords
e) charset
Answers: a) author, b) description, d) keywords
Which three CSS properties are used to style the border of an element?
a) border-width
b) border-style
c) border-color
d) border-line
e) border-design
Answers: a) border-width, b) border-style, c) border-color
Which three are valid values for the border-style property?
a) solid
b) dotted
c) inset
d) shadow
e) line
Answers: a) solid, b) dotted, c) inset
Which three properties are part of properly declaring a font in CSS?
a) font-family
b) font-size
c) font-file
d) font-weight
e) font-src
Answers: a) font-family, b) font-size, d) font-weight
Which three values can the position property have?
a) static
b) relative
c) absolute
d) floating
e) fixed
Answers: a) static, b) relative, c) absolute
Which three properties can be used to control the visibility of an element?
a) display
b) visibility
c) opacity
d) see-through
e) hidden
Answers: a) display, b) visibility, c) opacity
Which three are valid list types in HTML?
a) Ordered List (<ol>)
b) Unordered List (<ul>)
c) Description List (<dl>)
d) Definition List (<def>)
e) Numbered List (<nl>)
Answers: a) Ordered List (<ol>), b) Unordered List (<ul>), c) Description List (<dl>)
Which three attributes can be used with the <ol> tag?
a) reversed
b) start
c) type
d) bullet
e) list-style
Answers: a) reversed, b) start, c) type
Which three are common audio file formats supported by the <audio> tag?
a) MP3
b) WAV
c) OGG
d) AAC
e) FLAC
Answers: a) MP3, b) WAV, c) OGG
Which three attributes control the playback behavior of the <video> tag?
a) autoplay
b) controls
c) loop
d) poster
e) muted
Answers: a) autoplay, b) controls, c) loop
Which three attributes are essential for the <area> tag in an image map to be functional?
a) shape
b) coords
c) href
d) alt
e) title
Answers: a) shape, b) coords, c) href
Which three are valid shapes for the <area> tag's shape attribute?
a) rect
b) circle
c) poly
d) default
e) oval
Answers: a) rect, b) circle, c) poly
Which three are common uses for an <iframe>?
a) Embedding a YouTube video
b) Displaying a Google Map
c) Including an advertisement
d) Creating a main website header
e) Styling text
Answers: a) Embedding a YouTube video, b) Displaying a Google Map, c) Including an advertisement
Which three are methods of including CSS in an HTML document?
a) Inline
b) Internal
c) External
d) Imported
e) Embedded
Answers: a) Inline, b) Internal, c) External
Which three selectors target elements based on their state or position?
a) :hover
b) :first-child
c) :nth-child(2)
d) #id
e) .class
Answers: a) :hover, b) :first-child, c) :nth-child(2
Which three properties are used to create space around elements (outside the border)?
a) margin-top
b) margin-right
c) margin-bottom
d) padding-left
e) padding-top
Answers: a) margin-top, b) margin-right, c) margin-bottom
Which three properties are used to create space inside an element (around the content)?
a) padding-top
b) padding-right
c) padding-bottom
d) margin-left
e) margin-right
Answers: a) padding-top, b) padding-right, c) padding-bottom
Which three properties can be used to change the text appearance?
a) color
b) font-family
c) font-size
d) margin
e) line-height
Answers: a) color, b) font-family, c) font-size
Which three are valid values for the text-decoration property?
a) underline
b) overline
c) line-through
d) blink
e) italic
Answers: a) underline, b) overline, c) line-through
Which three are valid values for the cursor property?
a) pointer
b) wait
c) text
d) click
e) hand
Answers: a) pointer, b) wait, c) text
Which three properties can be used to create a responsive layout?
a) width: 100%
b) max-width: 100%
c) height: auto (for images)
d) position: fixed
e) float: left
Answers: a) width: 100%, b) max-width: 100%, c) height: auto (for images)
Which three are core concepts of Flexbox layout?
a) Flex Container
b) Flex Items
c) Main Axis & Cross Axis
d) Floats
e) Clearfix
Answers: a) Flex Container, b) Flex Items, c) Main Axis & Cross Axis
Which three properties are set on a Flex Container (display: flex)?
a) flex-direction
b) justify-content
c) align-items
d) flex-grow
e) order
Answers: a) flex-direction, b) justify-content, c) align-items
Which three properties can be used to create a simple animation?
a) @keyframes
b) animation-name
c) animation-duration
d) transition
e) transform
Answers: a) @keyframes, b) animation-name, c) animation-duration
Which three transform functions can be used with the transform property?
a) rotate()
b) scale()
c) translate()
d) move()
e) skew()
Answers: a) rotate(), b) scale(), c) translate()
Which three pseudo-classes are related to user interaction?
a) :hover
b) :active
c) :focus
d) :visited
e) :first-of-type
Answers: a) :hover, b) :active, c) :focus
Which three units are absolute length units in CSS?
a) px (pixels)
b) cm (centimeters)
c) pt (points)
d) em
e) rem
Answers: a) px, b) cm, c) pt
Which three properties can be used to control the stacking order of elements?
a) z-index
b) position
c) display
d) order
e) float
Answers: a) z-index, b) position, d) order
Which three properties are used to style a table's appearance?
a) border-collapse
b) border-spacing
c) caption-side
d) table-layout
e) cell-padding
Answers: a) border-collapse, b) border-spacing, c) caption-side
Which three are valid values for the background-repeat property?
a) repeat
b) repeat-x
c) repeat-y
d) no-repeat
e) space-around
Answers: a) repeat, b) repeat-x, c) repeat-y
Which three properties are used to create a text shadow effect?
a) text-shadow: h-shadow
b) text-shadow: h-shadow v-shadow
c) text-shadow: h-shadow v-shadow blur-radius
d) text-shadow: h-shadow v-shadow blur-radius color
e) text-shadow: color blur-radius
Answers: b) text-shadow: h-shadow v-shadow, c) text-shadow: h-shadow v-shadow blur-radius, d) text-shadow: h-shadow v-shadow blur-radius color
Which three media types can be used in a media query?
a) all
b) screen
c) print
d) speech
e) device
Answers: a) all, b) screen, c) print
Which three HTML5 semantic tags define sections of a page?
a) <header>
b) <nav>
c) <main>
d) <section>
e) <div>
Answers: a) <header>, b) <nav>, d) <section>
Which three HTML5 semantic tags are used for content?
a) <article>
b) <aside>
c) <footer>
d) <span>
e) <content>
Answers: a) <article>, b) <aside>, c) <footer>
Which three input types are specifically for choosing a value from a range?
a) range
b) number
c) color
d) date
e) file
Answers: a) range, b) number, c) color
Which three global attributes can be applied to any HTML element?
a) class
b) id
c) style
d) title
e) href
Answers: a) class, b) id, c) style
Which three are valid ways to represent the color red in CSS?
a) color: red
b) color: #ff0000
c) color: rgb(255, 0, 0)
d) color: hsl(0, 100%, 50%)
e) color: color(red)
Answers: a) color: red, b) color: #ff0000, c) color: rgb(255, 0, 0)
Which three properties can be transitioned smoothly?
a) opacity
b) background-color
c) width
d) display
e) font-family
Answers: a) opacity, b) background-color, c) width
Which three are layout models in CSS?
a) Normal Flow
b) Flexbox
c) Grid
d) Tables
e) Floats
Answers: a) Normal Flow, b) Flexbox, c) Grid
Which three properties are used to create a grid layout?
a) display: grid
b) grid-template-columns
c) grid-template-rows
d) grid-gap
e) grid-flow
Answers: a) display: grid, b) grid-template-columns, c) grid-template-rows
Which three selectors have the same specificity?
a) p
b) ::before
c) .class
d) :hover
e) [type="text"]
Answers: b) ::before, d) :hover, e) [type="text"]
Which three are valid values for the font-style property?
a) normal
b) italic
c) oblique
d) bold
e) underline
Answers: a) normal, b) italic, c) oblique
Which three properties control the size of a background image?
a) background-size
b) background-width
c) background-height
d) background-repeat
e) background-position
Answers: a) background-size, b) background-width, c) background-height
Which three properties can be used to hide an element?
a) display: none
b) visibility: hidden
c) opacity: 0
d) width: 0; height: 0
e) position: absolute; left: -9999px
Answers: a) display: none, b) visibility: hidden, c) opacity: 0
Which three are CSS pseudo-elements?
a) ::before
b) ::after
c) ::first-line
d) :first-child
e) :checked
Answers: a) ::before, b) ::after, c) ::first-line
Which three HTML elements are used to create a form?
a) <form>
b) <input>
c) <label>
d) <div>
e) <span>
Answers: a) <form>, b) <input>, c) <label>
Which three are self-closing (void) elements in HTML?
a) <img>
b)
c) <input>
d) <meta>
e) <div>
Answers: a) <img>, b)
, c) <input>