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 Introducing the Practice

Ivan Frances Alcantara
Ivan Frances Alcantara
4,528 Points

Why are <blockquote>s (l. 62 & l. 65) indented from <h3> (l. 59)?

Paragraphs like the one in line 27 are not indented from their titles, neither are they indented from <headers> like that in l. 44, but then <blockquotes> are, and same for <ul> in l. 31.

Ivan Frances Alcantara, can you provide an example of what you are seeing, or try to explain this a little differently? I'm not understanding the question currently.

1 Answer

Steven Parker
Steven Parker
231,236 Points

Indentation is being used here to indicate the nesting level of elements. The paragraphs and their titles are "sibling" elements (have the same parent), so they are indented the same amount.

Spacing and indentation of HTML elements is entirely to enhance readability, it has no effect on the rendered output. But because it helps to make the organization more clear, it is considered a "best practice".