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

difference between q tags and block quotes?

whats the difference between q tags and block quotes? can you use either one to achieve the same goal?

2 Answers

Steven Parker
Steven Parker
231,248 Points

The <q> tag is an inline quote. The content is typically rendered with fancy quote marks around it.

But <blockquote> content is typically rendered in its own paragraph, and indented.

Give them both a try and see for yourself!

thank you so much for your advice

The way that I learned it is like this: <blockquote> is like <div> (block content) <q> is like <span> (inline) Hope that helps a little

yes it did. thank you so much