2026 FULL SOLVED QUESTIONS ANSWERS
HTML CSS AND JAVASCRIPT REVIEW SHEET
◉ Given the following CSS code:
body {
color : white;
}
Which part of an element is affected by the color property?
Answer: Text
◉ What should be added first when embedding CSS in a single web
page as an internal style sheet?
Answer: A <style> element to the <head> section
◉ What is the first character a developer should use for an id
selector in CSS?
Answer: #
,◉ A developer has an image that needs to remain in the same place
when the page is scrolled.
Which CSS positioning scheme should this developer use?
Answer: Fixed
◉ A developer needs two pixels of space on the left side of content
relative to the border.
Which CSS property should this developer use?
Answer: padding-left: 2px;
◉ What immediately encloses the padding in the CSS box model?
Answer: Border
◉ What is the outermost box of the CSS box model?
Answer: Margin
◉ Which markup positions an image so that the lower part of it is
even with the lower part of adjoining text?
Answer: <img src="sample.jpg" vertical-align="baseline">
, ◉ Which syntax for a CSS class floats images to the right?
Answer: .floatright {
float: right; margin: 7px;
}
◉ Which CSS transition should be used on an image to make it ease
in when a user's mouse hovers over that image?
Answer: transition-timing-function
◉ Which CSS property should a developer use to specify the bottom
of a 3D element?
Answer: perspective-origin
◉ A web designer creates the following animation by using CSS3:
#texteffect {
position: relative;
animation-name: scroll;
animation-duration: 5s;
animation-timing-function: linear;
animation-play-state: running;
}