Section 1/5Basic Meta Tag Syntax
Basic Meta Tag Syntax
Key points about <meta> tags:They are always placed inside the <head> element.They are "empty" elements, meaning they don't need a closing tag.They provide metadata using attributes like charset or name and content pairs.
Meta Tags & SEO
Meta tags are snippets of text that describe a page's content; they don't appear on the page itself, but only in the page's code. They are essential for search engine optimization (SEO) and for ensuring your site displays correctly on all devices. ⚙️
Basic Meta Tag Syntax
<head><meta charset="UTF-8"><meta name="description" content="A brief summary of the page content."><meta name="author" content="John Doe"></head>
→
[These tags are invisible on the page but are read by browsers and search engines]Key points about <meta> tags:
- They are always placed inside the
<head>element. - They are "empty" elements, meaning they don't need a closing tag.
- They provide metadata using attributes like
charsetornameandcontentpairs.