Link to home
Start Free TrialLog in
Avatar of Shaun Bartlett
Shaun Bartlett

asked on

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

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.
Avatar of Mukesh Yadav
Mukesh Yadav
Flag of India image

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  -->
Extra closing DIV here
User generated image
ASKER CERTIFIED SOLUTION
Avatar of Banshi lal dangi
Banshi lal dangi
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Shaun Bartlett
Shaun Bartlett

ASKER

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
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
Hello Shaun,

Try to put closing div tag from #88 and #89  to before the </body> closing tag.
At last, with the tips I have received there are no errors, thanks for your help everyone.

Colin