If you are working with Tag selectors
you must be able to read the index.html-document
following the guide-lines of the
DOM Document Object Model.
html
|
+ - - - - + - - - - +
| |
head body
| |
+ - - - + +- - - +- - - +
| | | | |
link title p div p
(intro) | (summary)
|
+ - - - + - - - - +
| |
p ul
(synopsis) |
|
+ - - - + - - - - +
| | |
li li li
| | |
p p p
The p-Tags are located:
html > body > p (2)
html > body > div > p (1)
html > body > div > ul > li > p (3)
body p as selector we have selected all 6 p-Tag's
p as selector we have selected all 6 p-Tag's
body > p as selector we selected 2 p-Tags ==> Intro & Summary
div > p as selector we have selected 1 p-Tag ==> Synopsis
div p as selector we have selected 4 p-Tag's
li > p as selector we have selected 3 p-Tags under the ul-Tag
Make all < p> tags have a font-family of Garamond. (Do NOT use the universal selector for this! There’s a better way; see the Hint for help.) p { font-family: Garamond }
Make the introduction paragraph and the summary paragraph have a font-weight of bold (this is a new property for you, but it works just like the others you’ve learned). body > p { font-weight: bold }
Make the synopsis paragraph have the color #7AC5CD. div > p { color: #7AC5CD }
Make the paragraphs in the unordered list have the color #000000 and text-decoration underline. li > p { color: #000000 ; text-decoration: underline }
OR ul p { color: #000000 ; text-decoration: underline }
Creo que tienes que eliminar el segundo selector p y todas las declaraciones en la misma sección . Cuando se utiliza p como un selector que afectará a todos los paragraph sections:
p { font-family: Garamond;
font-weight: bold;
text-decoration: none;
}
Sorry I don’t speak a lot of Spanish. I hope this helps you.