Hi am a dedicated web dev what is the usefulness of span and padding? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hi am a dedicated web dev what is the usefulness of span and padding?

29th May 2020, 10:25 PM
Oloyede Martins
3 Answers
+ 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
30th May 2020, 5:14 AM
Calviղ
Calviղ - avatar
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.
29th May 2020, 10:50 PM
Samira
Samira - avatar
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.
30th May 2020, 8:47 AM
Lucky victory
Lucky victory - avatar