Test Series - html

Test Number 54/72

Q: Which of the following works as a sidebar?
A. 
B. 
C. 
D. 
Solution: 
Q: Which of the following can’t be the value of float property?
A. left
B. right
C. center
D. inherit
Solution: float property can have the property left, right, none, inherit. When set to inherit value the element inherits the float value of its parent, when set to none property the element does not float, it is the default value.
Q: Which of the following can’t be the value of a clear property?
A. left
B. inherit
C. right
D. center
Solution: clear property specifies what elements can float beside cleared element and on which side. It can hold the values none, left, right, both and inherit. The inherit property inherits the clear value of its parent when setting to both no floating elements allowed on either the left and right side.
Q: Which of the following specifies what happens if content overflow an element’s box?
A. overflow
B. overflow-x
C. overflow-y
D. float
Solution: overflow property specifies what happens if content overflows an element’s box, overflow-x specifies what to do with left/right edges of the content if it overflows the element’s content area, overflow-y specifies what to do with top/bottom edges of the content if it overflows the element’s content area.
Q: Which of the following was not previous layout mode?
A. Block
B. Flexbox layout
C. Inline
D. Positioned
Solution: Before Flexbox layout module there were four layout modes. Block, Inline, Table, Positioned. Block is for sections in a webpage, inline is for text, table is for two dimensional table data, positioned is for explicit position of an element.
Q: Which property defines in which direction the container wants to stack flex items?
A. flex-flow
B. flex-wrap
C. flex-direction
D. align-content
Solution: flex-direction property defines in which direction the container wants to stack the flex items, the flex-flow property is shorthand property for setting both flex-direction and flex-wrap properties. For deciding whether the flexible items should wrap or not, flex-wrap property is used.
Q: Which property is used to align flex items?
A. align-items
B. justify-content
C. align-content
D. flex-grow
Solution: justify-content property is used to align flex items, the align-items property is used to align flex items vertically, the align-content property is used to align flex lines, flex-grow specifies how much a flex item will grow relative to rest of flex items.
Q: Which of the following specifies initial length of flex item?
A. flex-flow
B. flex-grow
C. flex-shrink
D. flex-basis
Solution: flex-basis property specifies the initial length of the flex item, flex-shrink property specifies how much a flex item will shrink relative to rest of flex items, the value must be a number and a default value is 1. The flexible-grow property is a relative comparison between the items. It decides how much item will grow relative to the rest of flexible items inside the same container.
Q: Which of the following overrides container’s align-items property?
A. order
B. align-self
C. align-items
D. flex
Solution: align-self property is used on flex items, it overrides container’s align-items property, flex is shorthand property for flex-grow, flex-shrink, and flex-basis properties, the order specifies the order of flexible item relative to rest of the flex items inside the same container.
Q: Which one of the following contains information about the author?
A. 
B. 
C. 
D. 
Solution: Footer for its nearest sectioning content or sectioning root element is represented by 
element. It typically contains information about author of the section, links to related documents or copyright data. An introductory content lies in
. is container for all head elements. A document’s body is defined by tag.

You Have Score    /10