Documentation

ShowHead

CMain::ShowHead(
 bool bXhtmlStyle = true
);

The method is used to sel ect main fields of the <head> tag in the site template: Content-Type meta tags, robots, keywords, description; CSS styles; scripts, specified via CMain::AddHeadScript. Non-static method.

Parameters

ParameterDescription Available fr om version
bXhtmlStyleThis parameter defines the standard of HTML tags. If true, the tags are displayed according to the XHTML standard (<meta />), otherwise, the HTML 4 standard is used (<meta>). This parameter was introduced in the kernel version 8.5.3. Optional, by default the value is true.8.5.3

Returned value

None.

Examples of use

<head>
<?$APPLICATION->ShowHead();?>
<title><?$APPLICATION->ShowTitle()?></title>
</head>


© «Bitrix24», 2001-2024
Up