I've removed those doctype declarations, html, body and head elements. It hasn't fixed the problem. When I tried removing the images from the page temporarily, <br> was working. Seems the problem only persists when those images are there. But they have been closed, so why?