This tag is compulsory for any HTML document. The Head tag is used to create a title of web page, CSS syntax for a web page, and helps in written a JavaScript code. The Body tag is used to display the content on a web page. In this example we do not specify any content or any tag, so in output nothing will display on the web page.