<head> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:head

Introduction

The head element contains the metadata for the document.

metadata elements provide the browser with information about the content and markup in the document.

head element can also include scripts and references to external resources.

head Element summary

Item Value
Elementhead
Element Type N/A
Permitted Parents html
Local Attributes None
Contents One title element is required; other metadata elements are optional
Tag Style Start and end tag enclosing other elements
New in HTML5 No
Changes in HTML5 None
Style Convention None

Using the head Element

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Hello</title> 
   </head> 
   <body></body>
</html><!--from  ww  w. jav a 2  s .c  om-->

Related Tutorials