Posted On: Feb 22, 2018
The difference between span and div is that a span element is in-line and usually used for a small chunk of HTML inside a line (such as inside a paragraph) whereas a div (division) element is block-line (which is basically equivalent to having a line-break before and after it) and used to group larger chunks of code.
<div id="scissors"> <p>This is <span class="paper">crazy</span></p> </div>
Further Reading:
http://www.htmldog.com/guides/html/intermediate/spandiv/
Never Miss an Articles from us.
HTML is a widely used language that gives our webpage a structure. HTML stands for HYPERTEXT MARKUP LANGUAGE. HTML was..
HTML means Hypertext Markup Language. This language is basically used for creating web applications and also for web pa..
Basically, in 1980, A great physicist Sir Tim Berners -Lee who is a contractor at CERN proposed the way through which documents can be shared easily. So, he prototyped ENQUIRE (a system for CERN), whi..