<span></span>
as an in-line element and a <div></div>
as a block level element.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