ExamVeda
Login
Home
51
Which syntax is used to describe elements in CSS?
Discuss
Answer & Solution
Answer: Option B
Solution:
CSS stylesheets have a very powerful syntax, known as selectors, for describing elements or sets of elements within a document.
52
What does the following code snippet mean?
#log>span
Discuss
Answer & Solution
Answer: Option D
Solution:
The above code snippet means that any span child of the element with id=”log”.
53
Which of the following is the ultiate element selection method?
Discuss
Answer & Solution
Answer: Option A
Solution:
querySelectorAll() is the ultimate element selection method: it is a very powerful technique by which client-side JavaScript programs can select the document elements that they are going to manipulate.
54
Which of the following is the Web application equivalent to querySelectorAll()?
Discuss
Answer & Solution
Answer: Option C
Solution:
Web applications based on jQuery use a portable, cross-browser equivalent to querySelectorAll() named $().
55
The C in CSS stands for
Discuss
Answer & Solution
Answer: Option D
Solution:
The C in CSS stands for “cascading”. This term indicates that the style rules that apply to any given element in a document can come from a “cascade” of different sources.
56
The latest version of CSS is
Discuss
Answer & Solution
Answer: Option C
Solution:
The latest version of CSS is CSS3.
57
Which of the following is an example of a Shortcut Property?
Discuss
Answer & Solution
Answer: Option D
Solution:
All of the above mentioned properties are shortcut properties. For example, the font-family, font-size, font-style, and font-weight properties can all be set at once using a single font property with a compound value:
font: bold italic 24pt helvetica;
58
Which of the following is the default positioning elements with CSS?
Discuss
Answer & Solution
Answer: Option B
Solution:
static is the default value and specifies that the element is positioned according to the normal flow of document content (for most Western languages, this is left to right and top to bottom).
59
Which property lays the element according to the normal flow?
Discuss
Answer & Solution
Answer: Option A
Solution:
When the position property is set to relative, an element is laid out according to the normal flow, and its position is then adjusted relative to its position in the normal flow.
60
Which of the following property allows you to specify an element’s position with respect to the browser window?
Discuss
Answer & Solution
Answer: Option B
Solution:
The fixed value allows you to specify an element’s position with respect to the browser window. Elements with fixed positioning are always visible and do not scroll with the rest of the document. Like absolutely positioned elements, fixed-position elements are independent of all others and are not part of the document flow.