is an inline tag, a is a block tag, used for paragraphs. But, in short, here are the main differences between span and div elements: The example below illustrates two divs and two spans notice the visual differences between these elements: See the Pen span vs div 1 by Christina Perricone (@hubspot) on CodePen. Although it is sometimes used for hair loss in shampoos, there is no proof that biotin shampoos are successful in stimulating hair development. What can a lawyer do if the client wants him to be acquitted of everything despite serious evidence? In standard HTML, a div is a block-level element whereas a span is an inline element. Drawing Line on Canvas. Before and after each paragraph, browsers add margin automatically. A span is an inline formatting change that isn't handled semantically. p span means a SPAN that's anywhere inside a P element. The canvas element creates a container, or canvas, upon which you can draw graphics. Reply. Specific versions have been created for GIS mapping, scientific imaging and the professional design engineering market. p > span means a SPAN that's an immediate child of a P element. Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. If you want to know how web pages are built, you should get comfortable with tags and their purpose. Menu. Any text inside the