+ 1

Please help me with HTML🙋🙋 →to all html users

1. Please tell the use of <span> ...!! 2. Please check this code ↓↓ where I have used it, but it isn't showing any difference !! Whether used, or not used !! https://code.sololearn.com/WZvD6zLouz22/?ref=app

31st Aug 2020, 1:36 AM
I M J
I M J - avatar
4 RĂ©ponses
+ 2
Span has no effect of its own. It is used to style small words/letters. It's main benifit is , it is inline element.
31st Aug 2020, 2:00 AM
Divya Mohan
Divya Mohan - avatar
+ 1
Divya Mohan please check the code and modify it such that it shows some effect...
31st Aug 2020, 2:03 AM
I M J
I M J - avatar
+ 1
Divya gave a great answer to your question. Aside from your question, you should make your HTML more valid. <span>About Me<span/> should be changed to: <span>About Me</span> <♄MJ♄> should be changed to use HTML entities for the < > signs like this: &amp;lt;♄MJ♄&amp;gt; Whenever Sololearn's code editor shows an X beside a line of HTML, you should see why. Your HTML renders nicely regardless of my suggestions but these problems can hurt search engine optimization if you want that later. It will force your page to load in quirks mode which can be slower. You could go a step beyond eliminating all "X" marks in the Sololearn editor by validating with an official validator such as: https://validator.w3.org/#validate_by_input
31st Aug 2020, 2:07 AM
Josh Greig
Josh Greig - avatar
+ 1
That was effect of parent element h1. Due to which it became bold and big
31st Aug 2020, 2:09 AM
Divya Mohan
Divya Mohan - avatar