From 1514d33f1cac6a54e45fbb1c959cc8fb562aa1b3 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 2 Sep 2020 15:50:57 +0200 Subject: [PATCH] Specified question 5 for HTML in questionw --- questions.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/questions.md b/questions.md index c37763b..2b736e6 100644 --- a/questions.md +++ b/questions.md @@ -22,8 +22,18 @@ ## 5. What CSS selector matches all the p elements inside the article element in the following HTML? - ```HTML + Here, we have two options. One could either do + + ```CSS article p {} ``` - This specifies all `

` elements inside the `

`, in contrast to `article > p {}` which would only specify `

` elements directly beneath the `

`. + which specifies all `

` elements inside the `

`. + + The other options would be + + ```CSS + article > p {} + ``` + + which would only specify `

` elements directly beneath the `

`. But since there are no `

` subchildren, both will work.