HTML Head

Last Updated:

HTML Head

The HTML <head> tag is a container to hold lots of metadata information about the content of the page.

Metadata defines the document title, character set, styles, links, scripts, and other meta information.

Following is a list of tags used in metadata:

Example

HTML Online Editor
<!DOCTYPE html> <html lang="en-US"> <head> <!-- title tag--> <title>Page Title</title> <!-- base tag--> <base href="https://www.wikimass.com/"> <!-- meta tag--> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- link tag--> <link rel="stylesheet" href="green.css"> <!-- script tag--> <script src="/script/alert-me.js"></script> </head> <body> <h1>This is a Heading.</h1> <p onclick="myFunction()">Click Me.</p> <img src="books.png" width="100" height="100"> </body> </html>

Share this Page

Meet the Author