I know that a web page has an implied <head> tag even when there is none declared in the file. I was just curious in testing getElementsByTagName('head') when there is none and it does return a <head> tag.
However, when I placed more than one <head> in the page… it returns a unified head. why is this?
That’s because the browser “corrects” your HTML to always include a single
<head>. Otherwise your HTML is invalid.