Trying to find unclosed <div>

I was trying to figure out why my page wont validate
https://validator.w3.org/nu/?doc=http%3A%2F%2Fsvr.teamluke.net%2Fadd_rental.php
and am having trouble finding em, how do i"?

Usually if your html code is properly indented, you should be able to match up the pairs of tags and figure out which ones don’t have closing tags.

3 Likes

As it’s a PHP page, it may be easier to work out wha’s going on if you were to post the code from that in here. It looks like the section generating the form should be sufficient.

The form input statements are not closed.

Either use this /> to close or add this </input>

The validation page has a checkbox to Show Source.

Hi there lurtnowski,

on lines #62 to #64 of your “add_rental.php” file, you have this…

          		</form>
          		</div>
			</div>

…change it to this…

          		</div>
          		</div>
			</form>

coothead

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.