Can you swing it


#1

how do i make the introduction paragraph and the summary paragraph have a font-weight of bold?


#2

They are both direct children of body


#3

ok and how do i do it


#4

I can't give full answers, show me what you tried, so i can see what goes wrong.

You do know how to select a direct child (using >), right?


#5

wait you cant, really :disappointed_relieved:


#6

Nope, CC policy prevents me from giving full answer without explanation. Post your code, so i can help you


#7

do i have to do
body > p {
like that


#8

Yes, that should do it. Very good you figured it out :smile:


#9

got a question though. i thought that (body > p { ) selects a the <p>s in the body


#10

*selects all the <p>s in the body


#11

Nope, look at this code:

<body>
  <p>i get selected</p>
  <div>
    <p>i do not get selected</p>
  </div>
  <p>i get selected</p>
</body>

if you know do body > p with the above html code, the paragraph inside the div does not get selected, it has div as parent direct, body is not the direct parent, more like grandparent. If you would do, body p then all paragraphs would be selected. > makes a huge difference


#12

thanks, youre a real help stetim,


#13

nice site and forum but its tough till u clear an interview