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 HTML Tables Headers and Footers

Sekhar Reddy
Sekhar Reddy
1,141 Points

How the HTML position its elements?

Is the HTML position its elements in a vertical or horizontal or each element behave in their own way?

2 Answers

There are basically two type of elements. Block and inline elements. So block elements such as div are stacked vertically if you say so while inline elements like input span etc are horizontally stacked. Then we have elements like image or img which is inline element but also behaves as block as it has height and width. In order to explore a little further here is a link to inline elements and at the bottom there is a link to the block elements. https://developer.mozilla.org/en-US/docs/HTML/Inline_elements

Sekhar Reddy
Sekhar Reddy
1,141 Points

Thanks Ali...clarifies my doubt

No problem Sekhar. my pleasure :)