HTML Meta Tags

Meta Tags

Meta Tags are basically used for providing information about the document such as Keyword, Description, Encoding etc.

Meta Tags are not visible in HTML Document, but they are browser

Meta Tags are used for various purpose

1. Character Encoding
2. Author Information
3. Keyword and Description
4. For Mobile Devices

Meta Tags Example

<!DOCTYPE html>
<title>Page Title</title>
<!-- Character Encoding Meta Tag -->
<meta charset="utf-8">

<!-- Author Information Meta Tag -->
<meta name="author" content="John">

<!-- Keyword Meta Tag -->
<meta name="keywords" content="HTML">

<!-- Description Meta Tag -->
<meta name="description" content="Tutorials on HTML">

<!-- Mobile Meta Tag -->
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="styles.css">
<h1>This is a new heading</h1>