+ 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
4 Antworten
+ 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.
+ 1
Divya Mohan please check the code and modify it such that it shows some effect...
+ 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:
&lt;♥MJ♥&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
+ 1
That was effect of parent element h1. Due to which it became bold and big