From e6a9e49ac36b34330f6b631de755be50aa9b388c Mon Sep 17 00:00:00 2001 From: Kris Hayes Date: Fri, 9 Nov 2018 16:37:16 -0700 Subject: [PATCH] Added diff between span and div section (#21386) --- guide/english/html/elements/div-tag/index.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guide/english/html/elements/div-tag/index.md b/guide/english/html/elements/div-tag/index.md index 979b72dedf..5d801c23a1 100644 --- a/guide/english/html/elements/div-tag/index.md +++ b/guide/english/html/elements/div-tag/index.md @@ -15,7 +15,10 @@ Here is an example of how to display a section in the same color: ``` -#### More Information: +#### Differences between `` and `
` +The main difference is that `` is an inline element, while `
` is a block element. This means that a `` can appear within a sentence or paragraph (as in the example above), while a `
` will start a new line of content. Note that the CSS `display` property can change this default behavior, but that's way beyond the scope of this article! + +##### More Information: Tutorialspoint MDN