<span></span>
as an in-line element and a <div></div>
as a block level element.![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSM-2evbpGYB8zE6Nvq_O99Gq3lvLykyMjYusL6JKVBAk5bYzNAtZ-5p0Dk06R8sSpO-VRd306ygbIrzhYePZ8MYxjagYYS6YDS074_s-8YxRG8Bik320kzfj0IcqV-y62qVtQu-S7FTU/s1600/span-div.png)
While a
span
allows you to separate things from the
other elements around them on a page or within a document, it does not
cause a line break. This is why it is perfect for in-line styling, like
coloring a single word in a sentence to draw more attention to it.But a
div
, by default, creates a line break because it
is used to make separate containers or boxes within a page or document,
hence the name division. So the proper way to use a div
is as a containing element, rather than an inline styling element.
1 comments:
Thanks for Sharing an Information to us . If Someone wants to know about Digital Marketing Course and Web Development Courses. I think this is the right place for you.
SEO Courses in coimbatore and Digital Marketing Courses in Coimbatore
Post a Comment