0
Hi am a dedicated web dev what is the usefulness of span and padding?
3 Antworten
+ 1
One of the application of span tag with padding selector is to segregate with the current document with different styling.
Check this code out, see how the dropcap and nested article that created using span tag with padding or margin selector.
https://code.sololearn.com/WG5ferTgdbA6/?ref=app
0
Span is an inline element which works to group other elements to style it in css. Padding is to specify the height width inside any content.
0
firstly, span is not related with padding, span is a html tag while padding is a CSS property,
<span> tag doesn't work how it sounds.
span tag is similar to <p> tag, but the difference there is that <p> tag is a block element while <span> tag is an inline element.
while padding is similar to margin but the difference there is that, margin adds space outside the box while padding adds space inside the box.
I hope this helps.