head element is like the header of the web page containing information of the page. Its content is not displayed. We place the head element inside the
html tag and before the
Following are some of the elements that we put inside the head element.
title tag is used to set the title of the web page.
meta tag is used to provide some more information about the html document. For instance, the author of the page or the keywords for the web page.
<meta name="keywords" content="html, tutorial, dyclassroom, videos">
We will learn more about meta tags in the HTML Meta Tags tutorial.
style tag is used to define style within the web page.
We will talk more about styling in the CSS tutorial.
link tag is used to include external style sheet in the web page.
In the above example we are including an external style sheet default.css in the web page using the link tag.
var text = "Hello World!";