tag() public static method
Generates a complete HTML tag. See also:
beginTag()
endTag()
public static string tag ( $name, $content = '', $options = [] )$name
string|boolean|null
The tag name. If $name is null or false, the corresponding content will be rendered without any tag. $content string
The content to be enclosed between the start and end tags. It will not be HTML-encoded. If this is coming from end users, you should consider encode() it to prevent XSS attacks. $options array