HTML CSS examples for HTML Tag:meta
The name attribute specifies the name for the metadata.
Value | Description | Example |
---|---|---|
application-name | name of the Web application that the page represents | <meta name="application-name" content="nodejs"> |
author | name of the author of the document. | <meta name="author" content="your name"> |
description | a description of the page. | <meta name="description" content="Free web tutorials"> |
generator | software used to generate the document. | <meta name="generator" content="FrontPage 4.0"> |
keywords | a comma-separated list of keywords | <meta name="keywords" content="HTML, meta tag, tag reference"> |
viewport | Controls the viewport. | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
The width=device-width part sets the width of the page to follow the screen-width of the device.
The initial-scale=1.0 part sets the initial zoom level when the page is first loaded by the browser.
The following code shows how to Use the name attribute to define a description, keywords, and the author of an HTML document.
<!DOCTYPE html> <html> <head> <meta name="description" content="Free Web tutorials"> <meta name="keywords" content="HTML5,CSS,JavaScript"> <meta name="author" content="your name"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head><!--from ww w.j a v a 2 s. com--> <body> <h1>My Website</h1> <p>Some text...</p> </body> </html>