Inline elements & Block-level elements


#1


https://www.codecademy.com/courses/learn-html-css/lessons/content/exercises/display?action=lesson_resume&link_content_target=interstitial_lesson


I don't understand Inline elements and Block-level elements. What are they and how can I distinguish each other?


Replace this line with your code.


#2

well, block will be a block and blocks will be positioned below each other, where as inline elements are inline. Which you can see in this bin

divs are block level elements by default, where as span are inline elements

look at this bin, see how we have a block? See what happens when you change the display value to inline. The element will now only take up the space it needs


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.