Meta Tags untuk SEO

Which HTML head elements actually penting untuk SEO di 2026 — judul tautan, deskripsi meta, dan robots meta tag — plus X-Robots-Tag, rel attributes, dan dead tags untuk drop.

Pertama kali diterbitkan: 23 Jun 2026 · Terakhir diperbarui: 3 Agu 2026 · Advanced
Bahasa

Meta tags adalah head elements itu pass metadata untuk mesin pencari — tetapi sebagian besar 'meta tags untuk SEO' lists adalah padded dengan tags itu melakukan nothing. hanya sebuah few penting: judul element (sebuah light peringkat factor dan main source dari SERP judul tautan), deskripsi meta (drives CTR, not sebuah peringkat factor), dan robots meta tag (noindex, nofollow, snippet controls — mirrored oleh X-Robots-Tag header untuk non-HTML files). Group head elements oleh job: appearance, pengindeksan/serving, tautan-tingkat, browser-hanya, dan ignored. trap itu bites everyone: sebuah halaman blocked di robots.txt adalah tidak pernah di-crawl, so Google tidak pernah sees Anda noindex. ini hub maps setiap tag dan routes Anda untuk deep dives.

TL;DR — Group head elements oleh job, not oleh name. Appearance: judul element (sebuah primary — not hanya — source dari SERP judul tautan) dan deskripsi meta (CTR copy, not sebuah peringkat factor). pengindeksan & serving: robots meta tag (noindex, nofollow, nosnippet, max-snippet…), mirrored oleh X-Robots-Tag header HTTP untuk non-HTML files dan data-nosnippet di element tingkat. tautan-tingkat: rel="nofollow", sponsored, ugc pada <a> tags — hints, not directives. browser-hanya: charset, viewport, refresh. Ignored: keywords, author, revisit-setelah. muat-bearing aturan: robots.txt adalah crawl control, robots meta tag adalah indeks control — block sebuah halaman dan Google tidak pernah sees Anda noindex.

Evidence for this claim The HTML meta element represents metadata that other head elements cannot express. Scope: HTML semantics, independent of whether a particular search engine uses a given name value. Confidence: high · Verified: MDN: meta element Evidence for this claim Google documents a defined set of meta tags it understands and ignores unsupported tags. Scope: Google Search's supported meta-tag behavior. Confidence: high · Verified: Google Search Central: Meta tags and attributes

What counts sebagai sebuah meta tag — dan judul-tag caveat

Meta tags adalah elements di head itu pass metadata tentang halaman untuk search mesin dan browser. classic ones gunakan meta element. tetapi single sebagian besar penting head element untuk SEO — judul element — adalah technically not sebuah meta tag. I’m covering ini here anyway, because setiap “meta tags for SEO” (terjemahan) “meta tags untuk SEO” search ingin ini, dan because grouping head elements oleh job mereka melakukan adalah far more berguna daripada splitting hairs di atas which ones adalah literally <meta>.

So here’s map I ingin Anda untuk pertahankan di Anda head.

map — setiap head signal oleh -nya job

1. Appearance (penting untuk SEO).

  • ** judul element** — becomes Anda judul tautan di hasil. ini adalah sebuah light peringkat factor, dan ini adalah primary, tetapi not satu-satunya, source dari SERP judul. Google: ini “uses a number of different sources to automatically determine the title link,” (terjemahan) “menggunakan sebuah angka dari berbeda sources untuk automatically determine judul tautan,” including Anda judul, terlihat H1, prominent text, og:title, dan teks jangkar. So ini dapat rewrite yours. Ahrefs’ besar-scale research ditemukan Google rewrites judul roughly sebuah ketiga dari time, sering when mereka’re too panjang atau boilerplate. Aim untuk ~60 characters / di bawah ~600px.
  • ** deskripsi meta** — snippet copy. ini adalah not sebuah peringkat factor (more pada itu below), tetapi ini adalah pitch itu earns click — write ini sebagai conversion copy, not keyword copy. Google rewrites atau ignores ini majority dari time (Ahrefs’ data puts rewrite rate sekitar 62,78%), so spend effort pada tinggi-nilai, tinggi-traffic halaman dan don’t sweat ini pada panjang tail.

2. pengindeksan & serving control ( robots family). ini adalah one set dari directives delivered di up untuk three places:

  • robots meta tag di head — noindex, nofollow, none (= noindex, nofollow), plus snippet controls nosnippet, max-snippet, max-image-preview, max-video-preview, dan noimageindex, notranslate, unavailable_after, indexifembedded. Target sebuah spesifik bot dengan name="googlebot" alih-alih name="robots".
  • X-Robots-Tag header HTTPsama directives, set server-side di respons header. ini adalah how Anda noindex sebuah PDF, sebuah image, atau apa pun non-HTML file itu memiliki no head untuk put sebuah meta tag di. Underused, dan sebuah nyata differentiator.
  • data-nosnippet attribute — element-tingkat snippet control. Wrap sebuah span, div, atau bagian dan itu text adalah excluded dari snippet without hiding whole thing. ini adalah satu-satunya sub-halaman snippet control.

