无涯教程-HTML - <meta>属性

32 阅读1分钟

HTML <meta>标签用于声明HTML文档的元数据。

HTML和XHTML区别

在HTML中,<meta>标签没有结束标签,在XHTML中,必须正确关闭<meta>标签。

XHTML 示例

<html>

<head> <title>HTML meta tag</title> <meta name="keywords" content="HTML, meta tag, metadata" /> <meta name="description" content="Brief description of the document" /> <meta http-equiv="refresh" content="10" /> </head>

<body style="background-color:orange"> Document content goes here </body>

</html>

有关元标签的更多详细信息,请访问元标签


参考链接

www.learnfk.com/html/html-m…