name
addAttribute ( )
import prohtml.*;

StandAloneElement standAlone;

void setup(){
  standAlone = new StandAloneElement("img",null);
  standAlone.addAttribute("scr","images/getAttribute");
  println(standAlone.getAttribute("scr"));
}
description
Use this method to add an attribute to the element.
syntax
addAttribute(key, value);
parameters
key
String, the key of the attribute
value
String, the value of the attribute
returns
None
usage
Web & Application
related