Specifying Name/Value Metadata Pairs
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
<meta name="author" content="java2s.com"/>
<meta name="description" content="A simple example"/>
</head>
<body>
<a href="http://java2s.com">Visit java2s.com</a>
</body>
</html>
The name attribute specifies which metadata type. The content attribute to provide a value.
The following table lists the predefined metadata types:
Metadata Name | Description |
---|---|
application name | The name of the web application |
author | The name of the author |
description | A description of the page |
generator | The name of the software that generated the HTML |
keywords | A set of comma-separated strings that describe the content of the page |
Home
HTML CSS Book
HTML
HTML CSS Book
HTML
Document Structure:
- The doctype Element
- The html Element
- The head Element
- The body Element
- Setting the Document Title
- Setting the Base for Relative URLs
- Specifying Name/Value Metadata Pairs
- Declaring a Character Encoding
- Simulate an HTTP Header
- Defining CSS Styles
- Specifying the Media for a Style
- Denoting External Resources
- Defining a Favicon for Your Page
- Using the Scripting Elements
- Loading an External Scripting Library
- Deferring Execution of a Script
- Executing a Script Asynchronously
- The noscript Element
- Redirect the user to a different URL if it doesn't support JavaScript.
Related: