In: Computer Science
QUESTION 1 To provide the top-level formatting for a page, a style sheet commonly formats a. universal selectors b. classes c. body and HTML5 semantic elements d. attributes 0 points
QUESTION 2 When you use ____________________ font sizes, the size of the font is based on the font size of the parent element. 0 points
QUESTION 3 Which of the following should you do to provide accessibility to img elements with useful content? a. Provide an alternate image. b. Code an src attribute with an absolute URL. c. Use a PNG image. d. Code an alt attribute that describes the image. 0 points
QUESTION 4 The title element in the head section of an HTML document specifies the text a. that’s displayed in the status bar of the browser b. that’s used to refer to the document c. that’s displayed in the browser’s tab for the page d. that’s used to refer to the application 0 points
QUESTION 5 When you set the float property for a block element to left, the elements that follow it will flow into the space a. to the right of the floated element if there’s enough space b. to the right of the floated element c. to the left of the floated element d. to the left of the floated element if there’s enough space .
1) Answer is C, Body and HTML5 semantic
elements
Explanation: A sytle sheet will always used to format body and
HTML5 tags in order to format a page.
2) Answer is em and ex units
Explanation: The em and ex units on the font_size property are
based on the parent elements font size.
3) Answer is D, code an alt attribute that
describes the image.
Explanation: The alt attribute is used to display the alternative
text.
4) Answer is A, Thats displayed on the status
bar of the browser.
Explanation: The title tag is used to display the title of the page
in the browser.
5) Answer is C, to the left of the floated
element.
Explanation: When we set a float property as left, the elements
will follow into left of the floated element.