HTML5 Advanced CSS Features


Q1. 
Select the focused element.
A. Use the :focus selector.
B. Use the negation selector.
C. Use the :empty selector.
D. Use the :lang selector.
Q2. 
Negate another selector.
A. Use the :focus selector.
B. Use the negation selector.
C. Use the :empty selector.
D. Use the :lang selector.
Q3. 
Select the root element in the document.
A. Use the :root selector.
B. Use the :first-child, :last:child, :only-child, or :only-of-type selectors.
C. Use the :nth-child, :nth-last-child, :nth-of-type, or :nth-last-of-type selectors.
D. Use the :enabled or :disabled selectors.
Q4. 
Select elements that have no content.
A. Use the :focus selector.
B. Use the negation selector.
C. Use the :empty selector.
D. Use the :lang selector.
Q5. 
Select elements based on language.
A. Use the :focus selector.
B. Use the negation selector.
C. Use the :empty selector.
D. Use the :lang selector.
Q6. 
Selects the element referred to in a URL fragment.
A. Use the :target selector.
B. Use the negation selector.
C. Use the :empty selector.
D. Use the :lang selector.
Q7. 
Select elements based on input validation.
A. Use the :checked selector.
B. Use the :default selector.
C. Use the :valid or :invalid selectors.
D. Use the :in-range and :out-of-range selectors.
Q8. 
Select range-constrained input elements.
A. Use the :checked selector.
B. Use the :default selector.
C. Use the :valid or :invalid selectors.
D. Use the :in-range and :out-of-range selectors.
Q9. 
Select elements that are enabled or disabled.
A. Use the :root selector.
B. Use the :first-child, :last:child, :only-child, or :only-of-type selectors.
C. Use the :nth-child, :nth-last-child, :nth-of-type, or :nth-last-of-type selectors.
D. Use the :enabled or :disabled selectors.
Q10. 
Select radio button or check box elements that are checked.
A. Use the :checked selector.
B. Use the :default selector.
C. Use the :valid or :invalid selectors.
D. Use the :in-range and :out-of-range selectors.
Q11. 
Select the default element.
A. Use the :checked selector.
B. Use the :default selector.
C. Use the :valid or :invalid selectors.
D. Use the :in-range and :out-of-range selectors.
Q12. 
Select a child element.
A. Use the :root selector.
B. Use the :first-child, :last:child, :only-child, or :only-of-type selectors.
C. Use the :nth-child, :nth-last-child, :nth-of-type, or :nth-last-of-type selectors.
D. Use the :enabled or :disabled selectors.
Q13. 
Select the active element.
A. Use the :required or :optional selectors.
B. Use the :link and :visited selectors.
C. Use the :hover selector.
D. Use the :active selector.
Q14. 
Select a child at a specific index.
A. Use the :root selector.
B. Use the :first-child, :last:child, :only-child, or :only-of-type selectors.
C. Use the :nth-child, :nth-last-child, :nth-of-type, or :nth-last-of-type selectors.
D. Use the :enabled or :disabled selectors.
Q15. 
Select input elements based on the presence of the required attribute.
A. Use the :required or :optional selectors.
B. Use the :link and :visited selectors.
C. Use the :hover selector.
D. Use the :active selector.
Q16. 
Select a hyperlink.
A. Use the :required or :optional selectors.
B. Use the :link and :visited selectors.
C. Use the :hover selector.
D. Use the :active selector.
Q17. 
Select the element that the mouse is currently over.
A. Use the :required or :optional selectors.
B. Use the :link and :visited selectors.
C. Use the :hover selector.
D. Use the :active selector.


Advertisements
Advertisements

Mail: Support@gicgac.com