- 2
Why we use extra closing Tag ??
Example : <div id="loader"> </div> </div></div> </div></div> </div> Somebody coder use this closing tag many times,,,if i will remove two -three closing tag,,,ita effecting on style document ciricle.
15 Réponses
+ 2
Sajid Ali I'm happy that I could help :D
+ 1
Share a link to the code where you see that please. It's unwise to say something without taking a closer look at the code.
+ 1
Ipang
This is not my code:
In this code he is use div 4-6 times for loading page
https://code.sololearn.com/WKyVuw42Olgw/?ref=app
+ 1
Sajid Ali
It's hard to tell whether <div> tag was correctly formed because indentation was mixed up.
But there was no warning about unpaired tags when I checked the HTML in https://validator.w3.org/#validate_by_input.
So I guess it's just a confusion from code indentation.
+ 1
😅,,, soory..!
Now am understanding
+ 1
Sajid Ali create a new post. Give it a good description. Include the code bit in question. And the community will be happy to help you.
0
😐
0
That is because those divs are styled with CSS in order to create the circles. If you remove one or more of the div element. You will have less rotating circles.
0
Here is an example
https://code.sololearn.com/WayRBj2kr9RU/?ref=app
0
Interesting you have a code that uses the same logic.
https://code.sololearn.com/W4LLQGl0cgyE/?ref=app
0
Chris C. Broh,,,
I knew that,, every element needs closing Tag,,
But in this case above said code div like this :
<div id="loader"> </div> </div></div> </div></div> </div>
There is extra closing tag
Why ?
0
You're not seeing the full code?
<div id="loader">
<div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div>
</div>
0
Bro can you help me another code ?
I was created canvas four box,
Now i want to show one by one every box..
How can do it ?
Can u help me
0
Cide bits :
https://code.sololearn.com/WwYNX3ykg4Cp/?ref=app
0
Each div is named as division and are block level elements. Each div is a block that means it is a box or a shelf...you can just make the shelf empty with css styles or add elements in it using html... Mostly div will be left empty just for the designing styles using css