HTML meta tags provide metadata about a webpage, which is essential for search engines and browsers. They are placed within the <head> section and include information such as character encoding, page description, keywords, and viewport settings. Meta tags do not display content on the page but help with SEO, responsive design, and document structure. Common meta tags include charset, description, and viewport.
Examples:
<meta charset="UTF-8">
<meta name="description" content="This is a brief description of the webpage.">
<meta name="keywords" content="HTML, CSS, JavaScript, web development">
<meta name="author" content="Your Name">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
HTML Code:
The Output of the above code:
HTML Meta Tags
Meta tags provide metadata about the HTML document. They are placed inside the <head> section.
<meta name="description" content="A brief description of the page">
<meta name="keywords" content="HTML, tutorial, meta tags">
<meta name="author" content="Your Name">
<meta charset="UTF-8">