tag is being auto inserted
It is a problem of wordpress editor which put some raw elements when it find space between code.. if you are adding external html code do one thing before adding it, make it minify then add it use this took or anyone else for minification https://www.willpeavy.com/minifier/ it will resolve this problem.