Creates an attribute string using the specified name and value.

Syntax

Smartsite SXML CopyCode image Copy Code
string html.attribute(string name, string value)

Parameters

Name Data Type Description
name String The attribute name.
value String The value.

Return Value

Data Type Description
String A string representing an HTML attribute pair.

Expand image Example

SXML