• サイトデザイン工事中です。ご意見をお寄せください
  • 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細

このWikiはいつでも誰でも編集できます

テンプレートタグ/language attributes

提供:WordPress Codex 日本語版
移動: 案内, 検索

このページ「テンプレートタグ/language attributes」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています

情報募集中 このテンプレートタグの説明やコードの書き方、活用例参考になるページがあったら、他のWordPressユーザのためにどんどん書き込みましょう! 該当部分を編集するか、このページのノートまたはフォーラム等で教えてください。

目次

説明

Display the language attributes for the <html> tag.

Builds up a set of html attributes containing the text direction and language information for the page.

書き方

<?php language_attributes( $doctype ) ?>

パラメータ

$doctype
string) (optional) The type of html document 'xhtml' or 'html'.
初期値: 'html'

Return Values

(void) 
This function does not return a value.

用例

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
...

(from wp-content/themes/twentyten/header.php)


Notes

Changelog

Since: 2.1.0

Source File

language_attributes() is located in wp-includes/general-template.php.

関連ページ

外部資料

関連

wp_title, get_posts, query_posts, the_search_query


最新英語版: WordPress Codex » Function Reference/language attributes最新版との差分

個人用ツール
名前空間
変種
操作
このサイトについて
特集
サーバ別情報
リファレンス
ドキュメント整備
ツールボックス
他の言語