Why does the <span></span> element not work when i use it on my text editor? Who else has noticed this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why does the <span></span> element not work when i use it on my text editor? Who else has noticed this?

How else do i have to use it on notepad? Or is it a browser error that makes it unreadable?

19th Jan 2019, 10:50 AM
Oladepo Tesleem
Oladepo Tesleem - avatar
5 Answers
+ 4
Can you show us the code? Paste it in playground and link it here.
19th Jan 2019, 12:15 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 3
No, no, it's perfectly fine. I just wanted to see what's going on with the code (always remember to post the code so we can review the errors). 👍 Here, you have to ask yourself what is the purpose of the span tag? It's usually used for styling purposes, for example if you want just one element in div to be different than others you can wrap it in span and give it different styling. Take a look : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span https://code.sololearn.com/WN7aty6Qnv9r/?ref=app
23rd Jan 2019, 8:53 PM
dρlυѕρlυѕ
dρlυѕρlυѕ - avatar
+ 1
https://code.sololearn.com/Wlulc9RQFexR/?ref=app
23rd Jan 2019, 6:22 PM
Oladepo Tesleem
Oladepo Tesleem - avatar
+ 1
I know it looks like a beginner's question. Yes, i am a beginner
23rd Jan 2019, 6:24 PM
Oladepo Tesleem
Oladepo Tesleem - avatar
+ 1
Thank you.
23rd Jan 2019, 9:43 PM
Oladepo Tesleem
Oladepo Tesleem - avatar