sebuah 2026-saat ini detail worth flagging: max-snippet now juga caps how much dari Anda konten dapat feed AI Overviews dan AI Mode — Google’s docs say so explicitly. dan when directives conflict, more restrictive aturan wins (nosnippet beats max-snippet:50).

3. tautan-tingkat signals (pada <a> tags, not di head).

  • rel="sponsored" — paid tautan dan ads.
  • rel="ugc" — pengguna-generated konten (comments, forum posts).
  • rel="nofollow" — everything else Anda tidak ingin untuk vouch untuk. Since 2019, Google treats ini three sebagai hints, not strict directives, untuk peringkat — dan flagged tautan dapat masih menjadi ditemukan dan di-crawl melalui lainnya paths. Don’t confuse tautan-tingkat rel="nofollow" (one tautan) dengan halaman-tingkat robots meta nofollow (setiap tautan pada halaman) — berbeda scope, berbeda mechanism.

4. browser-hanya (not SEO directives). charset/konten-jenis dan viewport adalah untuk rendering, not peringkat. meta-refresh tag — Google panggilan ini sebuah tag itu “sends the user to a new URL after a certain amount of time” (terjemahan) “mengirim pengguna untuk sebuah baru URL setelah sebuah certain amount dari time” — adalah sebuah browser convenience; untuk sebuah SEO redirect gunakan nyata server-side 301, not sebuah refresh.

5. Ignored / dead. keywords (“no effect on indexing and ranking at all” (terjemahan) “no effect pada pengindeksan dan peringkat di semua”), nositelinkssearchbox (now sebuah no-op), dan author/revisit-setelah (tidak pernah digunakan oleh Google). Stop cargo-culting ini.

Where setiap tag lives — three locations

ini adalah lainnya axis itu trips developers up:

  • HTML head — judul element, deskripsi meta, robots meta tag, dan browser tags.
  • respons header HTTPX-Robots-Tag, carrying yang sama robots directives, set server-side, berfungsi untuk apa pun file jenis.
  • pada element / tautandata-nosnippet pada sebuah span/div/bagian, dan rel nilai pada <a> tags.

crawling vs. pengindeksan vs. serving — why robots.txt dapat silence Anda meta tags

Head directives only work after retrieval. A robots.txt block can prevent Google from seeing the noindex you expected it to obey.

The same page contains a meta robots noindex directive. In the first path, crawling is allowed, so the crawler fetches the page, reads noindex, and can remove the URL from results after processing. In the second path, robots.txt blocks crawling, so the crawler cannot fetch the page or see noindex, and the URL may remain in results.

ini adalah paling penting concept pada halaman, so I’ll menjadi blunt tentang ini. ini adalah berbeda layers:

  • robots.txt = crawl control. ini decides whether Google fetches URL di semua.
  • robots meta tag / X-Robots-Tag = indeks + sajikan control. mereka decide whether sebuah di-crawl halaman gets terindeks dan how ini adalah ditampilkan.
  • data-nosnippet = sajikan control hanya, di element granularity.

Here’s gotcha, straight dari Google’s docs: jika sebuah halaman adalah “disallowed from crawling through the robots.txt file, then any information about indexing or serving rules will not be found and will therefore be ignored.” (terjemahan) “disallowed dari crawling melalui robots.txt file, lalu apa pun informasi tentang pengindeksan atau serving aturan akan not menjadi ditemukan dan akan therefore menjadi ignored.” Block halaman dan Anda noindex adalah tidak pernah seen. halaman dapat sit di indeks dengan no snippet, terindeks purely off tautan pointing untuk ini.

I’ve tested crawl side dari ini directly. di Story dari Blocking 2 tinggi-peringkat halaman dengan Robots.txt I blocked two dari kami own peringkat halaman dan watched what happened. My takeaway holds up: “Don’t block pages you want indexed. It hurts. Not as bad as you might think it does—but it still hurts.” (terjemahan) “Don’t block halaman Anda ingin terindeks. ini hurts. Not sebagai buruk sebagai Anda mungkin think ini melakukan—tetapi ini masih hurts.” halaman didn’t vanish — mereka dipertahankan peringkat, hanya without mereka snippets dan featured-snippet slots. Which adalah exactly poin: blocking adalah sebuah crawl lever, not sebuah deindex lever. untuk hapus sebuah halaman, allow crawling dan tambahkan noindex.

deskripsi meta adalah not sebuah peringkat factor

ini adalah worth stating flatly because myth adalah so durable. John Mueller put ini plainly: deskripsi meta “is primarily used as a snippet in the search results page. And that’s not something that we would use for ranking.” (terjemahan) “adalah primarily digunakan sebagai sebuah snippet di hasil pencarian halaman. dan itu’s not something itu kami akan gunakan untuk peringkat.” ini affects CTR, not position. modern wrinkle: AI dan LLM surfaces increasingly lift ini sebagai sebuah ready-dibuat summary, so sebuah tight deskripsi earns Anda baik representation di more daripada hanya blue tautan now.

Two implementation gotchas itu quietly break metadata

