added DOCTYPE, arranged statements logically

script outside of div, css ref in head, input self-close