+ 1
If we write any message in head tag then it is shown in the output then how we can say it contain non visual elements.
If we write any message in head tag then it is shown in the output then how we can say it contain non visual elements. <head> EXAMPLE <\head> OUTPUT: EXAMPLE
4 ответов
+ 2
You misunderstood.
It doesn't mean that "if you put some text in <head>, those text won't be displayed in rendered view."
If you put some <h2>This is a header</h2> in <head>, you can see it in the webpage.
But then this is a wrong practice, because all content for webpage should be in <body>, <head> should only contain <title>, <meta>, <link> and <script>.
That's the only correct practice.
+ 4
The HTML content in the <head> tag of the HTML file will actually be loaded by the browser into the DOM as if it was in the <body> tag.
I created the post below to explain this further:
https://www.sololearn.com/post/636227/?ref=app
+ 3
firstly you should close with
</head> not <\head>
secondly content in <head> are for browser and search engine to read.
meta are important for Responsive Design a d SEO.
https://www.w3schools.com/css/css_rwd_viewport.asp
https://moz.com/blog/the-ultimate-guide-to-seo-meta-tags
0
But here it is written non visual elements but then why then the output contains thhe text wirtten in head tag