CSS Online Quiz


Following quiz provides Multiple Choice Questions (MCQs) related to CSS. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 1 - Which of the following selector selects all paragraph elements with a lang attribute?

A - p[lang]

B - p[lang="fr"]

C - p[lang~="fr"]

D - p[lang|="fr"]

Answer : A


p[lang] − Selects all paragraph elements with a lang attribute.

Q 2 - Which of the following is a way to associate styles with your HTML document?

A - Embedded CSS - The