一个或多个元标记?

One or multiple meta-tags?

我刚刚发现我的 HTML 中有两个 meta 标签 head:

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">

有多个时两者都有效吗?我应该合并它们吗?拥有多个元标记是否同样好?

有多个meta标签是完全正常的,也不能按照unor的回答合并。

看看definition of the meta element。它说:

Exactly one of the name, http-equiv, and charset, attributes must be specified.

所以您的两个示例 meta 元素不可能合并,因为这样 meta 元素将具有 charset name 属性,这是不允许的。