src/Helpers/Request/HtmlHelper.php
public function beginTag($name, $options = [], $encoding = null)
    {
        return $this->proxyWithCharset(__FUNCTION__, [$name, $options, $encoding]);
    }
public function beginTag($name, $options = [], $encoding = null)
    {
        return $this->proxyWithCharset(__FUNCTION__, [$name, $options, $encoding]);
    }
Generates a start tag.
@param string|bool|null $name the tag name. If $name is `null` or `false`, the corresponding content will be rendered without any tag.
@param array $options the tag options in terms of name-value pairs. These will be rendered as
the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
If a value is null, the corresponding attribute will not be rendered.
See [[renderTagAttributes()]] for details on how attributes are being rendered.
@param string           $encoding
@return string the generated start tag
@see endTag()
@see tag()
@see Html::beginTag()