Why head tag is used in HTML

Whenever an HTML web page is created, adding <head>…</head> is a must, since it is a container. It is placed after the top-most <html> element:

In the <head>…</head>, add title, CSS styles, scripts, meta, etc, for example:

Title in head element

Meta property in head element

Let us see an example and set head tag in HTML on a web page:

Example

Output

Head tag in HTML

Inserting Hyperlinks on an HTML web page
How to set background color in HTML
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading