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 trial

HTML

Omer Asadullah
Omer Asadullah
10,415 Points

Are P tags inside blockquote tag necessary?

In stage 2 named Text in HTML deepdive series, Nick puts paragraph tags <p> after the blockquote tag. However, I have written text between the blockquote open and close tags and have found that not adding the p tag doesn't make any difference. My question is that is it necessary to add the p tag because of some server side programming problem later on if we don't add the p tag or was this just a formality on the part of Nick.

1 Answer

Hayden Taylor
Hayden Taylor
5,076 Points

I can't remember that video but... Semantically the blockquote tag should contain a paragraph tag. Also this would help style the quote in css.

Omer Asadullah
Omer Asadullah
10,415 Points

Ok Thanks for your help buddy.