The 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 body tag.
Following are some of the elements that we put inside the head element.
The title tag is used to set the title of the web page.
The 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.
The style tag is used to define style within the web page.
We will talk more about styling in the CSS tutorial.
The 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!";
Have fun learning :-)
Copyright © 2014 - 2019 DYclassroom. All rights reserved.
rendered in 0.0136 sec