WDI Fundamentals

WDI Fundamentals Unit 4

Divs and Spans

Now that we know a bit about how elements behave, we can start to explore where we want to place these elements on our webpage. Span is an inline element used to apply CSS to inline HTML, and div is a block element used to apply CSS to in-blocks of HTML. We've encountered divs before in the previous unit and in the Memory Game. Divs typically wrap big sections of content on a page.

Checkpoint:

  • Is a div tag a block or inline element?
  • Is a span tag a block or inline element?

Onto the next lesson.