+ 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?
5 Respuestas
+ 4
Can you show us the code? Paste it in playground and link it here.
+ 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
+ 1
https://code.sololearn.com/Wlulc9RQFexR/?ref=app
+ 1
I know it looks like a beginner's question. Yes, i am a beginner
+ 1
Thank you.