<!DOCTYPE html> <html> <head> <script type="text/javascript"> document.write("Hello! This is JS under head tag.") </script> </head> </html>