Invalid HTML di head truncates everything setelah ini. <head> element dapat hanya berisi title, meta, link, script, style, base, noscript, dan template. Google’s docs adalah blunt tentang what happens jika Anda break itu: “If you use an invalid element in the head element, Google ignores any elements that appear after the invalid element.” (terjemahan) “jika Anda gunakan invalid element di head element, Google ignores apa pun elements itu appear setelah invalid element.” two invalid elements Google names explicitly adalah iframe dan img. jika sebuah template accidentally drops one dari itu ke head — ahead dari Anda deskripsi meta atau robots tag — everything setelah ini goes dark, bahkan though markup “looks” (terjemahan) “looks” fine di source. Audit tip: periksa Anda rendered head untuk sebuah stray iframe/img sebelum Anda go debug why sebuah meta tag “isn’t working.” (terjemahan) “isn’t berfungsi.”

Don’t let JavaScript inject atau mutate meta tags jika Anda dapat hindari ini. Google’s own guidance: “We recommend that you avoid using JavaScript to inject or change meta tags whenever possible, and if you must use it, test your implementations thoroughly.” (terjemahan) “kami recommend itu Anda hindari menggunakan JavaScript untuk inject atau perubahan meta tags whenever mungkin, dan jika Anda harus gunakan ini, test Anda implementations thoroughly.” server-rendered head tags adalah stable default. tetapi “inspect the rendered HTML” (terjemahan) “inspect rendered HTML” tidak berarti “the rendered value always wins.” (terjemahan) “ rendered nilai selalu wins.” Record setiap field oleh stage: judul dan deskripsi remain inputs untuk Google’s judul-tautan/snippet selection; sebuah raw noindex dapat stop rendering sebelum JavaScript menghapus ini; dan Google says not untuk emit one canonical di source dan perubahan ini later. saat ini JavaScript SEO guidance documents itu field-spesifik differences.

Duplicate metadata adalah evidence, not sebuah precedence aturan. HTML standard permits one title dan one deskripsi meta per document. jika sebuah template emits several, tampilkan setiap raw dan rendered nilai dan flag duplicate; melakukan not claim itu pertama atau last adalah Google’s guaranteed choice.

Robots meta di body adalah sebuah Google-spesifik exception. Valid, portable markup masih puts tag di <head>, tetapi Google’s saat ini robots documentation says Google Search reads dan respects robots meta tags di body. Treat body placement sebagai sebuah conformance/portability notice untuk Google, not proof aturan failed. Canonicals melakukan not share ini exception.

Where untuk go next

ini hub adalah map; setiap topic below adalah -nya own deep dive, dan mereka semua live di pada-halaman cluster sidebar. (untuk full set, see pada-halaman cluster indeks.)

Appearance

  • tag judul — Anda sebagian besar penting head element: how judul tautan adalah chosen, why Google rewrites ini, dan how panjang ini seharusnya menjadi.
  • deskripsi meta — writing snippet copy itu earns click, why ini adalah not sebuah peringkat factor, dan how sering Google rewrites ini.

pengindeksan & serving control

  • robots meta tag (meta robots) — noindex, nofollow, none, dan cara target spesifik bot.
  • X-Robots-Tag header — yang sama directives untuk PDFs, images, dan lainnya non-HTML files.
  • noindex — cara actually hapus sebuah halaman dari indeks (dan why ini harus stay dapat di-crawl untuk berfungsi).
  • nofollow — halaman-tingkat directive vs. tautan-tingkat attribute, dan what setiap one really melakukan.
  • rel=sponsored dan rel=ugc — qualifying paid dan pengguna-generated tautan cara Google expects.
  • max-snippet / max-image-preview — tuning how much text dan how besar sebuah image Google dapat tampilkan, including reach ke AI Overviews.
  • nosnippet / data-nosnippet — suppressing snippet untuk sebuah whole halaman atau sebuah single element.

Social sharing & platform tags

  • Open Graph tagsog:title, og:image, dan rest dari protocol itu controls how sebuah tautan previews pada Facebook, LinkedIn, Slack, dan Discord.
  • Twitter/X Card tagstwitter:card family, dan how X’s own volatile tautan-preview perilaku memiliki changed independently dari Anda markup.
  • Social sharing imagesog:image/twitter:image dimension, file-size, dan absolute-URL aturan itu pertahankan sebuah shared tautan dari showing sebuah broken atau stale preview.
  • Favicon SEO<link rel="icon"> requirements untuk sebuah favicon untuk actually tampilkan up next untuk Anda hasil di Google.

Legacy & rarely-berguna tags

  • ** meta charset tag** — why <meta charset="utf-8"> memiliki untuk sit di pertama 1024 bytes, dan what happens when ini doesn’t.
  • ** meta keywords tag** — tag Google memiliki ignored since 2009, dan why ini adalah masih worth menghapus.
  • rel=“alternate” (terjemahan) “alternate” — umum tautan-relation mechanism behind hreflang, feed autodiscovery, dan now-retired AMP annotation.

layer itu sits above semua dari ini adalah crawling: sebuah halaman memiliki untuk menjadi dapat di-crawl untuk apa pun head directive untuk menjadi seen, which adalah why robots.txt adalah -nya own topic dan prerequisite untuk everything here.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.