HTML
31 nodes
On this page 31
Add Class
FunctionAn element with one more class - the same element, so it can be wired on.
AddClass(element: HTML Element, name: Text) -> HTML Element
HtmlElement AddClass(HtmlElement element, string name = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| element | HTML Element | — | The element. |
| name | Text | — | The class. |
Returns
| Element | HTML Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Add Style
FunctionAn element with one more CSS declaration in its inline style - the same element, so it can be wired on.
AddStyle -> HTML Element
element: HTML Element
property: Text
value: TextHtmlElement AddStyle(
HtmlElement element,
string property = "",
string value = "")Parameters
| name | type | default | description |
|---|---|---|---|
| element | HTML Element | — | The element. |
| property | Text | — | The CSS property: color, margin, font-weight. |
| value | Text | — | Its value: teal, 1em, bold. |
Returns
| Element | HTML Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Attribute
FunctionAn element with an attribute of the given name set to the value - the same element, so it can be wired on. Given twice, a name keeps its last value.
Attribute -> HTML Element
element: HTML Element
name: Text
value: TextHtmlElement Attribute(
HtmlElement element,
string name = "",
string value = "")Parameters
| name | type | default | description |
|---|---|---|---|
| element | HTML Element | — | The element. |
| name | Text | — | The attribute's name: data-id, aria-label, lang. |
| value | Text | — | Its value. |
Returns
| Element | HTML Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Body
FunctionA page's body: what the page shows, in the order its pieces are wired in.
Body(content: HTML Node Array) -> HTML Body
HtmlBody Body(HtmlNode[] content)
Parameters
| name | type | default | description |
|---|---|---|---|
| content | HTML Node Array | — | The pieces the page shows. |
Returns
| Body | HTML Body |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Button
FunctionA button: one that sends its form, puts it back as it started, or does nothing of its own.
Button(text: Text, kind: HTML Button Kind) -> HTML Button
HtmlButton Button(
string text = "Submit",
HtmlButtonKind kind = HtmlButtonKind.Submit)Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | Submit | The button's words. |
| kind | HTML Button Kind | Submit | What it does when pressed. |
Returns
| Button | HTML Button |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Division
FunctionA division: a box around the pieces wired into it, for a class or a style to lay out.
Division(content: HTML Node Array) -> HTML Element
HtmlElement Division(HtmlNode[] content)
Parameters
| name | type | default | description |
|---|---|---|---|
| content | HTML Node Array | — | The pieces inside it. |
Returns
| Division | HTML Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Document
FunctionA whole page: its head and its body.
Document -> HTML Document
head: HTML Head
body: HTML Body
language: TextHtmlDocument Document(
HtmlHead head,
HtmlBody body,
string language = "en")Parameters
| name | type | default | description |
|---|---|---|---|
| head | HTML Head | — | The page's head: its title and stylesheets. |
| body | HTML Body | — | The page's body: what it shows. |
| language | Text | en | The language the page is written in, as a language code: en, zh, fr. |
Returns
| Page | HTML Document |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Element
FunctionAn element of any tag - article, nav, footer, strong, em, code - for whatever no other node makes.
Element -> HTML Element
tag: Text
text: Text
content: HTML Node ArrayHtmlElement Element(
string tag = "div",
string text = "",
HtmlNode[] content)Parameters
| name | type | default | description |
|---|---|---|---|
| tag | Text | div | The tag: letters, digits and hyphens, starting with a letter. |
| text | Text | — | Its words. |
| content | HTML Node Array | — | Pieces after its words. |
Returns
| Element | HTML Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Form
FunctionA form: the fields wired into it, sent to an address when it is submitted.
Form(action: Text, fields: HTML Node Array) -> HTML Form
HtmlForm Form(string action = "", HtmlNode[] fields)
Parameters
| name | type | default | description |
|---|---|---|---|
| action | Text | — | Where the form is sent; empty for the page's own address. |
| fields | HTML Node Array | — | The fields and buttons, in order. |
Returns
| Form | HTML Form |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Head
FunctionA page's head: its title, shown on the browser's tab, and the stylesheets and whatever else is wired into it.
Head(title: Text, content: HTML Node Array) -> HTML Head
HtmlHead Head(string title = "", HtmlNode[] content)
Parameters
| name | type | default | description |
|---|---|---|---|
| title | Text | — | The page's title. |
| content | HTML Node Array | — | Stylesheets, and anything else a head holds. |
Returns
| Head | HTML Head |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Heading
FunctionA heading: level 1 for the page's own, 2 for a section's, down to 6.
Heading -> HTML Heading
text: Text
level: Integer
content: HTML Node ArrayHtmlHeading Heading(
string text = "",
int level = 1,
HtmlNode[] content)Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | The heading's words. |
| level | Integer | 1 | 1 to 6. |
| content | HTML Node Array | — | Pieces after its words: a link, a span. |
Returns
| Heading | HTML Heading |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Image
FunctionAn image, by its address, with the words that stand for it where it cannot be seen.
Image(source: Text, description: Text) -> HTML Image
HtmlImage Image(string source = "", string description = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| source | Text | — | The image's address: a web address, or a file beside the page. |
| description | Text | — | What the image shows, in words. |
Returns
| Image | HTML Image |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Input
FunctionAn input field: a line of text, an email address, a number, a date, a box to tick - with the words that say what it is for.
Input -> HTML Input
kind: HTML Input Kind
name: Text
label: TextHtmlInput Input(
HtmlInputKind kind = HtmlInputKind.Text,
string name = "",
string label = "")Parameters
| name | type | default | description |
|---|---|---|---|
| kind | HTML Input Kind | Text | What the field takes. |
| name | Text | — | The name its value is sent under. |
| label | Text | — | The words beside it. |
Returns
| Input | HTML Input |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Link
FunctionA link: words - or any pieces wired into it - that open an address when clicked.
Link -> HTML Link
address: Text
text: Text
content: HTML Node ArrayHtmlLink Link(
string address = "",
string text = "",
HtmlNode[] content)Parameters
| name | type | default | description |
|---|---|---|---|
| address | Text | — | Where it goes: a web address, a file beside the page, or #id for an element on it. |
| text | Text | — | The link's words. |
| content | HTML Node Array | — | Pieces after its words: an image, a span. |
Returns
| Link | HTML Link |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
List
FunctionA list of the pieces wired into it, each an item - bulleted, or numbered.
List(items: HTML Node Array, numbered: Truth) -> HTML List
HtmlList List(HtmlNode[] items, bool numbered = false)
Parameters
| name | type | default | description |
|---|---|---|---|
| items | HTML Node Array | — | The items, in order; a piece that is not a list item is put in one. |
| numbered | Truth | False | Whether the items are numbered. |
Returns
| List | HTML List |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
List Item
FunctionOne item of a list: its words, then any pieces wired into it.
ListItem(text: Text, content: HTML Node Array) -> HTML Element
HtmlElement ListItem(string text = "", HtmlNode[] content)
Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | The item's words. |
| content | HTML Node Array | — | Pieces after its words. |
Returns
| Item | HTML Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
List of Texts
FunctionA list whose items are the given words, one item each.
ListOfTexts(items: Text Array, numbered: Truth) -> HTML List
HtmlList ListOfTexts(string[] items, bool numbered = false)
Parameters
| name | type | default | description |
|---|---|---|---|
| items | Text Array | — | Each item's words, in order. |
| numbered | Truth | False | Whether the items are numbered. |
Returns
| List | HTML List |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Paragraph
FunctionA paragraph: its words, then any pieces wired into it - a link, a span, an image - which run on in its line.
Paragraph(text: Text, content: HTML Node Array) -> HTML Element
HtmlElement Paragraph(string text = "", HtmlNode[] content)
Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | The paragraph's words. |
| content | HTML Node Array | — | Pieces after its words. |
Returns
| Paragraph | HTML Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Raw HTML
FunctionHTML put into the page exactly as written, for markup no node makes.
RawHtml(markup: Text) -> Raw HTML
HtmlRaw RawHtml(string markup = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| markup | Text | — | The HTML. |
Returns
| HTML | Raw HTML |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Save Page
FunctionWrites a page to a file as UTF-8, making the folder it goes in.
Save(page: HTML Document, path: Text)
void Save(HtmlDocument page, string path = "Page.html")
Parameters
| name | type | default | description |
|---|---|---|---|
| page | HTML Document | — | The page. |
| path | Text | Page.html | The file: a full path, or one relative to the folder the document runs in. |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Section
FunctionA section of the page: a part of it with a heading of its own, around the pieces wired into it.
Section(content: HTML Node Array) -> HTML Element
HtmlElement Section(HtmlNode[] content)
Parameters
| name | type | default | description |
|---|---|---|---|
| content | HTML Node Array | — | The section's pieces. |
Returns
| Section | HTML Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Select
FunctionA drop-down of choices, with the words that say what it is for.
Select -> HTML Select
name: Text
options: Text Array
label: TextHtmlSelect Select(
string name = "",
string[] options,
string label = "")Parameters
| name | type | default | description |
|---|---|---|---|
| name | Text | — | The name the choice is sent under. |
| options | Text Array | — | The choices, in the order shown. |
| label | Text | — | The words beside it. |
Returns
| Select | HTML Select |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Span
FunctionA run of words inside a line - a paragraph's, a heading's - that a class or a style can pick out.
Span(text: Text, content: HTML Node Array) -> HTML Element
HtmlElement Span(string text = "", HtmlNode[] content)
Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | Its words. |
| content | HTML Node Array | — | Pieces after its words. |
Returns
| Span | HTML Element |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Stylesheet
FunctionA stylesheet written into the page's head: CSS rules for its elements by tag, .class and #id.
Stylesheet(rules: Text) -> HTML Stylesheet
HtmlStylesheet Stylesheet(string rules = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| rules | Text | — | The CSS rules: h1 { color: teal; }. |
Returns
| Stylesheet | HTML Stylesheet |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Stylesheet Link
FunctionA stylesheet in a file of its own, linked from the page's head by its address.
StylesheetLink(address: Text) -> HTML Stylesheet Link
HtmlStylesheetLink StylesheetLink(string address = "style.css")
Parameters
| name | type | default | description |
|---|---|---|---|
| address | Text | style.css | The stylesheet's address: a web address, or a file beside the page. |
Returns
| Stylesheet | HTML Stylesheet Link |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Table
FunctionA table: column headings over the rows wired into it.
Table -> HTML Table
header: Text Array
rows: HTML Table Row ArrayHtmlTable Table(string[] header, HtmlTableRow[] rows)
Parameters
| name | type | default | description |
|---|---|---|---|
| header | Text Array | — | The column headings, left to right. |
| rows | HTML Table Row Array | — | The rows, top to bottom. |
Returns
| Table | HTML Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Table from Columns
FunctionA table made from columns of data: one list per column, each wired into Columns in order - names, numbers, truths, dates - and a row for each position down them. A number is written as it reads in a box, with a dot and its digits in full; a column shorter than the rest leaves its cells empty.
TableFromColumns -> HTML Table
header: Text Array
columns: Array ArrayHtmlTable TableFromColumns(string[] header, Array[] columns)
Parameters
| name | type | default | description |
|---|---|---|---|
| header | Text Array | — | The column headings, left to right. |
| columns | Array Array | — | The columns, one list each, left to right. |
Returns
| Table | HTML Table |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Table Row
FunctionOne row of a table: its cells' words, left to right.
TableRow(cells: Text Array) -> HTML Table Row
HtmlTableRow TableRow(string[] cells)
Parameters
| name | type | default | description |
|---|---|---|---|
| cells | Text Array | — | The cells, left to right. |
Returns
| Row | HTML Table Row |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Text
FunctionText, written as it is: a < reads as a <, never as a tag.
Text(text: Text) -> HTML Text
HtmlText Text(string text = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| text | Text | — | The text. |
Returns
| Text | HTML Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
Text Area
FunctionA box for several lines of text, with the words that say what it is for.
TextArea(name: Text, label: Text) -> HTML Text Area
HtmlTextArea TextArea(string name = "", string label = "")
Parameters
| name | type | default | description |
|---|---|---|---|
| name | Text | — | The name its text is sent under. |
| label | Text | — | The words beside it. |
Returns
| Text Area | HTML Text Area |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications
To HTML
FunctionA page - or any piece of one - as HTML text: a whole page starts with its doctype.
ToHtml(page: HTML Node) -> Text
string ToHtml(HtmlNode page)
Parameters
| name | type | default | description |
|---|---|---|---|
| page | HTML Node | — | The page, or any piece of one. |
Returns
| HTML | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- HTML
- Package
- Web Applications