answersLogoWhite

0

'head' is an element in HTML that is accessible to web browser implemented JavaScript via the DOM or Document Object Model.

The head element works as a container for information that is not intended to show on the page itself. The web-page title, referens to css-files or js-files would normally be placed within the head tag, along with SEO metadata.

The head-tag is required for a web page to be semantically valid.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Can you use JavaScript within the form tag?

You can call an external javascript file or javascript code located inside the head or body tag from a form using event handlers. I am not sure if you can or cannot use javascript code inside form tags but am sure that it is not a good programming practise to put code of two different language (js & html) together


How do you make ajava script file?

JavaScript files can be created with the extension .js Note that an accompanying HTML file must reference it in order for it to run as JavaScript. You can include the file in your HTML document by adding the following to the head or body of the document: <script type="text/javascript" src="myJavaScriptFile.js"></script> Replace myJavaScriptFile.js with the file name of your JavaScript file.


Javascript code for the area of a triangle?

<html> <head> <script language="JavaScript"> function TriaAngle (base, height) { document.write("the area of the triangle is" +1/2*base*height) } </script></head> <body> <script language ="JavaScript"> var b=(prompt ("enter the base of the triangel")) var h=(prompt ("enter the height of the triangle")) TriaAngel (b,h) </script ></body></html>


What is a document head?

The head of a HTML document is where you define your sites title and meta tags, as well as linking to stylesheets. It is also possible to link to JavaScript in the head, but it is best to link them at the bottom of the body.


What is a javascript tutorial?

A JavaScript tutorial contains instructions that will teach you how to code in JavaScript.


What languages can a browser understand?

HTML, CSS, & JavaScript.


How do you put java script into HTML?

Javascript inside html <html> <head> <script type="text/javascript" language="javascript"> // Java script code here </script> <body> // html code here </body> </html> Via External Link: <html> <head> <script type="text/javascript" language="javascript" src="location of js file"> </script> <body> // html code here </body> </html>


What are built-in javascript classes?

Javascript does not have classes


How old is Javascript?

Javascript was created in 1995.


How do you sort in javascript?

Javascript can help in browseing


Is this Javascript Code Correct?

<html> <head> <script type="text/javascript"> // Start with value 1 var StudentCurrentID = 1 function Dissplay(StudentCurrentID) { document.write ("<p>Student Number"+ StudentCurrentID +":<INPUT TYPE=TEXT NAME=Student"+StudentCurrentID+"name></p… StudentCurrentID++} </script> </head> <body><script type="text/javascript"> StudentsTotalNum = Prompt("Enter Total Number of Students"); return StudentsTotalNum; </script> <form name=StudentsNames> <script type="text/javascript"> for StudentCurrentID < StudentTotalNum { Dissplay(StudentCurrentID) }; </script> </form> </body> </html>


What is document heading?

The head of a HTML document is where you define your sites title and meta tags, as well as linking to stylesheets. It is also possible to link to JavaScript in the head, but it is best to link them at the bottom of the body.