References

Collection of references for web development.

HTML head tag

Description

The HTML <head> element is a container, it contains information that is not displayed in your web browsers document e.g. page title, favicons, metadata, and links to external resources.

Attributes

Attribute Value Description
xmlns http://www.w3.org/1999/xhtml Specifies the xml namespace for the document.

Example

<!DOCTYPE html>
<html>
	<head>
		<title>Page Title</title>
	</head>
	<body>
		Page Content
	</body>
</html>

Example #2

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,minimum-scale=1">
		<title>Page Title</title>
		<meta name="description" content="Page Description">
		<meta name="keywords" content="Page Keywords">
		<link rel="icon" href="favicon.png">
		<link href="style.css" rel="stylesheet" type="text/css">
	</head>
	<body>
		Page Content
	</body>
</html>

More Examples