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

Avatar of undefined
Last Comment
Banshi lal dangi

8/22/2022 - Mon
Mukesh Yadav

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 Vermaak

Extra closing DIV here
div.jpg
ASKER CERTIFIED SOLUTION
Banshi lal dangi

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
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
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Shaun Bartlett

ASKER
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 dangi

Hello Shaun,

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

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

Colin
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Banshi lal dangi

Answered