We help IT Professionals succeed at work.

Error: End tag div seen, but there were open elements.

Shaun Bartlett
on
1,656 Views
Last Modified: 2017-03-26
I have tried to understand the Error: End tag div seen, but there were open elements, but when I have viewed the source code for this page http://www.roof-repairs-colchester.co.uk/index.html I can not see any problem with it. Can someone please help.
Comment
Watch Question

Mukesh YadavFull Stack Developer
CERTIFIED EXPERT

Commented:
Try this ;)

Here 4 div elements don't have closing tags. These are:

     
  • <div class="wrapper">
       
  • <div class="row row-offcanvas row-offcanvas-left">
         <!--[if lt IE 7]><p class=browsehappy>You are using an <strong>outdated</strong> browser. Please <a href=http://browsehappy.com/ >upgrade your browser</a> to improve your experience.<![endif]-->
         
  • <div class="inner-wrapper">
           
  • <!-- Last div.container  -->
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
Extra closing DIV here
div.jpg
Full Stack Developer
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
I have managed to correct most errors except those shown below, I am not sure where to add or remove the element with the error. If someone could show mw exactly what I should do by correcting the errors in the text below. ( source code of page http://www.roof-repairs-colchester.co.uk/ ).

1)
Error: End tag div seen, but there were open elements.
From line 97, column 1; to line 97, column 6
li>↩</ul>↩</div>↩ </di

2)
Error: Unclosed element nav.
From line 88, column 1; to line 88, column 38
default">↩<nav class="collapse navbar-collapse">↩<ul c

3)
Error: End tag for  body seen, but there were unclosed elements.
From line 397, column 1; to line 397, column 7
/script>↩↩</body>↩↩</ht

4)
Error: Unclosed element div.
From line 316, column 3; to line 316, column 25
 </div>↩  <div class="container">↩  <di

5)
Error: Unclosed element div.
From line 75, column 1; to line 75, column 27
endif]-->↩<div class="inner-wrapper">↩<div

6)
Error: Unclosed element div.
From line 73, column 1; to line 73, column 50
wrapper">↩<div class="row row-offcanvas row-offcanvas-left">↩<!--[

7)
Error: Unclosed element div.
From line 72, column 1; to line 72, column 21
d>↩<body>↩<div class="wrapper">↩<div

Author

Commented:
I managed to fix all but one error, when I do correct the error below,  the formatting of the footer is changed and looks awful :

Error: End tag for  body seen, but there were unclosed elements.
From line 404, column 1; to line 404, column 7
/script>↩↩</body>↩↩</ht

Error: Unclosed element div.
From line 322, column 3; to line 322, column 25
 </div>↩  <div class="container">↩  <di
Banshi lal dangiFull Stack Developer

Commented:
Hello Shaun,

Try to put closing div tag from #88 and #89  to before the </body> closing tag.

Author

Commented:
At last, with the tips I have received there are no errors, thanks for your help everyone.

Colin
Banshi lal dangiFull Stack Developer

Commented:
Answered

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions