- 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.

26th Jan 2021, 3:14 AM
Sajid Ali
Sajid Ali - avatar
15 odpowiedzi
+ 2
Sajid Ali I'm happy that I could help :D
26th Jan 2021, 12:21 PM
Chris Coder
Chris Coder - avatar
+ 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.
26th Jan 2021, 6:12 AM
Ipang
+ 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
26th Jan 2021, 6:28 AM
Sajid Ali
Sajid Ali - avatar
+ 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.
26th Jan 2021, 7:22 AM
Ipang
+ 1
😅,,, soory..! Now am understanding
26th Jan 2021, 12:20 PM
Sajid Ali
Sajid Ali - avatar
+ 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.
26th Jan 2021, 12:25 PM
Chris Coder
Chris Coder - avatar
0
😐
26th Jan 2021, 8:06 AM
Sajid Ali
Sajid Ali - avatar
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.
26th Jan 2021, 12:00 PM
Chris Coder
Chris Coder - avatar
26th Jan 2021, 12:06 PM
Chris Coder
Chris Coder - avatar
0
Interesting you have a code that uses the same logic. https://code.sololearn.com/W4LLQGl0cgyE/?ref=app
26th Jan 2021, 12:07 PM
Chris Coder
Chris Coder - avatar
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 ?
26th Jan 2021, 12:16 PM
Sajid Ali
Sajid Ali - avatar
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>
26th Jan 2021, 12:18 PM
Chris Coder
Chris Coder - avatar
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
26th Jan 2021, 12:21 PM
Sajid Ali
Sajid Ali - avatar
26th Jan 2021, 12:22 PM
Sajid Ali
Sajid Ali - avatar
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
27th Jan 2021, 4:11 PM
Mr.Kalyankumar
Mr.Kalyankumar - avatar