src/helpers/BaseHtml.php
public static function beginTag($name, $options = [])
    {
        if ($name === null || $name === false) {
            return '';
        }

        return '<' . $name . static::renderTagAttributes($options) . '>';
    }
public static function beginTag($name, $options = [])
    {
        if ($name === null || $name === false) {
            return '';
        }

        return '<' . $name . static::renderTagAttributes($options) . '>';
    }
public static function beginTag ( $ name , $ options = [ ] ) { if ( $ name === null || $ name === false ) { return '' ; } return '<' . $ name . static :: renderTagAttributes ( $ options ) . '>' ; }
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.
@return string the generated start tag
@see endTag()
@see tag()
Generates a start tag .