guarantee that the head tag has also an end tag like <head> </head>