LESSON / 04
head 不直接显示,却决定编码、移动端宽度、标签页标题、搜索摘要与分享卡片。
meta charset
meta viewport
title
meta description
meta theme-color
link rel="icon"
meta robots
<meta name="description" content="一句话描述。" /> <meta name="theme-color" content="#2563eb" /> <link rel="icon" href="/favicon.ico" />
OG 标签决定社交平台预览卡的标题、描述与图片。
<meta property="og:title" content="页面标题" /> <meta property="og:description" content="一句话描述。" /> <meta property="og:type" content="article" />
head 与元数据
head 里的标签如何影响搜索、分享与移动端。
2. 分享元数据
OG 标签决定社交平台预览卡的标题、描述与图片。
head 与元数据
head 里的标签如何影响搜索、分享与移动端。