0

The Head Tag in HTML

I thought that the head Tag contains non-visual Elements, but when I wrote something between the head Tag It still.came up, 😐, isn't it invisible or what does non-visual mean?

24th May 2021, 10:23 AM
Najib Habu
Najib Habu - avatar
4 Respostas
+ 1
<head> is not only about non-visual elements you can use <head> to print text as well. Non-visual means everything that the user of your website cannot see on his screen.
24th May 2021, 11:53 AM
Carbon
Carbon - avatar
+ 1
html is very permissive, so if you write content in head that your browser detect as should be in the body, he try to correct your code on the fly by opening the body tag just before the content rather than where you've written your own later ^^ however, this kind of html file, even if seems to be working are not valid and could cause unexpected behaviors, in addition to bad SEO rating / referencement ;P
24th May 2021, 4:52 PM
visph
visph - avatar
0
There are tags like title ,meta etc in head tag for special perpose use them in head .
24th May 2021, 10:35 AM
Yash Wable 🇮🇳
Yash Wable 🇮🇳 - avatar
0
HTML is just a standard. Because it works doesn't mean its right to do
24th May 2021, 12:16 PM
Toni Isotalo
Toni Isotalo - avatar