Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialZubair Malek
1,223 PointsIs the <body> element always the parent of the <p> element?
Why is the paragraph text set to 150% is equivalent to 24px? If a <p> tag is nested inside a <div> tag, and the div is set to 50px, then wouldn't the paragraph text me 150% of 50px?
1 Answer
Dallin Rodgers
Front End Web Development Techdegree Student 13,885 PointsHello Zubair Malek,
The <body> tag is not always the parent element. Using the same example of a <p> tag inside of <div> tags. The <div> tag would be the parent element to the <p> tag.