Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
About the head part of html
So Iām doing the html course and it says head is where the non-visual elements go. Does this mean like the JavaScript to make a button function is in there? Donāt make the reply too complicated please as Iām just starting. Thanks!
1 Resposta
+ 4
Iāll try to make my answer simple. The head element contains all the non-visible elements, that provide other metadata about the web page. For example, the title, and external files to be loaded BEFORE the actual document (thatās why itās before the body element). So you can attach your JavaScript in there, but be aware that the document hasnāt fully loaded yet, so you wonāt be able to manipulate elements from the DOM (youāll learn about that later on). But yes, you can do that!