Html-meta-tag
提供:Dev Guides
HTML-<meta>タグ
関数
HTML <meta>タグは、HTMLドキュメントのメタデータを宣言するために使用されます。
HTMLとXHTMLの違い
HTMLでは、<meta>タグには終了タグがありません。
XHTMLでは、<meta>タグを適切に閉じる必要があります。
例
<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>
メタタグの詳細については、リンクにアクセスしてください:/html/html_meta_tags [メタタグ]
属性
Attribute | Value | Description |
---|---|---|
Name | author description keywords generator revised others | Name for the property. |
content | text | Defines meta information to be associated with http-equiv or name. |
http-equiv | content-type expires refresh set-cookie | Connects the content attribute to an HTTP header. |
scheme | text | Defines a format to be used to interpret the value of the content attribute. |
標準属性
Sr.No | Attribute & Description |
---|---|
1 |
dir テキストの方向を指定します |
2 |
lang 言語コードを設定します。 |
3 |
xml:lang 言語コードを設定します。 |