Interview Question

What is the purpose of meta tags?

Meta elements place machine-readable document information in the `<head>`.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

Meta elements provide document metadata that is not ordinary page content. • They belong in the document `<head>`. • Common uses include declaring UTF-8, viewport settings, and a page description. • Browsers, search engines, and other tools use only the metadata they support.

💡 Simple Example

<head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="description" content="Beginner HTML interview questions"></head>

⚡ Quick Revision

Meta elements place machine-readable document information in the `<head>`.