html tutorial - Head <head> tag in HTML - html5 - html code - html form

head tag

Learn html - html tutorial - head tag - html examples - html programs

  • The <head> element is an important for all the head elements.
  • A <title> for the document, <scripts>, <styles>, <meta> information are included in <head> element.
  • The <head> tag is the first child of an html document.
  • <head> tag is belongs to heading content category.
  • <head> tag will support the Global Attributes.

Syntax for <head> tag in HTML:


Differences Between HTML 4.01 and HTML5 for <head> tag in HTML:

HTML 4.01

  • In HTML 4 head element is required.


  • In HTML 5 head element does not required. HTML 5 automatically generate the head tag.

Sample Coding for <head> tag in HTML:

Tryit<!DOCTYPE html>
<html >
        Welcome to

Code Explanation for <head> tag in HTML:

code explanation for <head> tag

  1. head tag - start with <head> and its end with </head>.
  2. <title> - title tag defined inside the head tag with the name “Wikitechy-headtag”.
  3. Welcome to is content of the body tag.

Output of <head> tag in HTML:

output for <head> tag

  1. Here “Wikitechy-headtag” is the title of the HTML page is displayed in the output.
  2. Welcome to is content of the page displayed in the output.

Browser Support for <head> tag in HTML:

Yes Yes Yes Yes Yes

Related Searches to head tag in html

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add to your ad blocking whitelist or disable your adblocking software.