Skip to content
ExamplesOpen editor ↗

bopaElementeYaHTML

→ createElement()

Creates an HTML element.

bopaElementeYaHTML(tag, [mokwalo])

Returns a native element wrapper. Use the receiver helpers to read or update it. HTML tag, attribute and CSS names remain standard browser vocabulary.

NameTypeDescription
tagmokwaloHTML tag name, unchanged.
mokwalo (optional)mokwaloDisplayed text or HTML.
Creates an HTML element.
tiro setaLoeto() {
  tlosaKanefase();
  bopaElementeYaHTML("h3", "Dumela!");
}

bopaTemana, dirisaMoGo