WDI Fundamentals

WDI Fundamentals Unit 5

Div and Span

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 blocks of HTML. A div typically wraps 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?

On to the next lesson.