Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Introducing the Practice

Ivan Frances Alcantara
Ivan Frances Alcantara
4,516 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
216,798 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".