Gets or sets the HTML attributes of this style.

[VBScript]
Public Property Attributes As String
[JScript]
public function get Attributes() : String;
public function set Attributes(String);

Property Value

A string representing one or more HTML attributes. An attribute must be in the form name=value or name. The attribute value must be enclosed in single or double quotes if it contains characters other than alphanumeric characters. The attribute name/value pairs must be separated by spaces.

Example

To add the attributes width, height, and alt, and to remove the attribute style from an HTML tag, set the attribute to the following string:

style width=16 height=16 alt="An alternate text"

See Also

Style Object | Style Members | HelpProducer Namespace