language_attributes( string $doctype = ‘html’ )

Displays the language attributes for the ‘html’ tag.

Description

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

Parameters

$doctypestringoptional
The type of HTML document. Accepts 'xhtml' or 'html'. Default 'html'.

Default:'html'

Source

function language_attributes( $doctype = 'html' ) {
	echo get_language_attributes( $doctype );
}

Changelog

VersionDescription
4.3.0Converted into a wrapper for get_language_attributes() .
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.