Package app

import "github.com/maxence-charriere/go-app/v7/pkg/app"
Overview
Index
Subdirectories

Overview ▾

Package app is a package to build progressive web apps (PWA) with Go programming language and WebAssembly. It uses a declarative syntax that allows creating and dealing with HTML elements only by using Go, and without writing any HTML markup. The package also provides an http.handler ready to serve all the required resources to run Go-based progressive web apps.

Index ▾

Variables
func CopyBytesToGo(dst []byte, src Value) int
func CopyBytesToJS(dst Value, src []byte) int
func Dispatch(f func())
func GenerateStaticWebsite(dir string, h *Handler, pages ...string) error
func Getenv(k string) string
func KeepBodyClean() (close func())
func Log(format string, v ...interface{})
func Navigate(rawurl string)
func NewContextMenu(menuItems ...MenuItemNode)
func Reload()
func Route(path string, node UI)
func RouteWithRegexp(pattern string, node UI)
func Run()
func StaticResource(path string) string
func TestMatch(tree UI, d TestUIDescriptor) error
func TestPath(p ...int) []int
type BrowserStorage
type BrowserWindow
    func Window() BrowserWindow
type Compo
    func (c *Compo) JSValue() Value
    func (c *Compo) Kind() Kind
    func (c *Compo) Mounted() bool
    func (c *Compo) Render() UI
    func (c *Compo) Update()
type Composer
type Condition
    func If(expr bool, elems ...UI) Condition
type Context
type Dismounter
type Dispatcher
type Environment
type Event
    func (e Event) PreventDefault()
type EventHandler
type Func
    func FuncOf(fn func(this Value, args []Value) interface{}) Func
type HTMLA
    func A() HTMLA
type HTMLAbbr
    func Abbr() HTMLAbbr
type HTMLAddress
    func Address() HTMLAddress
type HTMLArea
    func Area() HTMLArea
type HTMLArticle
    func Article() HTMLArticle
type HTMLAside
    func Aside() HTMLAside
type HTMLAudio
    func Audio() HTMLAudio
type HTMLB
    func B() HTMLB
type HTMLBase
    func Base() HTMLBase
type HTMLBdi
    func Bdi() HTMLBdi
type HTMLBdo
    func Bdo() HTMLBdo
type HTMLBlockquote
    func Blockquote() HTMLBlockquote
type HTMLBody
    func Body() HTMLBody
type HTMLBr
    func Br() HTMLBr
type HTMLButton
    func Button() HTMLButton
type HTMLCanvas
    func Canvas() HTMLCanvas
type HTMLCaption
    func Caption() HTMLCaption
type HTMLCite
    func Cite() HTMLCite
type HTMLCode
    func Code() HTMLCode
type HTMLCol
    func Col() HTMLCol
type HTMLColGroup
    func ColGroup() HTMLColGroup
type HTMLData
    func Data() HTMLData
type HTMLDataList
    func DataList() HTMLDataList
type HTMLDd
    func Dd() HTMLDd
type HTMLDel
    func Del() HTMLDel
type HTMLDetails
    func Details() HTMLDetails
type HTMLDfn
    func Dfn() HTMLDfn
type HTMLDialog
    func Dialog() HTMLDialog
type HTMLDiv
    func Div() HTMLDiv
type HTMLDl
    func Dl() HTMLDl
type HTMLDt
    func Dt() HTMLDt
type HTMLEm
    func Em() HTMLEm
type HTMLEmbed
    func Embed() HTMLEmbed
type HTMLFieldSet
    func FieldSet() HTMLFieldSet
type HTMLFigCaption
    func FigCaption() HTMLFigCaption
type HTMLFigure
    func Figure() HTMLFigure
type HTMLFooter
    func Footer() HTMLFooter
type HTMLForm
    func Form() HTMLForm
type HTMLH1
    func H1() HTMLH1
type HTMLH2
    func H2() HTMLH2
type HTMLH3
    func H3() HTMLH3
type HTMLH4
    func H4() HTMLH4
type HTMLH5
    func H5() HTMLH5
type HTMLH6
    func H6() HTMLH6
type HTMLHead
    func Head() HTMLHead
type HTMLHeader
    func Header() HTMLHeader
type HTMLHr
    func Hr() HTMLHr
type HTMLHtml
    func Html() HTMLHtml
type HTMLI
    func I() HTMLI
type HTMLIFrame
    func IFrame() HTMLIFrame
type HTMLImg
    func Img() HTMLImg
type HTMLInput
    func Input() HTMLInput
type HTMLIns
    func Ins() HTMLIns
type HTMLKbd
    func Kbd() HTMLKbd
type HTMLLabel
    func Label() HTMLLabel
type HTMLLegends
    func Legends() HTMLLegends
type HTMLLi
    func Li() HTMLLi
type HTMLLink
    func Link() HTMLLink
type HTMLMain
    func Main() HTMLMain
type HTMLMap
    func Map() HTMLMap
type HTMLMark
    func Mark() HTMLMark
type HTMLMeta
    func Meta() HTMLMeta
type HTMLMeter
    func Meter() HTMLMeter
type HTMLNav
    func Nav() HTMLNav
type HTMLNoScript
    func NoScript() HTMLNoScript
type HTMLObject
    func Object() HTMLObject
type HTMLOl
    func Ol() HTMLOl
type HTMLOptGroup
    func OptGroup() HTMLOptGroup
type HTMLOption
    func Option() HTMLOption
type HTMLOutput
    func Output() HTMLOutput
type HTMLP
    func P() HTMLP
type HTMLParam
    func Param() HTMLParam
type HTMLPicture
    func Picture() HTMLPicture
type HTMLPre
    func Pre() HTMLPre
type HTMLProgress
    func Progress() HTMLProgress
type HTMLQ
    func Q() HTMLQ
type HTMLRp
    func Rp() HTMLRp
type HTMLRt
    func Rt() HTMLRt
type HTMLRuby
    func Ruby() HTMLRuby
type HTMLS
    func S() HTMLS
type HTMLSamp
    func Samp() HTMLSamp
type HTMLScript
    func Script() HTMLScript
type HTMLSection
    func Section() HTMLSection
type HTMLSelect
    func Select() HTMLSelect
type HTMLSmall
    func Small() HTMLSmall
type HTMLSource
    func Source() HTMLSource
type HTMLSpan
    func Span() HTMLSpan
type HTMLStrong
    func Strong() HTMLStrong
type HTMLStyle
    func Style() HTMLStyle
type HTMLSub
    func Sub() HTMLSub
type HTMLSummary
    func Summary() HTMLSummary
type HTMLSup
    func Sup() HTMLSup
type HTMLTBody
    func TBody() HTMLTBody
type HTMLTHead
    func THead() HTMLTHead
type HTMLTable
    func Table() HTMLTable
type HTMLTd
    func Td() HTMLTd
type HTMLTemplate
    func Template() HTMLTemplate
type HTMLTextarea
    func Textarea() HTMLTextarea
type HTMLTfoot
    func Tfoot() HTMLTfoot
type HTMLTh
    func Th() HTMLTh
type HTMLTime
    func Time() HTMLTime
type HTMLTitle
    func Title() HTMLTitle
type HTMLTr
    func Tr() HTMLTr
type HTMLU
    func U() HTMLU
type HTMLUl
    func Ul() HTMLUl
type HTMLVar
    func Var() HTMLVar
type HTMLVideo
    func Video() HTMLVideo
type HTMLWbr
    func Wbr() HTMLWbr
type Handler
    func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Icon
type Kind
    func (k Kind) String() string
type MenuItemNode
    func MenuItem() MenuItemNode
type Mounter
type Navigator
type RangeLoop
    func Range(src interface{}) RangeLoop
type ResourceProvider
    func GitHubPages(repoName string) ResourceProvider
    func LocalDir(path string) ResourceProvider
    func RemoteBucket(url string) ResourceProvider
type TestUIDescriptor
type Type
type UI
    func FilterUIElems(uis ...UI) []UI
    func Raw(v string) UI
    func Text(v interface{}) UI
type UIFlow
    func Flow() UIFlow
type UIShell
    func Shell() UIShell
type UIStack
    func Stack() UIStack
type Value
    func Null() Value
    func Undefined() Value
    func ValueOf(x interface{}) Value
type Wrapper

Package files

app.go app_nowasm.go component.go concurrency.go condition.go context.go contextmenu.go element.go flow.go html.go http.go js.go js_nowasm.go log.go node.go notfound.go range.go raw.go resource.go route.go scripts.go shell.go stack.go static.go storage.go storage_nowasm.go strings.go testing.go text.go

Variables

var (
    // DefaultLogger is the logger used to log info and errors.
    DefaultLogger func(format string, v ...interface{}) = log
)

func CopyBytesToGo

func CopyBytesToGo(dst []byte, src Value) int

CopyBytesToGo copies bytes from the Uint8Array src to dst. It returns the number of bytes copied, which will be the minimum of the lengths of src and dst.

CopyBytesToGo panics if src is not an Uint8Array.

func CopyBytesToJS

func CopyBytesToJS(dst Value, src []byte) int

CopyBytesToJS copies bytes from src to the Uint8Array dst. It returns the number of bytes copied, which will be the minimum of the lengths of src and dst.

CopyBytesToJS panics if dst is not an Uint8Array.

func Dispatch

func Dispatch(f func())

Dispatch executes the given function on the UI goroutine.

func GenerateStaticWebsite

func GenerateStaticWebsite(dir string, h *Handler, pages ...string) error

GenerateStaticWebsite generates the files to run a PWA built with go-app as a static website in the specified directory. Static websites can be used with hosts such as Github Pages.

Note that app.wasm must still be built separately and put into the web directory.

func Getenv

func Getenv(k string) string

Getenv retrieves the value of the environment variable named by the key. It returns the value, which will be empty if the variable is not present.

func KeepBodyClean

func KeepBodyClean() (close func())

KeepBodyClean prevents third-party Javascript libraries to add nodes to the body element.

func Log

func Log(format string, v ...interface{})

Log logs according to a format specifier using the default logger.

func Navigate(rawurl string)

Navigate navigates to the given URL.

func NewContextMenu

func NewContextMenu(menuItems ...MenuItemNode)

NewContextMenu displays a context menu filled with the given menu items.

func Reload

func Reload()

Reload reloads the current page.

func Route

func Route(path string, node UI)

Route binds the requested path to the given UI node.

func RouteWithRegexp

func RouteWithRegexp(pattern string, node UI)

RouteWithRegexp binds the regular expression pattern to the given UI node. Patterns use the Go standard regexp format.

func Run

func Run()

Run starts the wasm app and displays the UI node associated with the requested URL path.

It panics if Go architecture is not wasm.

func StaticResource

func StaticResource(path string) string

StaticResource makes a static resource path point to the right location whether the root directory is remote or not.

Static resources are resources located in the web directory.

This call is used internally to resolve paths within Cite, Data, Href, Src, and SrcSet. Paths already resolved are skipped.

func TestMatch

func TestMatch(tree UI, d TestUIDescriptor) error

TestMatch looks for the element targeted by the descriptor in the given tree and reports whether it matches with the expected element.

Eg:

tree := app.Div().Body(
    app.H2().Body(
        app.Text("foo"),
    ),
    app.P().Body(
        app.Text("bar"),
    ),
)

// Testing root:
err := app.TestMatch(tree, app.TestUIDescriptor{
    Path:     TestPath(),
    Expected: app.Div(),
})
// OK => err == nil

// Testing h2:
err := app.TestMatch(tree, app.TestUIDescriptor{
    Path:     TestPath(0),
    Expected: app.H3(),
})
// KO => err != nil because we ask h2 to match with h3

// Testing text from p:
err = app.TestMatch(tree, app.TestUIDescriptor{
    Path:     TestPath(1, 0),
    Expected: app.Text("bar"),
})
// OK => err == nil

func TestPath

func TestPath(p ...int) []int

TestPath is a helper function that returns a path to use in a TestUIDescriptor.

type BrowserStorage

BrowserStorage is the interface that describes a web browser storage.

type BrowserStorage interface {
    // Set sets the value to the given key. The value must be json convertible.
    Set(k string, v interface{}) error

    // Get gets the item associated to the given key and store it in the given
    // value.
    // It returns an error if v is not a pointer.
    Get(k string, v interface{}) error

    // Del deletes the item associated with the given key.
    Del(k string)

    // Clear deletes all items.
    Clear()
}
var (
    // LocalStorage is a storage that uses the browser local storage associated
    // to the document origin. Data stored has no expiration time.
    LocalStorage BrowserStorage

    // SessionStorage is a storage that uses the browser session storage
    // associated to the document origin. Data stored expire when the page
    // session ends.
    SessionStorage BrowserStorage
)

type BrowserWindow

BrowserWindow is the interface that describes the browser window.

type BrowserWindow interface {
    Value

    // The window current url (window.location.href).
    URL() *url.URL

    // The window size.
    Size() (w, h int)

    // The position of the cursor (mouse or touch).
    CursorPosition() (x, y int)

    // Returns the HTML element with the id property that matches the given id.
    GetElementByID(id string) Value

    // Scrolls to the HTML element with the given id.
    ScrollToID(id string)

    // AddEventListener subscribes a given handler to the specified event. It
    // returns a function that must be called to unsubscribe the handler and
    // release allocated resources.
    AddEventListener(event string, h EventHandler) func()
    // contains filtered or unexported methods
}

func Window

func Window() BrowserWindow

Window returns the JavaScript "window" object.

type Compo

Compo represents the base struct to use in order to build a component.

type Compo struct {
    // contains filtered or unexported fields
}

func (*Compo) JSValue

func (c *Compo) JSValue() Value

JSValue returns the javascript value of the component root.

func (*Compo) Kind

func (c *Compo) Kind() Kind

Kind returns the ui element kind.

func (*Compo) Mounted

func (c *Compo) Mounted() bool

Mounted reports whether the component is mounted.

func (*Compo) Render

func (c *Compo) Render() UI

Render describes the component content. This is a default implementation to satisfy the app.Composer interface. It should be redefined when app.Compo is embedded.

func (*Compo) Update

func (c *Compo) Update()

Update triggers a component appearance update. It should be called when a field used to render the component has been modified. Updates are always performed on the UI goroutine.

type Composer

Composer is the interface that describes a customized, independent and reusable UI element.

Satisfying this interface is done by embedding app.Compo into a struct and implementing the Render function.

Example:

type Hello struct {
    app.Compo
}

func (c *Hello) Render() app.UI {
    return app.Text("hello")
}
type Composer interface {
    UI

    // Render returns the node tree that define how the component is desplayed.
    Render() UI

    // Update update the component appearance. It should be called when a field
    // used to render the component has been modified.
    Update()
}

type Condition

Condition represents a control structure that displays nodes depending on a given expression.

type Condition interface {
    UI

    // ElseIf sets the condition with the given nodes if previous expressions
    // were not met and given expression is true.
    ElseIf(expr bool, elems ...UI) Condition

    // Else sets the condition with the given UI elements if previous
    // expressions were not met.
    Else(elems ...UI) Condition
}

func If

func If(expr bool, elems ...UI) Condition

If returns a condition that filters the given elements according to the given expression.

type Context

Context represents a context that is tied to a UI element. It is canceled when the element is dismounted.

It implements the context.Context interface.

https://golang.org/pkg/context/#Context
type Context struct {
    context.Context

    // The UI element tied to the context.
    Src UI

    // The JavaScript value of the element tied to the context. This is a
    // shorthand for:
    //  ctx.Src.JSValue()
    JSSrc Value
}

type Dismounter

Dismounter is the interface that describes a component that can perform additional actions when dismounted.

type Dismounter interface {
    Composer

    // The function that is called when the component is dismounted. It is
    // always called on the UI goroutine.
    OnDismount()
}

type Dispatcher

Dispatcher is a function that executes the given function on the goroutine dedicated to UI.

type Dispatcher func(func())

type Environment

Environment describes the environment variables to pass to the progressive web app.

type Environment map[string]string

type Event

Event is the interface that describes a javascript event.

type Event struct {
    Value
}

func (Event) PreventDefault

func (e Event) PreventDefault()

PreventDefault cancels the event if it is cancelable. The default action that belongs to the event will not occur.

type EventHandler

EventHandler represents a function that can handle HTML events. They are always called on the UI goroutine.

type EventHandler func(ctx Context, e Event)

type Func

Func is the interface that describes a wrapped Go function to be called by JavaScript.

type Func interface {
    Value

    // Release frees up resources allocated for the function. The function must
    // not be invoked after calling Release.
    Release()
}

func FuncOf

func FuncOf(fn func(this Value, args []Value) interface{}) Func

FuncOf returns a wrapped function.

Invoking the JavaScript function will synchronously call the Go function fn with the value of JavaScript's "this" keyword and the arguments of the invocation. The return value of the invocation is the result of the Go function mapped back to JavaScript according to ValueOf.

A wrapped function triggered during a call from Go to JavaScript gets executed on the same goroutine. A wrapped function triggered by JavaScript's event loop gets executed on an extra goroutine. Blocking operations in the wrapped function will block the event loop. As a consequence, if one wrapped function blocks, other wrapped funcs will not be processed. A blocking function should therefore explicitly start a new goroutine.

Func.Release must be called to free up resources when the function will not be used any more.

type HTMLA

HTMLA is the interface that describes a <a> HTML element.

type HTMLA interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLA

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLA

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLA

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLA

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLA

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLA

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLA

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLA

    // Download specifies that the target will be downloaded when a user clicks on the hyperlink.
    Download(v bool) HTMLA

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLA

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLA

    // Href specifies the URL of the page the link goes to.
    Href(v string) HTMLA

    // HrefLang specifies the language of the linked document.
    HrefLang(v string) HTMLA

    // ID specifies a unique id for an element.
    ID(v string) HTMLA

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLA

    // Media specifies what media/device the linked document is optimized for.
    Media(v string) HTMLA

    // Ping specifies a list of URLs to be notified if the user follows the hyperlink.
    Ping(v string) HTMLA

    // Rel specifies the relationship between the current document and the linked document.
    Rel(v string) HTMLA

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLA

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLA

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLA

    // Target specifies the target for where to open the linked document or where to submit the form.
    Target(v string) HTMLA

    // Title specifies extra information about an element.
    Title(v string) HTMLA

    // Type specifies the type of element.
    Type(v string) HTMLA

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLA

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLA

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLA

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLA

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLA

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLA

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLA

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLA

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLA

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLA

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLA

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLA

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLA

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLA

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLA

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLA

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLA

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLA

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLA

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLA

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLA

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLA

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLA

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLA

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLA

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLA

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLA

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLA

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLA

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLA

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLA

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLA
}

func A

func A() HTMLA

A returns an HTML element that defines a hyperlink.

type HTMLAbbr

HTMLAbbr is the interface that describes a <abbr> HTML element.

type HTMLAbbr interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLAbbr

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLAbbr

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLAbbr

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLAbbr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLAbbr

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLAbbr

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLAbbr

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLAbbr

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLAbbr

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLAbbr

    // ID specifies a unique id for an element.
    ID(v string) HTMLAbbr

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLAbbr

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLAbbr

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLAbbr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLAbbr

    // Title specifies extra information about an element.
    Title(v string) HTMLAbbr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLAbbr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLAbbr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLAbbr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLAbbr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLAbbr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLAbbr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLAbbr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLAbbr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLAbbr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLAbbr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLAbbr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLAbbr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLAbbr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLAbbr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLAbbr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLAbbr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLAbbr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLAbbr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLAbbr

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLAbbr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLAbbr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLAbbr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLAbbr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLAbbr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLAbbr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLAbbr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLAbbr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLAbbr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLAbbr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLAbbr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLAbbr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLAbbr
}

func Abbr

func Abbr() HTMLAbbr

Abbr returns an HTML element that defines an abbreviation or an acronym.

type HTMLAddress

HTMLAddress is the interface that describes a <address> HTML element.

type HTMLAddress interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLAddress

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLAddress

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLAddress

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLAddress

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLAddress

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLAddress

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLAddress

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLAddress

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLAddress

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLAddress

    // ID specifies a unique id for an element.
    ID(v string) HTMLAddress

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLAddress

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLAddress

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLAddress

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLAddress

    // Title specifies extra information about an element.
    Title(v string) HTMLAddress

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLAddress

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLAddress

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLAddress

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLAddress

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLAddress

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLAddress

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLAddress

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLAddress

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLAddress

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLAddress

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLAddress

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLAddress

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLAddress

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLAddress

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLAddress

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLAddress

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLAddress

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLAddress

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLAddress

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLAddress

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLAddress

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLAddress

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLAddress

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLAddress

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLAddress

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLAddress

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLAddress

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLAddress

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLAddress

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLAddress

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLAddress

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLAddress
}

func Address

func Address() HTMLAddress

Address returns an HTML element that defines contact information for the author/owner of a document.

type HTMLArea

HTMLArea is the interface that describes a <area> HTML element.

type HTMLArea interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLArea

    // Alt specifies an alternate text when the original element fails to display.
    Alt(v string) HTMLArea

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLArea

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLArea

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLArea

    // Coords specifies the coordinates of the area.
    Coords(v string) HTMLArea

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLArea

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLArea

    // Download specifies that the target will be downloaded when a user clicks on the hyperlink.
    Download(v bool) HTMLArea

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLArea

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLArea

    // Href specifies the URL of the page the link goes to.
    Href(v string) HTMLArea

    // HrefLang specifies the language of the linked document.
    HrefLang(v string) HTMLArea

    // ID specifies a unique id for an element.
    ID(v string) HTMLArea

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLArea

    // Media specifies what media/device the linked document is optimized for.
    Media(v string) HTMLArea

    // Rel specifies the relationship between the current document and the linked document.
    Rel(v string) HTMLArea

    // Shape specifies the shape of the area.
    Shape(v string) HTMLArea

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLArea

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLArea

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLArea

    // Target specifies the target for where to open the linked document or where to submit the form.
    Target(v string) HTMLArea

    // Title specifies extra information about an element.
    Title(v string) HTMLArea

    // Type specifies the type of element.
    Type(v string) HTMLArea

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLArea

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLArea

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLArea

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLArea

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLArea

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLArea

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLArea

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLArea

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLArea

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLArea

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLArea

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLArea

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLArea

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLArea

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLArea

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLArea

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLArea

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLArea

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLArea

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLArea

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLArea

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLArea

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLArea

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLArea

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLArea

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLArea

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLArea

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLArea

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLArea

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLArea

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLArea

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLArea
}

func Area

func Area() HTMLArea

Area returns an HTML element that defines an area inside an image-map.

type HTMLArticle

HTMLArticle is the interface that describes a <article> HTML element.

type HTMLArticle interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLArticle

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLArticle

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLArticle

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLArticle

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLArticle

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLArticle

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLArticle

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLArticle

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLArticle

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLArticle

    // ID specifies a unique id for an element.
    ID(v string) HTMLArticle

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLArticle

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLArticle

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLArticle

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLArticle

    // Title specifies extra information about an element.
    Title(v string) HTMLArticle

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLArticle

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLArticle

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLArticle

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLArticle

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLArticle

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLArticle

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLArticle

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLArticle

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLArticle

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLArticle

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLArticle

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLArticle

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLArticle

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLArticle

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLArticle

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLArticle

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLArticle

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLArticle

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLArticle

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLArticle

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLArticle

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLArticle

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLArticle

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLArticle

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLArticle

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLArticle

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLArticle

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLArticle

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLArticle

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLArticle

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLArticle

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLArticle
}

func Article

func Article() HTMLArticle

Article returns an HTML element that defines an article.

type HTMLAside

HTMLAside is the interface that describes a <aside> HTML element.

type HTMLAside interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLAside

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLAside

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLAside

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLAside

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLAside

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLAside

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLAside

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLAside

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLAside

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLAside

    // ID specifies a unique id for an element.
    ID(v string) HTMLAside

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLAside

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLAside

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLAside

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLAside

    // Title specifies extra information about an element.
    Title(v string) HTMLAside

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLAside

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLAside

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLAside

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLAside

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLAside

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLAside

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLAside

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLAside

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLAside

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLAside

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLAside

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLAside

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLAside

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLAside

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLAside

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLAside

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLAside

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLAside

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLAside

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLAside

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLAside

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLAside

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLAside

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLAside

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLAside

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLAside

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLAside

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLAside

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLAside

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLAside

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLAside

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLAside
}

func Aside

func Aside() HTMLAside

Aside returns an HTML element that defines content aside from the page content.

type HTMLAudio

HTMLAudio is the interface that describes a <audio> HTML element.

type HTMLAudio interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLAudio

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLAudio

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLAudio

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLAudio

    // AutoPlay specifies that the audio/video will start playing as soon as it is ready.
    AutoPlay(v bool) HTMLAudio

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLAudio

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLAudio

    // Controls specifies that audio/video controls should be displayed (such as a play/pause button etc).
    Controls(v bool) HTMLAudio

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLAudio

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLAudio

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLAudio

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLAudio

    // ID specifies a unique id for an element.
    ID(v string) HTMLAudio

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLAudio

    // Loop specifies that the audio/video will start over again, every time it is finished.
    Loop(v bool) HTMLAudio

    // Muted specifies that the audio output of the video should be muted.
    Muted(v bool) HTMLAudio

    // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads.
    Preload(v string) HTMLAudio

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLAudio

    // Src specifies the URL of the media file.
    Src(v string) HTMLAudio

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLAudio

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLAudio

    // Title specifies extra information about an element.
    Title(v string) HTMLAudio

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler) HTMLAudio

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLAudio

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler) HTMLAudio

    // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering.
    OnCanPlayThrough(h EventHandler) HTMLAudio

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLAudio

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLAudio

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLAudio

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLAudio

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler) HTMLAudio

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLAudio

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLAudio

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLAudio

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLAudio

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLAudio

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLAudio

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLAudio

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLAudio

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLAudio

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler) HTMLAudio

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler) HTMLAudio

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler) HTMLAudio

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLAudio

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLAudio

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLAudio

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLAudio

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLAudio

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLAudio

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLAudio

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler) HTMLAudio

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler) HTMLAudio

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLAudio

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLAudio

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLAudio

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLAudio

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLAudio

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLAudio

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler) HTMLAudio

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler) HTMLAudio

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler) HTMLAudio

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler) HTMLAudio

    // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
    OnRateChange(h EventHandler) HTMLAudio

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLAudio

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLAudio

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLAudio

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler) HTMLAudio

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler) HTMLAudio

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLAudio

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler) HTMLAudio

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLAudio

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler) HTMLAudio

    // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media).
    OnTimeUpdate(h EventHandler) HTMLAudio

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler) HTMLAudio

    // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data).
    OnWaiting(h EventHandler) HTMLAudio

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLAudio

    // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnloadedMetaData(h EventHandler) HTMLAudio
}

func Audio

func Audio() HTMLAudio

Audio returns an HTML element that defines sound content.

type HTMLB

HTMLB is the interface that describes a <b> HTML element.

type HTMLB interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLB

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLB

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLB

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLB

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLB

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLB

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLB

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLB

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLB

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLB

    // ID specifies a unique id for an element.
    ID(v string) HTMLB

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLB

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLB

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLB

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLB

    // Title specifies extra information about an element.
    Title(v string) HTMLB

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLB

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLB

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLB

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLB

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLB

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLB

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLB

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLB

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLB

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLB

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLB

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLB

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLB

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLB

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLB

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLB

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLB

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLB

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLB

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLB

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLB

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLB

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLB

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLB

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLB

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLB

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLB

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLB

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLB

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLB

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLB

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLB
}

func B

func B() HTMLB

B returns an HTML element that defines bold text.

type HTMLBase

HTMLBase is the interface that describes a <base> HTML element.

type HTMLBase interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBase

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLBase

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBase

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBase

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBase

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBase

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBase

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBase

    // Href specifies the URL of the page the link goes to.
    Href(v string) HTMLBase

    // ID specifies a unique id for an element.
    ID(v string) HTMLBase

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBase

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBase

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBase

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBase

    // Target specifies the target for where to open the linked document or where to submit the form.
    Target(v string) HTMLBase

    // Title specifies extra information about an element.
    Title(v string) HTMLBase

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBase

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBase

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBase

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBase

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBase

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBase

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBase

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBase

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBase

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBase

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBase

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBase

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBase

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBase

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBase

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBase

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBase

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBase

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBase

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBase

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBase

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBase

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBase

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBase

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBase

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBase

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBase

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBase

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBase

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBase

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBase

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBase
}

func Base

func Base() HTMLBase

Base returns an HTML element that specifies the base URL/target for all relative URLs in a document.

type HTMLBdi

HTMLBdi is the interface that describes a <bdi> HTML element.

type HTMLBdi interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLBdi

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLBdi

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBdi

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLBdi

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBdi

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBdi

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBdi

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBdi

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBdi

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBdi

    // ID specifies a unique id for an element.
    ID(v string) HTMLBdi

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBdi

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBdi

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBdi

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBdi

    // Title specifies extra information about an element.
    Title(v string) HTMLBdi

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBdi

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBdi

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBdi

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBdi

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBdi

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBdi

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBdi

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBdi

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBdi

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBdi

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBdi

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBdi

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBdi

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBdi

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBdi

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBdi

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBdi

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBdi

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBdi

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBdi

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBdi

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBdi

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBdi

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBdi

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBdi

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBdi

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBdi

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBdi

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBdi

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBdi

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBdi

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBdi
}

func Bdi

func Bdi() HTMLBdi

Bdi returns an HTML element that isolates a part of text that might be formatted in a different direction from other text outside it.

type HTMLBdo

HTMLBdo is the interface that describes a <bdo> HTML element.

type HTMLBdo interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLBdo

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLBdo

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBdo

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLBdo

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBdo

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBdo

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBdo

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBdo

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBdo

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBdo

    // ID specifies a unique id for an element.
    ID(v string) HTMLBdo

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBdo

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBdo

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBdo

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBdo

    // Title specifies extra information about an element.
    Title(v string) HTMLBdo

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBdo

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBdo

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBdo

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBdo

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBdo

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBdo

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBdo

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBdo

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBdo

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBdo

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBdo

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBdo

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBdo

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBdo

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBdo

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBdo

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBdo

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBdo

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBdo

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBdo

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBdo

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBdo

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBdo

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBdo

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBdo

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBdo

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBdo

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBdo

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBdo

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBdo

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBdo

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBdo
}

func Bdo

func Bdo() HTMLBdo

Bdo returns an HTML element that overrides the current text direction.

type HTMLBlockquote

HTMLBlockquote is the interface that describes a <blockquote> HTML element.

type HTMLBlockquote interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLBlockquote

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLBlockquote

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBlockquote

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLBlockquote

    // Cite specifies a URL which explains the quote/deleted/inserted text.
    Cite(v string) HTMLBlockquote

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBlockquote

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBlockquote

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBlockquote

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBlockquote

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBlockquote

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBlockquote

    // ID specifies a unique id for an element.
    ID(v string) HTMLBlockquote

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBlockquote

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBlockquote

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBlockquote

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBlockquote

    // Title specifies extra information about an element.
    Title(v string) HTMLBlockquote

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBlockquote

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBlockquote

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBlockquote

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBlockquote

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBlockquote

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBlockquote

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBlockquote

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBlockquote

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBlockquote

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBlockquote

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBlockquote

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBlockquote

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBlockquote

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBlockquote

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBlockquote

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBlockquote

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBlockquote

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBlockquote

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBlockquote

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBlockquote

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBlockquote

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBlockquote

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBlockquote

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBlockquote

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBlockquote

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBlockquote

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBlockquote

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBlockquote

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBlockquote

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBlockquote

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBlockquote

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBlockquote
}

func Blockquote

func Blockquote() HTMLBlockquote

Blockquote returns an HTML element that defines a section that is quoted from another source.

type HTMLBody

HTMLBody is the interface that describes a <body> HTML element.

type HTMLBody interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLBody

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLBody

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBody

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLBody

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBody

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBody

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBody

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBody

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBody

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBody

    // ID specifies a unique id for an element.
    ID(v string) HTMLBody

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBody

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBody

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBody

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBody

    // Title specifies extra information about an element.
    Title(v string) HTMLBody

    // OnAfterPrint runs the given handler after the document is printed.
    OnAfterPrint(h EventHandler) HTMLBody

    // OnBeforePrint calls the given handler before the document is printed.
    OnBeforePrint(h EventHandler) HTMLBody

    // OnBeforeUnload calls the given handler when the document is about to be unloaded.
    OnBeforeUnload(h EventHandler) HTMLBody

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBody

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBody

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBody

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBody

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBody

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBody

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBody

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBody

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBody

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBody

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBody

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBody

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBody

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBody

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLBody

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBody

    // OnHashChange calls the given handler when there has been changes to the anchor part of the a URL.
    OnHashChange(h EventHandler) HTMLBody

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBody

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBody

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBody

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBody

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBody

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLBody

    // OnMessage calls then given handler when a message is triggered.
    OnMessage(h EventHandler) HTMLBody

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBody

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBody

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBody

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBody

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBody

    // OnOffline calls the given handler when the browser starts to work offline.
    OnOffline(h EventHandler) HTMLBody

    // OnOnline calls the given handler when the browser starts to work online.
    OnOnline(h EventHandler) HTMLBody

    // OnPageHide calls the given handler when a user navigates away from a page.
    OnPageHide(h EventHandler) HTMLBody

    // OnPageShow calls the given handler when a user navigates to a page.
    OnPageShow(h EventHandler) HTMLBody

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBody

    // OnPopState calls the given handler when the window's history changes.
    OnPopState(h EventHandler) HTMLBody

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBody

    // OnResize calls the given handler when the browser window is resized.
    OnResize(h EventHandler) HTMLBody

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBody

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBody

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBody

    // OnStorage calls the given handler when a Web Storage area is updated.
    OnStorage(h EventHandler) HTMLBody

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBody

    // OnUnload calls the given handler once a page has unloaded (or the browser window has been closed).
    OnUnload(h EventHandler) HTMLBody

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBody
}

func Body

func Body() HTMLBody

Body returns an HTML element that defines the document's body.

type HTMLBr

HTMLBr is the interface that describes a <br> HTML element.

type HTMLBr interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLBr

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLBr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLBr

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLBr

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLBr

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLBr

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLBr

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLBr

    // ID specifies a unique id for an element.
    ID(v string) HTMLBr

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLBr

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLBr

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLBr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLBr

    // Title specifies extra information about an element.
    Title(v string) HTMLBr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLBr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLBr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLBr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLBr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLBr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLBr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLBr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLBr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLBr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLBr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLBr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLBr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLBr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLBr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLBr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLBr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLBr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLBr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLBr

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLBr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLBr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLBr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLBr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLBr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLBr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLBr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLBr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLBr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLBr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLBr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLBr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLBr
}

func Br

func Br() HTMLBr

Br returns an HTML element that defines a single line break.

type HTMLButton

HTMLButton is the interface that describes a <button> HTML element.

type HTMLButton interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLButton

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLButton

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLButton

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLButton

    // AutoFocus specifies that the element should automatically get focus when the page loads.
    AutoFocus(v bool) HTMLButton

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLButton

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLButton

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLButton

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLButton

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLButton

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLButton

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLButton

    // FormAction specifies where to send the form-data when a form is submitted. Only for submit type.
    FormAction(v string) HTMLButton

    // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type.
    FormEncType(v string) HTMLButton

    // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type.
    FormMethod(v string) HTMLButton

    // FormNoValidate specifies that the form-data should not be validated on submission. Only for submit type.
    FormNoValidate(v bool) HTMLButton

    // FormTarget specifies where to display the response after submitting the form. Only for submit type.
    FormTarget(v string) HTMLButton

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLButton

    // ID specifies a unique id for an element.
    ID(v string) HTMLButton

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLButton

    // Name specifies the name of the element.
    Name(v string) HTMLButton

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLButton

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLButton

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLButton

    // Title specifies extra information about an element.
    Title(v string) HTMLButton

    // Type specifies the type of element.
    Type(v string) HTMLButton

    // Value specifies the value of the element.
    Value(v interface{}) HTMLButton

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLButton

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLButton

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLButton

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLButton

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLButton

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLButton

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLButton

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLButton

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLButton

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLButton

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLButton

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLButton

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLButton

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLButton

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLButton

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLButton

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLButton

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLButton

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLButton

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLButton

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLButton

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLButton

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLButton

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLButton

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLButton

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLButton

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLButton

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLButton

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLButton

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLButton

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLButton

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLButton
}

func Button

func Button() HTMLButton

Button returns an HTML element that defines a clickable button.

type HTMLCanvas

HTMLCanvas is the interface that describes a <canvas> HTML element.

type HTMLCanvas interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLCanvas

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLCanvas

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCanvas

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLCanvas

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCanvas

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCanvas

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCanvas

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCanvas

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCanvas

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLCanvas

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCanvas

    // ID specifies a unique id for an element.
    ID(v string) HTMLCanvas

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCanvas

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCanvas

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCanvas

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCanvas

    // Title specifies extra information about an element.
    Title(v string) HTMLCanvas

    // Width specifies the width of the element.
    Width(v int) HTMLCanvas

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCanvas

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCanvas

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCanvas

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCanvas

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCanvas

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCanvas

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCanvas

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCanvas

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCanvas

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCanvas

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCanvas

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCanvas

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCanvas

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCanvas

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCanvas

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCanvas

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCanvas

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCanvas

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCanvas

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCanvas

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCanvas

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCanvas

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCanvas

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCanvas

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCanvas

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCanvas

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCanvas

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCanvas

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCanvas

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCanvas

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCanvas

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCanvas
}

func Canvas

func Canvas() HTMLCanvas

Canvas returns an HTML element that is used to draw graphics on the fly.

type HTMLCaption

HTMLCaption is the interface that describes a <caption> HTML element.

type HTMLCaption interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLCaption

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLCaption

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCaption

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLCaption

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCaption

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCaption

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCaption

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCaption

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCaption

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCaption

    // ID specifies a unique id for an element.
    ID(v string) HTMLCaption

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCaption

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCaption

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCaption

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCaption

    // Title specifies extra information about an element.
    Title(v string) HTMLCaption

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCaption

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCaption

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCaption

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCaption

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCaption

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCaption

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCaption

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCaption

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCaption

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCaption

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCaption

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCaption

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCaption

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCaption

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCaption

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCaption

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCaption

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCaption

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCaption

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCaption

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCaption

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCaption

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCaption

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCaption

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCaption

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCaption

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCaption

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCaption

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCaption

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCaption

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCaption

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCaption
}

func Caption

func Caption() HTMLCaption

Caption returns an HTML element that defines a table caption.

type HTMLCite

HTMLCite is the interface that describes a <cite> HTML element.

type HTMLCite interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLCite

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLCite

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCite

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLCite

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCite

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCite

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCite

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCite

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCite

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCite

    // ID specifies a unique id for an element.
    ID(v string) HTMLCite

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCite

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCite

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCite

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCite

    // Title specifies extra information about an element.
    Title(v string) HTMLCite

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCite

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCite

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCite

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCite

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCite

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCite

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCite

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCite

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCite

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCite

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCite

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCite

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCite

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCite

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCite

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCite

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCite

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCite

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCite

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCite

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCite

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCite

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCite

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCite

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCite

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCite

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCite

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCite

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCite

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCite

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCite

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCite
}

func Cite

func Cite() HTMLCite

Cite returns an HTML element that defines the title of a work.

type HTMLCode

HTMLCode is the interface that describes a <code> HTML element.

type HTMLCode interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLCode

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLCode

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCode

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLCode

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCode

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCode

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCode

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCode

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCode

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCode

    // ID specifies a unique id for an element.
    ID(v string) HTMLCode

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCode

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCode

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCode

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCode

    // Title specifies extra information about an element.
    Title(v string) HTMLCode

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCode

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCode

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCode

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCode

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCode

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCode

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCode

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCode

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCode

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCode

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCode

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCode

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCode

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCode

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCode

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCode

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCode

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCode

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCode

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCode

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCode

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCode

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCode

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCode

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCode

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCode

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCode

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCode

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCode

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCode

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCode

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCode
}

func Code

func Code() HTMLCode

Code returns an HTML element that defines a piece of computer code.

type HTMLCol

HTMLCol is the interface that describes a <col> HTML element.

type HTMLCol interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLCol

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLCol

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLCol

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLCol

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLCol

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLCol

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLCol

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLCol

    // ID specifies a unique id for an element.
    ID(v string) HTMLCol

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLCol

    // Span specifies the number of columns to span.
    Span(v int) HTMLCol

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLCol

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLCol

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLCol

    // Title specifies extra information about an element.
    Title(v string) HTMLCol

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLCol

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLCol

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLCol

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLCol

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLCol

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLCol

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLCol

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLCol

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLCol

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLCol

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLCol

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLCol

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLCol

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLCol

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLCol

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLCol

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLCol

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLCol

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLCol

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLCol

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLCol

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLCol

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLCol

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLCol

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLCol

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLCol

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLCol

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLCol

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLCol

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLCol

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLCol

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLCol
}

func Col

func Col() HTMLCol

Col returns an HTML element that specifies column properties for each column within a colgroup element.

type HTMLColGroup

HTMLColGroup is the interface that describes a <colgroup> HTML element.

type HTMLColGroup interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLColGroup

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLColGroup

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLColGroup

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLColGroup

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLColGroup

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLColGroup

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLColGroup

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLColGroup

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLColGroup

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLColGroup

    // ID specifies a unique id for an element.
    ID(v string) HTMLColGroup

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLColGroup

    // Span specifies the number of columns to span.
    Span(v int) HTMLColGroup

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLColGroup

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLColGroup

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLColGroup

    // Title specifies extra information about an element.
    Title(v string) HTMLColGroup

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLColGroup

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLColGroup

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLColGroup

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLColGroup

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLColGroup

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLColGroup

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLColGroup

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLColGroup

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLColGroup

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLColGroup

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLColGroup

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLColGroup

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLColGroup

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLColGroup

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLColGroup

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLColGroup

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLColGroup

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLColGroup

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLColGroup

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLColGroup

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLColGroup

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLColGroup

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLColGroup

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLColGroup

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLColGroup

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLColGroup

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLColGroup

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLColGroup

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLColGroup

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLColGroup

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLColGroup

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLColGroup
}

func ColGroup

func ColGroup() HTMLColGroup

ColGroup returns an HTML element that specifies a group of one or more columns in a table for formatting.

type HTMLData

HTMLData is the interface that describes a <data> HTML element.

type HTMLData interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLData

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLData

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLData

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLData

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLData

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLData

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLData

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLData

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLData

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLData

    // ID specifies a unique id for an element.
    ID(v string) HTMLData

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLData

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLData

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLData

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLData

    // Title specifies extra information about an element.
    Title(v string) HTMLData

    // Value specifies the value of the element.
    Value(v interface{}) HTMLData
}

func Data

func Data() HTMLData

Data returns an HTML element that links the given content with a machine-readable translation.

type HTMLDataList

HTMLDataList is the interface that describes a <datalist> HTML element.

type HTMLDataList interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLDataList

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDataList

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDataList

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLDataList

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDataList

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDataList

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDataList

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDataList

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDataList

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDataList

    // ID specifies a unique id for an element.
    ID(v string) HTMLDataList

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDataList

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDataList

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDataList

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDataList

    // Title specifies extra information about an element.
    Title(v string) HTMLDataList

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDataList

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDataList

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDataList

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDataList

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDataList

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDataList

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDataList

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDataList

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDataList

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDataList

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDataList

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDataList

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDataList

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDataList

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDataList

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDataList

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDataList

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDataList

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDataList

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDataList

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDataList

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDataList

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDataList

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDataList

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDataList

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDataList

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDataList

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDataList

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDataList

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDataList

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDataList

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDataList
}

func DataList

func DataList() HTMLDataList

DataList returns an HTML element that specifies a list of pre-defined options for input controls.

type HTMLDd

HTMLDd is the interface that describes a <dd> HTML element.

type HTMLDd interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLDd

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDd

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDd

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLDd

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDd

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDd

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDd

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDd

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDd

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDd

    // ID specifies a unique id for an element.
    ID(v string) HTMLDd

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDd

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDd

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDd

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDd

    // Title specifies extra information about an element.
    Title(v string) HTMLDd

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDd

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDd

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDd

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDd

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDd

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDd

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDd

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDd

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDd

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDd

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDd

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDd

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDd

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDd

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDd

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDd

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDd

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDd

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDd

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDd

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDd

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDd

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDd

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDd

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDd

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDd

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDd

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDd

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDd

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDd

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDd

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDd
}

func Dd

func Dd() HTMLDd

Dd returns an HTML element that defines a description/value of a term in a description list.

type HTMLDel

HTMLDel is the interface that describes a <del> HTML element.

type HTMLDel interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLDel

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDel

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDel

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLDel

    // Cite specifies a URL which explains the quote/deleted/inserted text.
    Cite(v string) HTMLDel

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDel

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDel

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDel

    // DateTime specifies the date and time.
    DateTime(v string) HTMLDel

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDel

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDel

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDel

    // ID specifies a unique id for an element.
    ID(v string) HTMLDel

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDel

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDel

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDel

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDel

    // Title specifies extra information about an element.
    Title(v string) HTMLDel

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDel

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDel

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDel

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDel

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDel

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDel

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDel

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDel

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDel

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDel

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDel

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDel

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDel

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDel

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDel

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDel

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDel

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDel

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDel

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDel

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDel

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDel

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDel

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDel

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDel

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDel

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDel

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDel

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDel

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDel

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDel

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDel
}

func Del

func Del() HTMLDel

Del returns an HTML element that defines text that has been deleted from a document.

type HTMLDetails

HTMLDetails is the interface that describes a <details> HTML element.

type HTMLDetails interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLDetails

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDetails

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDetails

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLDetails

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDetails

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDetails

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDetails

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDetails

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDetails

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDetails

    // ID specifies a unique id for an element.
    ID(v string) HTMLDetails

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDetails

    // Open specifies that the details should be visible (open) to the user.
    Open(v bool) HTMLDetails

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDetails

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDetails

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDetails

    // Title specifies extra information about an element.
    Title(v string) HTMLDetails

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDetails

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDetails

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDetails

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDetails

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDetails

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDetails

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDetails

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDetails

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDetails

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDetails

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDetails

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDetails

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDetails

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDetails

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDetails

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDetails

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDetails

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDetails

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDetails

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDetails

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDetails

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDetails

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDetails

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDetails

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDetails

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDetails

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDetails

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDetails

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDetails

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDetails

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDetails

    // OnToggle calls the given handler when the user opens or closes the details element.
    OnToggle(h EventHandler) HTMLDetails

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDetails
}

func Details

func Details() HTMLDetails

Details returns an HTML element that defines additional details that the user can view or hide.

type HTMLDfn

HTMLDfn is the interface that describes a <dfn> HTML element.

type HTMLDfn interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLDfn

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDfn

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDfn

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLDfn

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDfn

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDfn

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDfn

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDfn

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDfn

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDfn

    // ID specifies a unique id for an element.
    ID(v string) HTMLDfn

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDfn

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDfn

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDfn

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDfn

    // Title specifies extra information about an element.
    Title(v string) HTMLDfn

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDfn

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDfn

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDfn

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDfn

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDfn

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDfn

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDfn

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDfn

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDfn

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDfn

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDfn

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDfn

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDfn

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDfn

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDfn

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDfn

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDfn

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDfn

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDfn

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDfn

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDfn

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDfn

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDfn

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDfn

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDfn

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDfn

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDfn

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDfn

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDfn

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDfn

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDfn

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDfn
}

func Dfn

func Dfn() HTMLDfn

Dfn returns an HTML element that represents the defining instance of a term.

type HTMLDialog

HTMLDialog is the interface that describes a <dialog> HTML element.

type HTMLDialog interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLDialog

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDialog

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDialog

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLDialog

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDialog

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDialog

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDialog

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDialog

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDialog

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDialog

    // ID specifies a unique id for an element.
    ID(v string) HTMLDialog

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDialog

    // Open specifies that the details should be visible (open) to the user.
    Open(v bool) HTMLDialog

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDialog

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDialog

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDialog

    // Title specifies extra information about an element.
    Title(v string) HTMLDialog

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDialog

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDialog

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDialog

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDialog

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDialog

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDialog

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDialog

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDialog

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDialog

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDialog

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDialog

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDialog

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDialog

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDialog

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDialog

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDialog

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDialog

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDialog

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDialog

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDialog

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDialog

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDialog

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDialog

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDialog

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDialog

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDialog

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDialog

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDialog

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDialog

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDialog

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDialog

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDialog
}

func Dialog

func Dialog() HTMLDialog

Dialog returns an HTML element that defines a dialog box or window.

type HTMLDiv

HTMLDiv is the interface that describes a <div> HTML element.

type HTMLDiv interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLDiv

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDiv

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDiv

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLDiv

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDiv

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDiv

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDiv

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDiv

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDiv

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDiv

    // ID specifies a unique id for an element.
    ID(v string) HTMLDiv

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDiv

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDiv

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDiv

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDiv

    // Title specifies extra information about an element.
    Title(v string) HTMLDiv

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDiv

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDiv

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDiv

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDiv

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDiv

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDiv

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDiv

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDiv

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDiv

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDiv

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDiv

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDiv

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDiv

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDiv

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDiv

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDiv

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDiv

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDiv

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDiv

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDiv

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDiv

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDiv

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDiv

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDiv

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDiv

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDiv

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDiv

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDiv

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDiv

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDiv

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDiv

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDiv
}

func Div

func Div() HTMLDiv

Div returns an HTML element that defines a section in a document.

type HTMLDl

HTMLDl is the interface that describes a <dl> HTML element.

type HTMLDl interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLDl

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDl

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDl

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLDl

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDl

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDl

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDl

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDl

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDl

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDl

    // ID specifies a unique id for an element.
    ID(v string) HTMLDl

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDl

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDl

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDl

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDl

    // Title specifies extra information about an element.
    Title(v string) HTMLDl

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDl

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDl

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDl

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDl

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDl

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDl

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDl

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDl

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDl

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDl

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDl

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDl

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDl

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDl

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDl

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDl

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDl

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDl

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDl

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDl

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDl

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDl

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDl

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDl

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDl

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDl

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDl

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDl

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDl

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDl

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDl

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDl
}

func Dl

func Dl() HTMLDl

Dl returns an HTML element that defines a description list.

type HTMLDt

HTMLDt is the interface that describes a <dt> HTML element.

type HTMLDt interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLDt

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLDt

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLDt

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLDt

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLDt

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLDt

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLDt

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLDt

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLDt

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLDt

    // ID specifies a unique id for an element.
    ID(v string) HTMLDt

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLDt

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLDt

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLDt

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLDt

    // Title specifies extra information about an element.
    Title(v string) HTMLDt

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLDt

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLDt

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLDt

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLDt

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLDt

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLDt

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLDt

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLDt

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLDt

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLDt

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLDt

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLDt

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLDt

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLDt

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLDt

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLDt

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLDt

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLDt

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLDt

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLDt

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLDt

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLDt

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLDt

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLDt

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLDt

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLDt

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLDt

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLDt

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLDt

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLDt

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLDt

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLDt
}

func Dt

func Dt() HTMLDt

Dt returns an HTML element that defines a term/name in a description list.

type HTMLEm

HTMLEm is the interface that describes a <em> HTML element.

type HTMLEm interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLEm

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLEm

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLEm

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLEm

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLEm

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLEm

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLEm

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLEm

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLEm

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLEm

    // ID specifies a unique id for an element.
    ID(v string) HTMLEm

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLEm

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLEm

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLEm

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLEm

    // Title specifies extra information about an element.
    Title(v string) HTMLEm

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLEm

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLEm

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLEm

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLEm

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLEm

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLEm

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLEm

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLEm

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLEm

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLEm

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLEm

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLEm

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLEm

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLEm

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLEm

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLEm

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLEm

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLEm

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLEm

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLEm

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLEm

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLEm

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLEm

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLEm

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLEm

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLEm

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLEm

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLEm

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLEm

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLEm

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLEm

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLEm
}

func Em

func Em() HTMLEm

Em returns an HTML element that defines emphasized text.

type HTMLEmbed

HTMLEmbed is the interface that describes a <embed> HTML element.

type HTMLEmbed interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLEmbed

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLEmbed

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLEmbed

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLEmbed

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLEmbed

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLEmbed

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLEmbed

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLEmbed

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLEmbed

    // ID specifies a unique id for an element.
    ID(v string) HTMLEmbed

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLEmbed

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLEmbed

    // Src specifies the URL of the media file.
    Src(v string) HTMLEmbed

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLEmbed

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLEmbed

    // Title specifies extra information about an element.
    Title(v string) HTMLEmbed

    // Type specifies the type of element.
    Type(v string) HTMLEmbed

    // Width specifies the width of the element.
    Width(v int) HTMLEmbed

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler) HTMLEmbed

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLEmbed

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler) HTMLEmbed

    // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering.
    OnCanPlayThrough(h EventHandler) HTMLEmbed

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLEmbed

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLEmbed

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLEmbed

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLEmbed

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler) HTMLEmbed

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLEmbed

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLEmbed

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLEmbed

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLEmbed

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLEmbed

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLEmbed

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLEmbed

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLEmbed

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLEmbed

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler) HTMLEmbed

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler) HTMLEmbed

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler) HTMLEmbed

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLEmbed

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLEmbed

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLEmbed

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLEmbed

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLEmbed

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLEmbed

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLEmbed

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler) HTMLEmbed

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler) HTMLEmbed

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLEmbed

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLEmbed

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLEmbed

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLEmbed

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLEmbed

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLEmbed

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler) HTMLEmbed

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler) HTMLEmbed

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler) HTMLEmbed

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler) HTMLEmbed

    // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
    OnRateChange(h EventHandler) HTMLEmbed

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLEmbed

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLEmbed

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLEmbed

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler) HTMLEmbed

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler) HTMLEmbed

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLEmbed

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler) HTMLEmbed

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLEmbed

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler) HTMLEmbed

    // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media).
    OnTimeUpdate(h EventHandler) HTMLEmbed

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler) HTMLEmbed

    // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data).
    OnWaiting(h EventHandler) HTMLEmbed

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLEmbed

    // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnloadedMetaData(h EventHandler) HTMLEmbed
}

func Embed

func Embed() HTMLEmbed

Embed returns an HTML element that defines a container for an external (non-HTML) application.

type HTMLFieldSet

HTMLFieldSet is the interface that describes a <fieldset> HTML element.

type HTMLFieldSet interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLFieldSet

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLFieldSet

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLFieldSet

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLFieldSet

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLFieldSet

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLFieldSet

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLFieldSet

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLFieldSet

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLFieldSet

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLFieldSet

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLFieldSet

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLFieldSet

    // ID specifies a unique id for an element.
    ID(v string) HTMLFieldSet

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLFieldSet

    // Name specifies the name of the element.
    Name(v string) HTMLFieldSet

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLFieldSet

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLFieldSet

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLFieldSet

    // Title specifies extra information about an element.
    Title(v string) HTMLFieldSet

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLFieldSet

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLFieldSet

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLFieldSet

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLFieldSet

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLFieldSet

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLFieldSet

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLFieldSet

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLFieldSet

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLFieldSet

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLFieldSet

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLFieldSet

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLFieldSet

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLFieldSet

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLFieldSet

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLFieldSet

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLFieldSet

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLFieldSet

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLFieldSet

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLFieldSet

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLFieldSet

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLFieldSet

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLFieldSet

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLFieldSet

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLFieldSet

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLFieldSet

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLFieldSet

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLFieldSet

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLFieldSet

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLFieldSet

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLFieldSet

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLFieldSet

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLFieldSet
}

func FieldSet

func FieldSet() HTMLFieldSet

FieldSet returns an HTML element that groups related elements in a form.

type HTMLFigCaption

HTMLFigCaption is the interface that describes a <figcaption> HTML element.

type HTMLFigCaption interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLFigCaption

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLFigCaption

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLFigCaption

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLFigCaption

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLFigCaption

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLFigCaption

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLFigCaption

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLFigCaption

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLFigCaption

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLFigCaption

    // ID specifies a unique id for an element.
    ID(v string) HTMLFigCaption

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLFigCaption

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLFigCaption

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLFigCaption

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLFigCaption

    // Title specifies extra information about an element.
    Title(v string) HTMLFigCaption

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLFigCaption

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLFigCaption

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLFigCaption

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLFigCaption

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLFigCaption

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLFigCaption

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLFigCaption

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLFigCaption

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLFigCaption

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLFigCaption

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLFigCaption

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLFigCaption

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLFigCaption

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLFigCaption

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLFigCaption

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLFigCaption

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLFigCaption

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLFigCaption

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLFigCaption

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLFigCaption

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLFigCaption

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLFigCaption

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLFigCaption

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLFigCaption

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLFigCaption

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLFigCaption

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLFigCaption

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLFigCaption

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLFigCaption

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLFigCaption

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLFigCaption

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLFigCaption
}

func FigCaption

func FigCaption() HTMLFigCaption

FigCaption returns an HTML element that defines a caption for a figure element.

type HTMLFigure

HTMLFigure is the interface that describes a <figure> HTML element.

type HTMLFigure interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLFigure

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLFigure

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLFigure

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLFigure

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLFigure

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLFigure

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLFigure

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLFigure

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLFigure

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLFigure

    // ID specifies a unique id for an element.
    ID(v string) HTMLFigure

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLFigure

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLFigure

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLFigure

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLFigure

    // Title specifies extra information about an element.
    Title(v string) HTMLFigure

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLFigure

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLFigure

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLFigure

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLFigure

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLFigure

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLFigure

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLFigure

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLFigure

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLFigure

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLFigure

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLFigure

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLFigure

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLFigure

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLFigure

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLFigure

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLFigure

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLFigure

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLFigure

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLFigure

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLFigure

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLFigure

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLFigure

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLFigure

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLFigure

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLFigure

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLFigure

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLFigure

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLFigure

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLFigure

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLFigure

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLFigure

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLFigure
}

func Figure

func Figure() HTMLFigure

Figure returns an HTML element that specifies self-contained content.

type HTMLFooter

HTMLFooter is the interface that describes a <footer> HTML element.

type HTMLFooter interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLFooter

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLFooter

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLFooter

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLFooter

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLFooter

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLFooter

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLFooter

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLFooter

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLFooter

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLFooter

    // ID specifies a unique id for an element.
    ID(v string) HTMLFooter

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLFooter

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLFooter

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLFooter

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLFooter

    // Title specifies extra information about an element.
    Title(v string) HTMLFooter

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLFooter

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLFooter

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLFooter

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLFooter

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLFooter

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLFooter

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLFooter

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLFooter

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLFooter

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLFooter

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLFooter

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLFooter

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLFooter

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLFooter

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLFooter

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLFooter

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLFooter

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLFooter

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLFooter

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLFooter

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLFooter

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLFooter

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLFooter

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLFooter

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLFooter

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLFooter

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLFooter

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLFooter

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLFooter

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLFooter

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLFooter

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLFooter
}
func Footer() HTMLFooter

Footer returns an HTML element that defines a footer for a document or section.

type HTMLForm

HTMLForm is the interface that describes a <form> HTML element.

type HTMLForm interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLForm

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLForm

    // AcceptCharset specifies the character encodings that are to be used for the form submission.
    AcceptCharset(v string) HTMLForm

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLForm

    // Action specifies where to send the form-data when a form is submitted.
    Action(v string) HTMLForm

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLForm

    // AutoComplete specifies whether the element should have autocomplete enabled.
    AutoComplete(v bool) HTMLForm

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLForm

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLForm

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLForm

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLForm

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLForm

    // EncType specifies how the form-data should be encoded when submitting it to the server (only for post method).
    EncType(v string) HTMLForm

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLForm

    // ID specifies a unique id for an element.
    ID(v string) HTMLForm

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLForm

    // Method specifies the HTTP method to use when sending form-data.
    Method(v string) HTMLForm

    // Name specifies the name of the element.
    Name(v string) HTMLForm

    // NoValidate specifies that the form should not be validated when submitted.
    NoValidate(v bool) HTMLForm

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLForm

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLForm

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLForm

    // Target specifies the target for where to open the linked document or where to submit the form.
    Target(v string) HTMLForm

    // Title specifies extra information about an element.
    Title(v string) HTMLForm

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLForm

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLForm

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLForm

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLForm

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLForm

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLForm

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLForm

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLForm

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLForm

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLForm

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLForm

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLForm

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLForm

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLForm

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLForm

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLForm

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLForm

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLForm

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLForm

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLForm

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLForm

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLForm

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLForm

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLForm

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLForm

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLForm

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLForm

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLForm

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLForm

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLForm

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLForm

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLForm
}

func Form

func Form() HTMLForm

Form returns an HTML element that defines an HTML form for user input.

type HTMLH1

HTMLH1 is the interface that describes a <h1> HTML element.

type HTMLH1 interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLH1

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH1

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH1

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLH1

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH1

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH1

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH1

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH1

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH1

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH1

    // ID specifies a unique id for an element.
    ID(v string) HTMLH1

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH1

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH1

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH1

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH1

    // Title specifies extra information about an element.
    Title(v string) HTMLH1

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH1

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH1

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH1

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH1

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH1

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH1

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH1

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH1

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH1

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH1

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH1

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH1

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH1

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH1

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH1

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH1

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH1

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH1

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH1

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH1

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH1

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH1

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH1

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH1

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH1

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH1

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH1

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH1

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH1

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH1

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH1

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH1
}

func H1

func H1() HTMLH1

H1 returns an HTML element that defines HTML heading.

type HTMLH2

HTMLH2 is the interface that describes a <h2> HTML element.

type HTMLH2 interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLH2

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH2

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH2

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLH2

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH2

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH2

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH2

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH2

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH2

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH2

    // ID specifies a unique id for an element.
    ID(v string) HTMLH2

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH2

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH2

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH2

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH2

    // Title specifies extra information about an element.
    Title(v string) HTMLH2

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH2

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH2

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH2

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH2

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH2

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH2

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH2

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH2

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH2

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH2

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH2

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH2

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH2

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH2

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH2

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH2

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH2

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH2

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH2

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH2

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH2

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH2

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH2

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH2

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH2

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH2

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH2

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH2

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH2

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH2

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH2

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH2
}

func H2

func H2() HTMLH2

H2 returns an HTML element that defines HTML heading.

type HTMLH3

HTMLH3 is the interface that describes a <h3> HTML element.

type HTMLH3 interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLH3

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH3

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH3

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLH3

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH3

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH3

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH3

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH3

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH3

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH3

    // ID specifies a unique id for an element.
    ID(v string) HTMLH3

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH3

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH3

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH3

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH3

    // Title specifies extra information about an element.
    Title(v string) HTMLH3

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH3

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH3

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH3

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH3

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH3

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH3

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH3

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH3

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH3

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH3

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH3

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH3

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH3

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH3

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH3

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH3

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH3

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH3

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH3

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH3

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH3

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH3

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH3

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH3

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH3

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH3

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH3

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH3

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH3

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH3

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH3

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH3
}

func H3

func H3() HTMLH3

H3 returns an HTML element that defines HTML heading.

type HTMLH4

HTMLH4 is the interface that describes a <h4> HTML element.

type HTMLH4 interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLH4

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH4

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH4

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLH4

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH4

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH4

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH4

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH4

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH4

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH4

    // ID specifies a unique id for an element.
    ID(v string) HTMLH4

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH4

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH4

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH4

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH4

    // Title specifies extra information about an element.
    Title(v string) HTMLH4

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH4

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH4

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH4

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH4

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH4

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH4

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH4

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH4

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH4

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH4

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH4

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH4

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH4

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH4

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH4

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH4

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH4

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH4

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH4

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH4

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH4

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH4

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH4

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH4

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH4

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH4

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH4

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH4

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH4

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH4

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH4

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH4
}

func H4

func H4() HTMLH4

H4 returns an HTML element that defines HTML heading.

type HTMLH5

HTMLH5 is the interface that describes a <h5> HTML element.

type HTMLH5 interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLH5

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH5

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH5

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLH5

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH5

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH5

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH5

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH5

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH5

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH5

    // ID specifies a unique id for an element.
    ID(v string) HTMLH5

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH5

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH5

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH5

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH5

    // Title specifies extra information about an element.
    Title(v string) HTMLH5

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH5

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH5

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH5

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH5

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH5

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH5

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH5

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH5

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH5

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH5

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH5

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH5

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH5

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH5

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH5

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH5

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH5

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH5

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH5

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH5

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH5

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH5

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH5

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH5

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH5

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH5

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH5

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH5

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH5

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH5

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH5

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH5
}

func H5

func H5() HTMLH5

H5 returns an HTML element that defines HTML heading.

type HTMLH6

HTMLH6 is the interface that describes a <h6> HTML element.

type HTMLH6 interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLH6

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLH6

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLH6

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLH6

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLH6

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLH6

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLH6

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLH6

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLH6

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLH6

    // ID specifies a unique id for an element.
    ID(v string) HTMLH6

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLH6

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLH6

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLH6

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLH6

    // Title specifies extra information about an element.
    Title(v string) HTMLH6

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLH6

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLH6

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLH6

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLH6

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLH6

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLH6

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLH6

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLH6

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLH6

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLH6

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLH6

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLH6

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLH6

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLH6

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLH6

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLH6

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLH6

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLH6

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLH6

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLH6

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLH6

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLH6

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLH6

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLH6

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLH6

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLH6

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLH6

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLH6

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLH6

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLH6

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLH6

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLH6
}

func H6

func H6() HTMLH6

H6 returns an HTML element that defines HTML heading.

type HTMLHead

HTMLHead is the interface that describes a <head> HTML element.

type HTMLHead interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLHead

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLHead

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLHead

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLHead

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLHead

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLHead

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLHead

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLHead

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLHead

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLHead

    // ID specifies a unique id for an element.
    ID(v string) HTMLHead

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLHead

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLHead

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLHead

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLHead

    // Title specifies extra information about an element.
    Title(v string) HTMLHead
}
func Head() HTMLHead

Head returns an HTML element that defines information about the document.

type HTMLHeader

HTMLHeader is the interface that describes a <header> HTML element.

type HTMLHeader interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLHeader

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLHeader

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLHeader

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLHeader

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLHeader

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLHeader

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLHeader

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLHeader

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLHeader

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLHeader

    // ID specifies a unique id for an element.
    ID(v string) HTMLHeader

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLHeader

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLHeader

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLHeader

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLHeader

    // Title specifies extra information about an element.
    Title(v string) HTMLHeader

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLHeader

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLHeader

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLHeader

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLHeader

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLHeader

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLHeader

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLHeader

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLHeader

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLHeader

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLHeader

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLHeader

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLHeader

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLHeader

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLHeader

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLHeader

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLHeader

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLHeader

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLHeader

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLHeader

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLHeader

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLHeader

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLHeader

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLHeader

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLHeader

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLHeader

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLHeader

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLHeader

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLHeader

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLHeader

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLHeader

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLHeader

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLHeader
}
func Header() HTMLHeader

Header returns an HTML element that defines a header for a document or section.

type HTMLHr

HTMLHr is the interface that describes a <hr> HTML element.

type HTMLHr interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLHr

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLHr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLHr

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLHr

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLHr

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLHr

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLHr

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLHr

    // ID specifies a unique id for an element.
    ID(v string) HTMLHr

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLHr

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLHr

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLHr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLHr

    // Title specifies extra information about an element.
    Title(v string) HTMLHr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLHr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLHr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLHr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLHr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLHr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLHr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLHr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLHr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLHr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLHr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLHr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLHr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLHr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLHr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLHr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLHr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLHr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLHr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLHr

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLHr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLHr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLHr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLHr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLHr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLHr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLHr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLHr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLHr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLHr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLHr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLHr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLHr
}

func Hr

func Hr() HTMLHr

Hr returns an HTML element that defines a thematic change in the content.

type HTMLHtml

HTMLHtml is the interface that describes a <html> HTML element.

type HTMLHtml interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLHtml

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLHtml

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLHtml

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLHtml

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLHtml

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLHtml

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLHtml

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLHtml

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLHtml

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLHtml

    // ID specifies a unique id for an element.
    ID(v string) HTMLHtml

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLHtml

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLHtml

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLHtml

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLHtml

    // Title specifies extra information about an element.
    Title(v string) HTMLHtml
}

func Html

func Html() HTMLHtml

Html returns an HTML element that defines the root of an HTML document.

type HTMLI

HTMLI is the interface that describes a <i> HTML element.

type HTMLI interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLI

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLI

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLI

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLI

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLI

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLI

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLI

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLI

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLI

    // ID specifies a unique id for an element.
    ID(v string) HTMLI

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLI

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLI

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLI

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLI

    // Title specifies extra information about an element.
    Title(v string) HTMLI

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLI

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLI

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLI

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLI

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLI

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLI

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLI

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLI

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLI

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLI

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLI

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLI

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLI

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLI

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLI

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLI

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLI

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLI

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLI

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLI

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLI

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLI

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLI

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLI

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLI

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLI

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLI

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLI

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLI

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLI

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLI

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLI
}

func I

func I() HTMLI

I returns an HTML element that defines a part of text in an alternate voice or mood.

type HTMLIFrame

HTMLIFrame is the interface that describes a <iframe> HTML element.

type HTMLIFrame interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLIFrame

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLIFrame

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLIFrame

    // Allow specifies a feature policy. Can be called multiple times to set multiple policies.
    Allow(v string) HTMLIFrame

    // AllowFullscreen reports whether an iframe can activate fullscreen mode.
    AllowFullscreen(v bool) HTMLIFrame

    // AllowPaymentRequest reports whether an iframe should be allowed to invoke the Payment Request API
    AllowPaymentRequest(v bool) HTMLIFrame

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLIFrame

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLIFrame

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLIFrame

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLIFrame

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLIFrame

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLIFrame

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLIFrame

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLIFrame

    // ID specifies a unique id for an element.
    ID(v string) HTMLIFrame

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLIFrame

    // Name specifies the name of the element.
    Name(v string) HTMLIFrame

    // ReferrerPolicy specifies how much/which referrer information that will be sent when processing the iframe attributes
    ReferrerPolicy(v string) HTMLIFrame

    // Sandbox enables an extra set of restrictions for the content in an iframe.
    Sandbox(v interface{}) HTMLIFrame

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLIFrame

    // Src specifies the URL of the media file.
    Src(v string) HTMLIFrame

    // SrcDoc specifies the HTML content of the page to show in the iframe.
    SrcDoc(v string) HTMLIFrame

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLIFrame

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLIFrame

    // Title specifies extra information about an element.
    Title(v string) HTMLIFrame

    // Width specifies the width of the element.
    Width(v int) HTMLIFrame

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLIFrame

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLIFrame

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLIFrame

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLIFrame

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLIFrame

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLIFrame

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLIFrame

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLIFrame

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLIFrame

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLIFrame

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLIFrame

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLIFrame

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLIFrame

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLIFrame

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLIFrame

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLIFrame

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLIFrame

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLIFrame

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLIFrame

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLIFrame

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLIFrame

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLIFrame

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLIFrame

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLIFrame

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLIFrame

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLIFrame

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLIFrame

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLIFrame

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLIFrame

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLIFrame

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLIFrame

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLIFrame

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLIFrame
}

func IFrame

func IFrame() HTMLIFrame

IFrame returns an HTML element that defines an inline frame.

type HTMLImg

HTMLImg is the interface that describes a <img> HTML element.

type HTMLImg interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLImg

    // Alt specifies an alternate text when the original element fails to display.
    Alt(v string) HTMLImg

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLImg

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLImg

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLImg

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLImg

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLImg

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLImg

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLImg

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLImg

    // ID specifies a unique id for an element.
    ID(v string) HTMLImg

    // IsMap specifies an image as a server-side image-map.
    IsMap(v bool) HTMLImg

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLImg

    // Sizes specifies the size of the linked resource.
    Sizes(v string) HTMLImg

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLImg

    // Src specifies the URL of the media file.
    Src(v string) HTMLImg

    // SrcSet specifies the URL of the image to use in different situations.
    SrcSet(v string) HTMLImg

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLImg

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLImg

    // Title specifies extra information about an element.
    Title(v string) HTMLImg

    // UseMap specifies an image as a client-side image-map.
    UseMap(v string) HTMLImg

    // Width specifies the width of the element.
    Width(v int) HTMLImg

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler) HTMLImg

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLImg

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler) HTMLImg

    // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering.
    OnCanPlayThrough(h EventHandler) HTMLImg

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLImg

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLImg

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLImg

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLImg

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler) HTMLImg

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLImg

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLImg

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLImg

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLImg

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLImg

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLImg

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLImg

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLImg

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLImg

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler) HTMLImg

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler) HTMLImg

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler) HTMLImg

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLImg

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLImg

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLImg

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLImg

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLImg

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLImg

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLImg

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLImg

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler) HTMLImg

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler) HTMLImg

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLImg

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLImg

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLImg

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLImg

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLImg

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLImg

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler) HTMLImg

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler) HTMLImg

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler) HTMLImg

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler) HTMLImg

    // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
    OnRateChange(h EventHandler) HTMLImg

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLImg

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLImg

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLImg

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler) HTMLImg

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler) HTMLImg

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLImg

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler) HTMLImg

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLImg

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler) HTMLImg

    // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media).
    OnTimeUpdate(h EventHandler) HTMLImg

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler) HTMLImg

    // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data).
    OnWaiting(h EventHandler) HTMLImg

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLImg

    // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnloadedMetaData(h EventHandler) HTMLImg
}

func Img

func Img() HTMLImg

Img returns an HTML element that defines an image.

type HTMLInput

HTMLInput is the interface that describes a <input> HTML element.

type HTMLInput interface {
    UI

    // Accept specifies the types of files that the server accepts (only for file type).
    Accept(v string) HTMLInput

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLInput

    // Alt specifies an alternate text when the original element fails to display.
    Alt(v string) HTMLInput

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLInput

    // AutoComplete specifies whether the element should have autocomplete enabled.
    AutoComplete(v bool) HTMLInput

    // AutoFocus specifies that the element should automatically get focus when the page loads.
    AutoFocus(v bool) HTMLInput

    // Checked specifies that an input element should be pre-selected when the page loads (for checkbox or radio types).
    Checked(v bool) HTMLInput

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLInput

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLInput

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLInput

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLInput

    // DirName specifies that the text direction will be submitted.
    DirName(v string) HTMLInput

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLInput

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLInput

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLInput

    // FormAction specifies where to send the form-data when a form is submitted. Only for submit type.
    FormAction(v string) HTMLInput

    // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type.
    FormEncType(v string) HTMLInput

    // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type.
    FormMethod(v string) HTMLInput

    // FormNoValidate specifies that the form-data should not be validated on submission. Only for submit type.
    FormNoValidate(v bool) HTMLInput

    // FormTarget specifies where to display the response after submitting the form. Only for submit type.
    FormTarget(v string) HTMLInput

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLInput

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLInput

    // ID specifies a unique id for an element.
    ID(v string) HTMLInput

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLInput

    // List refers to a datalist element that contains pre-defined options for an input element.
    List(v string) HTMLInput

    // Max Specifies the maximum value.
    Max(v interface{}) HTMLInput

    // MaxLength specifies the maximum number of characters allowed in an element.
    MaxLength(v int) HTMLInput

    // Min specifies a minimum value.
    Min(v interface{}) HTMLInput

    // Multiple specifies that a user can enter more than one value.
    Multiple(v bool) HTMLInput

    // Name specifies the name of the element.
    Name(v string) HTMLInput

    // Pattern specifies a regular expression that an input element's value is checked against.
    Pattern(v string) HTMLInput

    // Placeholder specifies a short hint that describes the expected value of the element.
    Placeholder(v string) HTMLInput

    // ReadOnly specifies that the element is read-only.
    ReadOnly(v bool) HTMLInput

    // Required specifies that the element must be filled out before submitting the form.
    Required(v bool) HTMLInput

    // Size specifies the width.
    Size(v int) HTMLInput

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLInput

    // Src specifies the URL of the media file.
    Src(v string) HTMLInput

    // Step specifies the legal number intervals for an input field.
    Step(v float64) HTMLInput

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLInput

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLInput

    // Title specifies extra information about an element.
    Title(v string) HTMLInput

    // Type specifies the type of element.
    Type(v string) HTMLInput

    // Value specifies the value of the element.
    Value(v interface{}) HTMLInput

    // Width specifies the width of the element.
    Width(v int) HTMLInput

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLInput

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLInput

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLInput

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLInput

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLInput

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLInput

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLInput

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLInput

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLInput

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLInput

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLInput

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLInput

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLInput

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLInput

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLInput

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLInput

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLInput

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLInput

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLInput

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLInput

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLInput

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLInput

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLInput

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLInput

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLInput

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLInput

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLInput

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLInput

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLInput

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLInput

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLInput

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLInput

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLInput
}

func Input

func Input() HTMLInput

Input returns an HTML element that defines an input control.

type HTMLIns

HTMLIns is the interface that describes a <ins> HTML element.

type HTMLIns interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLIns

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLIns

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLIns

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLIns

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLIns

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLIns

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLIns

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLIns

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLIns

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLIns

    // ID specifies a unique id for an element.
    ID(v string) HTMLIns

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLIns

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLIns

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLIns

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLIns

    // Title specifies extra information about an element.
    Title(v string) HTMLIns

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLIns

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLIns

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLIns

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLIns

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLIns

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLIns

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLIns

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLIns

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLIns

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLIns

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLIns

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLIns

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLIns

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLIns

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLIns

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLIns

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLIns

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLIns

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLIns

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLIns

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLIns

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLIns

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLIns

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLIns

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLIns

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLIns

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLIns

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLIns

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLIns

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLIns

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLIns

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLIns
}

func Ins

func Ins() HTMLIns

Ins returns an HTML element that defines a text that has been inserted into a document.

type HTMLKbd

HTMLKbd is the interface that describes a <kbd> HTML element.

type HTMLKbd interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLKbd

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLKbd

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLKbd

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLKbd

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLKbd

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLKbd

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLKbd

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLKbd

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLKbd

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLKbd

    // ID specifies a unique id for an element.
    ID(v string) HTMLKbd

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLKbd

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLKbd

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLKbd

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLKbd

    // Title specifies extra information about an element.
    Title(v string) HTMLKbd

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLKbd

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLKbd

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLKbd

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLKbd

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLKbd

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLKbd

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLKbd

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLKbd

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLKbd

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLKbd

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLKbd

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLKbd

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLKbd

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLKbd

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLKbd

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLKbd

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLKbd

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLKbd

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLKbd

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLKbd

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLKbd

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLKbd

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLKbd

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLKbd

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLKbd

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLKbd

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLKbd

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLKbd

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLKbd

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLKbd

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLKbd

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLKbd
}

func Kbd

func Kbd() HTMLKbd

Kbd returns an HTML element that defines keyboard input.

type HTMLLabel

HTMLLabel is the interface that describes a <label> HTML element.

type HTMLLabel interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLLabel

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLLabel

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLLabel

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLLabel

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLLabel

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLabel

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLLabel

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLLabel

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLabel

    // For specifies which form element(s) a label/calculation is bound to.
    For(v string) HTMLLabel

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLLabel

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLLabel

    // ID specifies a unique id for an element.
    ID(v string) HTMLLabel

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLLabel

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLLabel

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLLabel

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLabel

    // Title specifies extra information about an element.
    Title(v string) HTMLLabel

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLLabel

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLLabel

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLLabel

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLLabel

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLLabel

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLLabel

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLLabel

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLLabel

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLLabel

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLLabel

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLLabel

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLLabel

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLLabel

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLLabel

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLLabel

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLLabel

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLLabel

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLLabel

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLLabel

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLLabel

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLLabel

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLLabel

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLLabel

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLLabel

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLLabel

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLLabel

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLLabel

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLLabel

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLLabel

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLLabel

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLLabel

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLLabel
}

func Label

func Label() HTMLLabel

Label returns an HTML element that defines a label for an input element.

type HTMLLegends

HTMLLegends is the interface that describes a <legends> HTML element.

type HTMLLegends interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLLegends

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLLegends

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLLegends

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLLegends

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLLegends

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLegends

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLLegends

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLLegends

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLegends

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLLegends

    // ID specifies a unique id for an element.
    ID(v string) HTMLLegends

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLLegends

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLLegends

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLLegends

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLegends

    // Title specifies extra information about an element.
    Title(v string) HTMLLegends

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLLegends

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLLegends

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLLegends

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLLegends

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLLegends

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLLegends

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLLegends

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLLegends

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLLegends

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLLegends

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLLegends

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLLegends

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLLegends

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLLegends

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLLegends

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLLegends

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLLegends

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLLegends

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLLegends

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLLegends

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLLegends

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLLegends

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLLegends

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLLegends

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLLegends

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLLegends

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLLegends

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLLegends

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLLegends

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLLegends

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLLegends

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLLegends
}

func Legends

func Legends() HTMLLegends

Legends returns an HTML element that defines a caption for a fieldset element.

type HTMLLi

HTMLLi is the interface that describes a <li> HTML element.

type HTMLLi interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLLi

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLLi

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLLi

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLLi

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLLi

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLi

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLLi

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLLi

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLi

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLLi

    // ID specifies a unique id for an element.
    ID(v string) HTMLLi

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLLi

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLLi

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLLi

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLi

    // Title specifies extra information about an element.
    Title(v string) HTMLLi

    // Value specifies the value of the element.
    Value(v interface{}) HTMLLi

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLLi

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLLi

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLLi

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLLi

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLLi

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLLi

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLLi

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLLi

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLLi

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLLi

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLLi

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLLi

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLLi

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLLi

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLLi

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLLi

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLLi

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLLi

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLLi

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLLi

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLLi

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLLi

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLLi

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLLi

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLLi

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLLi

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLLi

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLLi

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLLi

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLLi

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLLi

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLLi
}

func Li

func Li() HTMLLi

Li returns an HTML element that defines a list item.

HTMLLink is the interface that describes a <link> HTML element.

type HTMLLink interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLLink

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLLink

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLLink

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLink

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLLink

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLLink

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLink

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLLink

    // Href specifies the URL of the page the link goes to.
    Href(v string) HTMLLink

    // HrefLang specifies the language of the linked document.
    HrefLang(v string) HTMLLink

    // ID specifies a unique id for an element.
    ID(v string) HTMLLink

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLLink

    // Media specifies what media/device the linked document is optimized for.
    Media(v string) HTMLLink

    // Rel specifies the relationship between the current document and the linked document.
    Rel(v string) HTMLLink

    // Sizes specifies the size of the linked resource.
    Sizes(v string) HTMLLink

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLLink

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLLink

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLink

    // Title specifies extra information about an element.
    Title(v string) HTMLLink

    // Type specifies the type of element.
    Type(v string) HTMLLink

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLLink

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLLink

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLLink

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLLink

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLLink

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLLink

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLLink

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLLink

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLLink

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLLink

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLLink

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLLink

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLLink

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLLink

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLLink

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLLink

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLLink

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLLink

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLLink

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLLink

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLLink

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLLink

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLLink

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLLink

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLLink

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLLink

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLLink

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLLink

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLLink

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLLink

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLLink

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLLink

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLLink
}
func Link() HTMLLink

Link returns an HTML element that defines the relationship between a document and an external resource (most used to link to style sheets).

type HTMLMain

HTMLMain is the interface that describes a <main> HTML element.

type HTMLMain interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLMain

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLMain

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMain

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLMain

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMain

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMain

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMain

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMain

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMain

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMain

    // ID specifies a unique id for an element.
    ID(v string) HTMLMain

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMain

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMain

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMain

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMain

    // Title specifies extra information about an element.
    Title(v string) HTMLMain

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLMain

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLMain

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLMain

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLMain

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLMain

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLMain

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLMain

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLMain

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLMain

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLMain

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLMain

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLMain

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLMain

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLMain

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLMain

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLMain

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLMain

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLMain

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLMain

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLMain

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLMain

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLMain

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLMain

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLMain

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLMain

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLMain

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLMain

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLMain

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLMain

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLMain

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLMain

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLMain
}

func Main

func Main() HTMLMain

Main returns an HTML element that specifies the main content of a document.

type HTMLMap

HTMLMap is the interface that describes a <map> HTML element.

type HTMLMap interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLMap

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLMap

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMap

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLMap

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMap

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMap

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMap

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMap

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMap

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMap

    // ID specifies a unique id for an element.
    ID(v string) HTMLMap

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMap

    // Name specifies the name of the element.
    Name(v string) HTMLMap

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMap

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMap

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMap

    // Title specifies extra information about an element.
    Title(v string) HTMLMap

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLMap

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLMap

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLMap

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLMap

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLMap

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLMap

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLMap

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLMap

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLMap

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLMap

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLMap

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLMap

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLMap

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLMap

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLMap

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLMap

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLMap

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLMap

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLMap

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLMap

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLMap

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLMap

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLMap

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLMap

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLMap

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLMap

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLMap

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLMap

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLMap

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLMap

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLMap

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLMap
}

func Map

func Map() HTMLMap

Map returns an HTML element that defines a client-side image-map.

type HTMLMark

HTMLMark is the interface that describes a <mark> HTML element.

type HTMLMark interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLMark

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLMark

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMark

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLMark

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMark

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMark

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMark

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMark

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMark

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMark

    // ID specifies a unique id for an element.
    ID(v string) HTMLMark

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMark

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMark

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMark

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMark

    // Title specifies extra information about an element.
    Title(v string) HTMLMark

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLMark

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLMark

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLMark

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLMark

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLMark

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLMark

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLMark

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLMark

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLMark

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLMark

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLMark

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLMark

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLMark

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLMark

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLMark

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLMark

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLMark

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLMark

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLMark

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLMark

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLMark

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLMark

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLMark

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLMark

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLMark

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLMark

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLMark

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLMark

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLMark

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLMark

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLMark

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLMark
}

func Mark

func Mark() HTMLMark

Mark returns an HTML element that defines marked/highlighted text.

type HTMLMeta

HTMLMeta is the interface that describes a <meta> HTML element.

type HTMLMeta interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMeta

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLMeta

    // Charset specifies the character encoding.
    Charset(v string) HTMLMeta

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMeta

    // Content gives the value associated with the http-equiv or name attribute.
    Content(v string) HTMLMeta

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMeta

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMeta

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMeta

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMeta

    // HTTPEquiv provides an HTTP header for the information/value of the content attribute.
    HTTPEquiv(v string) HTMLMeta

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMeta

    // ID specifies a unique id for an element.
    ID(v string) HTMLMeta

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMeta

    // Name specifies the name of the element.
    Name(v string) HTMLMeta

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMeta

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMeta

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMeta

    // Title specifies extra information about an element.
    Title(v string) HTMLMeta
}

func Meta

func Meta() HTMLMeta

Meta returns an HTML element that .

type HTMLMeter

HTMLMeter is the interface that describes a <meter> HTML element.

type HTMLMeter interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLMeter

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLMeter

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLMeter

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLMeter

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLMeter

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLMeter

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLMeter

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLMeter

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLMeter

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLMeter

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLMeter

    // High specifies the range that is considered to be a high value.
    High(v float64) HTMLMeter

    // ID specifies a unique id for an element.
    ID(v string) HTMLMeter

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLMeter

    // Low specifies the range that is considered to be a low value.
    Low(v float64) HTMLMeter

    // Max Specifies the maximum value.
    Max(v interface{}) HTMLMeter

    // Min specifies a minimum value.
    Min(v interface{}) HTMLMeter

    // Optimum specifies what value is the optimal value for the gauge.
    Optimum(v float64) HTMLMeter

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLMeter

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLMeter

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMeter

    // Title specifies extra information about an element.
    Title(v string) HTMLMeter

    // Value specifies the value of the element.
    Value(v interface{}) HTMLMeter

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLMeter

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLMeter

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLMeter

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLMeter

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLMeter

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLMeter

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLMeter

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLMeter

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLMeter

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLMeter

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLMeter

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLMeter

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLMeter

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLMeter

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLMeter

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLMeter

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLMeter

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLMeter

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLMeter

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLMeter

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLMeter

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLMeter

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLMeter

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLMeter

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLMeter

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLMeter

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLMeter

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLMeter

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLMeter

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLMeter

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLMeter

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLMeter
}

func Meter

func Meter() HTMLMeter

Meter returns an HTML element that defines a scalar measurement within a known range (a gauge).

type HTMLNav

HTMLNav is the interface that describes a <nav> HTML element.

type HTMLNav interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLNav

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLNav

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLNav

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLNav

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLNav

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLNav

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLNav

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLNav

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLNav

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLNav

    // ID specifies a unique id for an element.
    ID(v string) HTMLNav

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLNav

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLNav

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLNav

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLNav

    // Title specifies extra information about an element.
    Title(v string) HTMLNav

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLNav

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLNav

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLNav

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLNav

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLNav

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLNav

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLNav

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLNav

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLNav

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLNav

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLNav

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLNav

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLNav

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLNav

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLNav

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLNav

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLNav

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLNav

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLNav

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLNav

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLNav

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLNav

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLNav

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLNav

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLNav

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLNav

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLNav

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLNav

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLNav

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLNav

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLNav

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLNav
}
func Nav() HTMLNav

Nav returns an HTML element that defines navigation links.

type HTMLNoScript

HTMLNoScript is the interface that describes a <noscript> HTML element.

type HTMLNoScript interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLNoScript

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLNoScript

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLNoScript

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLNoScript

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLNoScript

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLNoScript

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLNoScript

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLNoScript

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLNoScript

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLNoScript

    // ID specifies a unique id for an element.
    ID(v string) HTMLNoScript

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLNoScript

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLNoScript

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLNoScript

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLNoScript

    // Title specifies extra information about an element.
    Title(v string) HTMLNoScript
}

func NoScript

func NoScript() HTMLNoScript

NoScript returns an HTML element that defines an alternate content for users that do not support client-side scripts.

type HTMLObject

HTMLObject is the interface that describes a <object> HTML element.

type HTMLObject interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLObject

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLObject

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLObject

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLObject

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLObject

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLObject

    // Data specifies the URL of the resource to be used by the object.
    Data(v string) HTMLObject

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLObject

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLObject

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLObject

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLObject

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLObject

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLObject

    // ID specifies a unique id for an element.
    ID(v string) HTMLObject

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLObject

    // Name specifies the name of the element.
    Name(v string) HTMLObject

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLObject

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLObject

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLObject

    // Title specifies extra information about an element.
    Title(v string) HTMLObject

    // Type specifies the type of element.
    Type(v string) HTMLObject

    // UseMap specifies an image as a client-side image-map.
    UseMap(v string) HTMLObject

    // Width specifies the width of the element.
    Width(v int) HTMLObject

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler) HTMLObject

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLObject

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler) HTMLObject

    // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering.
    OnCanPlayThrough(h EventHandler) HTMLObject

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLObject

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLObject

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLObject

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLObject

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler) HTMLObject

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLObject

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLObject

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLObject

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLObject

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLObject

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLObject

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLObject

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLObject

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLObject

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler) HTMLObject

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler) HTMLObject

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler) HTMLObject

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLObject

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLObject

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLObject

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLObject

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLObject

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLObject

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLObject

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler) HTMLObject

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler) HTMLObject

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLObject

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLObject

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLObject

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLObject

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLObject

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLObject

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler) HTMLObject

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler) HTMLObject

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler) HTMLObject

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler) HTMLObject

    // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
    OnRateChange(h EventHandler) HTMLObject

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLObject

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLObject

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLObject

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler) HTMLObject

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler) HTMLObject

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLObject

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler) HTMLObject

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLObject

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler) HTMLObject

    // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media).
    OnTimeUpdate(h EventHandler) HTMLObject

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler) HTMLObject

    // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data).
    OnWaiting(h EventHandler) HTMLObject

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLObject

    // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnloadedMetaData(h EventHandler) HTMLObject
}

func Object

func Object() HTMLObject

Object returns an HTML element that defines an embedded object.

type HTMLOl

HTMLOl is the interface that describes a <ol> HTML element.

type HTMLOl interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLOl

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLOl

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLOl

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLOl

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLOl

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLOl

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLOl

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLOl

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLOl

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLOl

    // ID specifies a unique id for an element.
    ID(v string) HTMLOl

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLOl

    // Reversed specifies that the list order should be descending (9,8,7...).
    Reversed(v bool) HTMLOl

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLOl

    // Start specifies the start value of the ordered list.
    Start(v int) HTMLOl

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLOl

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOl

    // Title specifies extra information about an element.
    Title(v string) HTMLOl

    // Type specifies the type of element.
    Type(v string) HTMLOl

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLOl

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLOl

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLOl

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLOl

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLOl

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLOl

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLOl

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLOl

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLOl

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLOl

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLOl

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLOl

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLOl

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLOl

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLOl

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLOl

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLOl

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLOl

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLOl

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLOl

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLOl

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLOl

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLOl

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLOl

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLOl

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLOl

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLOl

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLOl

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLOl

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLOl

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLOl

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLOl
}

func Ol

func Ol() HTMLOl

Ol returns an HTML element that defines an ordered list.

type HTMLOptGroup

HTMLOptGroup is the interface that describes a <optgroup> HTML element.

type HTMLOptGroup interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLOptGroup

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLOptGroup

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLOptGroup

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLOptGroup

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLOptGroup

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLOptGroup

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLOptGroup

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLOptGroup

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLOptGroup

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLOptGroup

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLOptGroup

    // ID specifies a unique id for an element.
    ID(v string) HTMLOptGroup

    // Label specifies a shorter label for the option.
    Label(v string) HTMLOptGroup

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLOptGroup

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLOptGroup

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLOptGroup

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOptGroup

    // Title specifies extra information about an element.
    Title(v string) HTMLOptGroup

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLOptGroup

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLOptGroup

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLOptGroup

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLOptGroup

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLOptGroup

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLOptGroup

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLOptGroup

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLOptGroup

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLOptGroup

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLOptGroup

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLOptGroup

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLOptGroup

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLOptGroup

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLOptGroup

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLOptGroup

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLOptGroup

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLOptGroup

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLOptGroup

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLOptGroup

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLOptGroup

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLOptGroup

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLOptGroup

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLOptGroup

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLOptGroup

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLOptGroup

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLOptGroup

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLOptGroup

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLOptGroup

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLOptGroup

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLOptGroup

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLOptGroup

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLOptGroup
}

func OptGroup

func OptGroup() HTMLOptGroup

OptGroup returns an HTML element that defines a group of related options in a drop-down list.

type HTMLOption

HTMLOption is the interface that describes a <option> HTML element.

type HTMLOption interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLOption

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLOption

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLOption

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLOption

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLOption

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLOption

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLOption

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLOption

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLOption

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLOption

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLOption

    // ID specifies a unique id for an element.
    ID(v string) HTMLOption

    // Label specifies a shorter label for the option.
    Label(v string) HTMLOption

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLOption

    // Selected specifies that an option should be pre-selected when the page loads.
    Selected(v bool) HTMLOption

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLOption

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLOption

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOption

    // Title specifies extra information about an element.
    Title(v string) HTMLOption

    // Value specifies the value of the element.
    Value(v interface{}) HTMLOption

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLOption

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLOption

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLOption

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLOption

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLOption

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLOption

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLOption

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLOption

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLOption

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLOption

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLOption

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLOption

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLOption

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLOption

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLOption

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLOption

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLOption

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLOption

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLOption

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLOption

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLOption

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLOption

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLOption

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLOption

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLOption

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLOption

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLOption

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLOption

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLOption

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLOption

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLOption

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLOption
}

func Option

func Option() HTMLOption

Option returns an HTML element that defines an option in a drop-down list.

type HTMLOutput

HTMLOutput is the interface that describes a <output> HTML element.

type HTMLOutput interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLOutput

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLOutput

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLOutput

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLOutput

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLOutput

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLOutput

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLOutput

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLOutput

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLOutput

    // For specifies which form element(s) a label/calculation is bound to.
    For(v string) HTMLOutput

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLOutput

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLOutput

    // ID specifies a unique id for an element.
    ID(v string) HTMLOutput

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLOutput

    // Name specifies the name of the element.
    Name(v string) HTMLOutput

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLOutput

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLOutput

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOutput

    // Title specifies extra information about an element.
    Title(v string) HTMLOutput

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLOutput

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLOutput

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLOutput

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLOutput

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLOutput

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLOutput

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLOutput

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLOutput

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLOutput

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLOutput

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLOutput

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLOutput

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLOutput

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLOutput

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLOutput

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLOutput

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLOutput

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLOutput

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLOutput

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLOutput

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLOutput

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLOutput

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLOutput

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLOutput

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLOutput

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLOutput

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLOutput

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLOutput

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLOutput

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLOutput

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLOutput

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLOutput
}

func Output

func Output() HTMLOutput

Output returns an HTML element that .

type HTMLP

HTMLP is the interface that describes a <p> HTML element.

type HTMLP interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLP

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLP

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLP

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLP

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLP

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLP

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLP

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLP

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLP

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLP

    // ID specifies a unique id for an element.
    ID(v string) HTMLP

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLP

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLP

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLP

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLP

    // Title specifies extra information about an element.
    Title(v string) HTMLP

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLP

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLP

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLP

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLP

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLP

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLP

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLP

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLP

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLP

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLP

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLP

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLP

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLP

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLP

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLP

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLP

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLP

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLP

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLP

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLP

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLP

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLP

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLP

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLP

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLP

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLP

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLP

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLP

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLP

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLP

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLP

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLP
}

func P

func P() HTMLP

P returns an HTML element that defines a paragraph.

type HTMLParam

HTMLParam is the interface that describes a <param> HTML element.

type HTMLParam interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLParam

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLParam

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLParam

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLParam

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLParam

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLParam

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLParam

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLParam

    // ID specifies a unique id for an element.
    ID(v string) HTMLParam

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLParam

    // Name specifies the name of the element.
    Name(v string) HTMLParam

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLParam

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLParam

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLParam

    // Title specifies extra information about an element.
    Title(v string) HTMLParam

    // Value specifies the value of the element.
    Value(v interface{}) HTMLParam

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLParam

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLParam

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLParam

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLParam

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLParam

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLParam

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLParam

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLParam

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLParam

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLParam

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLParam

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLParam

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLParam

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLParam

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLParam

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLParam

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLParam

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLParam

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLParam

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLParam

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLParam

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLParam

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLParam

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLParam

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLParam

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLParam

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLParam

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLParam

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLParam

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLParam

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLParam

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLParam
}

func Param

func Param() HTMLParam

Param returns an HTML element that defines a parameter for an object.

type HTMLPicture

HTMLPicture is the interface that describes a <picture> HTML element.

type HTMLPicture interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLPicture

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLPicture

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLPicture

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLPicture

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLPicture

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLPicture

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLPicture

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLPicture

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLPicture

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLPicture

    // ID specifies a unique id for an element.
    ID(v string) HTMLPicture

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLPicture

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLPicture

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLPicture

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLPicture

    // Title specifies extra information about an element.
    Title(v string) HTMLPicture

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLPicture

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLPicture

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLPicture

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLPicture

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLPicture

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLPicture

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLPicture

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLPicture

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLPicture

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLPicture

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLPicture

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLPicture

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLPicture

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLPicture

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLPicture

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLPicture

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLPicture

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLPicture

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLPicture

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLPicture

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLPicture

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLPicture

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLPicture

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLPicture

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLPicture

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLPicture

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLPicture

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLPicture

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLPicture

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLPicture

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLPicture

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLPicture
}

func Picture

func Picture() HTMLPicture

Picture returns an HTML element that defines a container for multiple image resources.

type HTMLPre

HTMLPre is the interface that describes a <pre> HTML element.

type HTMLPre interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLPre

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLPre

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLPre

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLPre

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLPre

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLPre

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLPre

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLPre

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLPre

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLPre

    // ID specifies a unique id for an element.
    ID(v string) HTMLPre

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLPre

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLPre

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLPre

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLPre

    // Title specifies extra information about an element.
    Title(v string) HTMLPre

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLPre

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLPre

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLPre

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLPre

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLPre

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLPre

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLPre

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLPre

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLPre

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLPre

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLPre

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLPre

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLPre

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLPre

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLPre

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLPre

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLPre

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLPre

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLPre

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLPre

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLPre

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLPre

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLPre

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLPre

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLPre

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLPre

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLPre

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLPre

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLPre

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLPre

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLPre

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLPre
}

func Pre

func Pre() HTMLPre

Pre returns an HTML element that defines preformatted text.

type HTMLProgress

HTMLProgress is the interface that describes a <progress> HTML element.

type HTMLProgress interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLProgress

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLProgress

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLProgress

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLProgress

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLProgress

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLProgress

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLProgress

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLProgress

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLProgress

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLProgress

    // ID specifies a unique id for an element.
    ID(v string) HTMLProgress

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLProgress

    // Max Specifies the maximum value.
    Max(v interface{}) HTMLProgress

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLProgress

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLProgress

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLProgress

    // Title specifies extra information about an element.
    Title(v string) HTMLProgress

    // Value specifies the value of the element.
    Value(v interface{}) HTMLProgress

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLProgress

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLProgress

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLProgress

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLProgress

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLProgress

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLProgress

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLProgress

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLProgress

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLProgress

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLProgress

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLProgress

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLProgress

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLProgress

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLProgress

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLProgress

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLProgress

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLProgress

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLProgress

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLProgress

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLProgress

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLProgress

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLProgress

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLProgress

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLProgress

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLProgress

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLProgress

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLProgress

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLProgress

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLProgress

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLProgress

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLProgress

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLProgress
}

func Progress

func Progress() HTMLProgress

Progress returns an HTML element that represents the progress of a task.

type HTMLQ

HTMLQ is the interface that describes a <q> HTML element.

type HTMLQ interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLQ

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLQ

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLQ

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLQ

    // Cite specifies a URL which explains the quote/deleted/inserted text.
    Cite(v string) HTMLQ

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLQ

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLQ

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLQ

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLQ

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLQ

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLQ

    // ID specifies a unique id for an element.
    ID(v string) HTMLQ

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLQ

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLQ

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLQ

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLQ

    // Title specifies extra information about an element.
    Title(v string) HTMLQ

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLQ

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLQ

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLQ

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLQ

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLQ

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLQ

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLQ

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLQ

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLQ

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLQ

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLQ

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLQ

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLQ

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLQ

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLQ

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLQ

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLQ

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLQ

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLQ

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLQ

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLQ

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLQ

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLQ

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLQ

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLQ

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLQ

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLQ

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLQ

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLQ

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLQ

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLQ

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLQ
}

func Q

func Q() HTMLQ

Q returns an HTML element that defines a short quotation.

type HTMLRp

HTMLRp is the interface that describes a <rp> HTML element.

type HTMLRp interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLRp

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLRp

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLRp

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLRp

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLRp

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLRp

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLRp

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLRp

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLRp

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLRp

    // ID specifies a unique id for an element.
    ID(v string) HTMLRp

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLRp

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLRp

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLRp

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLRp

    // Title specifies extra information about an element.
    Title(v string) HTMLRp

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLRp

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLRp

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLRp

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLRp

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLRp

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLRp

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLRp

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLRp

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLRp

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLRp

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLRp

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLRp

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLRp

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLRp

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLRp

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLRp

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLRp

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLRp

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLRp

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLRp

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLRp

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLRp

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLRp

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLRp

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLRp

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLRp

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLRp

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLRp

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLRp

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLRp

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLRp

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLRp
}

func Rp

func Rp() HTMLRp

Rp returns an HTML element that defines what to show in browsers that do not support ruby annotations.

type HTMLRt

HTMLRt is the interface that describes a <rt> HTML element.

type HTMLRt interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLRt

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLRt

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLRt

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLRt

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLRt

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLRt

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLRt

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLRt

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLRt

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLRt

    // ID specifies a unique id for an element.
    ID(v string) HTMLRt

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLRt

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLRt

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLRt

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLRt

    // Title specifies extra information about an element.
    Title(v string) HTMLRt

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLRt

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLRt

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLRt

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLRt

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLRt

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLRt

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLRt

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLRt

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLRt

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLRt

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLRt

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLRt

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLRt

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLRt

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLRt

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLRt

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLRt

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLRt

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLRt

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLRt

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLRt

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLRt

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLRt

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLRt

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLRt

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLRt

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLRt

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLRt

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLRt

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLRt

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLRt

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLRt
}

func Rt

func Rt() HTMLRt

Rt returns an HTML element that defines an explanation/pronunciation of characters (for East Asian typography).

type HTMLRuby

HTMLRuby is the interface that describes a <ruby> HTML element.

type HTMLRuby interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLRuby

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLRuby

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLRuby

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLRuby

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLRuby

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLRuby

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLRuby

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLRuby

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLRuby

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLRuby

    // ID specifies a unique id for an element.
    ID(v string) HTMLRuby

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLRuby

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLRuby

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLRuby

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLRuby

    // Title specifies extra information about an element.
    Title(v string) HTMLRuby

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLRuby

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLRuby

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLRuby

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLRuby

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLRuby

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLRuby

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLRuby

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLRuby

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLRuby

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLRuby

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLRuby

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLRuby

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLRuby

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLRuby

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLRuby

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLRuby

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLRuby

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLRuby

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLRuby

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLRuby

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLRuby

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLRuby

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLRuby

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLRuby

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLRuby

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLRuby

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLRuby

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLRuby

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLRuby

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLRuby

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLRuby

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLRuby
}

func Ruby

func Ruby() HTMLRuby

Ruby returns an HTML element that defines a ruby annotation (for East Asian typography).

type HTMLS

HTMLS is the interface that describes a <s> HTML element.

type HTMLS interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLS

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLS

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLS

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLS

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLS

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLS

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLS

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLS

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLS

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLS

    // ID specifies a unique id for an element.
    ID(v string) HTMLS

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLS

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLS

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLS

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLS

    // Title specifies extra information about an element.
    Title(v string) HTMLS

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLS

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLS

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLS

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLS

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLS

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLS

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLS

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLS

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLS

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLS

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLS

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLS

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLS

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLS

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLS

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLS

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLS

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLS

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLS

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLS

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLS

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLS

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLS

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLS

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLS

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLS

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLS

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLS

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLS

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLS

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLS

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLS
}

func S

func S() HTMLS

S returns an HTML element that Defines text that is no longer correct.

type HTMLSamp

HTMLSamp is the interface that describes a <samp> HTML element.

type HTMLSamp interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLSamp

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLSamp

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLSamp

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLSamp

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLSamp

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLSamp

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLSamp

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLSamp

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLSamp

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLSamp

    // ID specifies a unique id for an element.
    ID(v string) HTMLSamp

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLSamp

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLSamp

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSamp

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSamp

    // Title specifies extra information about an element.
    Title(v string) HTMLSamp

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLSamp

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLSamp

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLSamp

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLSamp

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLSamp

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLSamp

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLSamp

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLSamp

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLSamp

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLSamp

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLSamp

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLSamp

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLSamp

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLSamp

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLSamp

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLSamp

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLSamp

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLSamp

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLSamp

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLSamp

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLSamp

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLSamp

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLSamp

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLSamp

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLSamp

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLSamp

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLSamp

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLSamp

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLSamp

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLSamp

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLSamp

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLSamp
}

func Samp

func Samp() HTMLSamp

Samp returns an HTML element that defines sample output from a computer program.

type HTMLScript

HTMLScript is the interface that describes a <script> HTML element.

type HTMLScript interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLScript

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLScript

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLScript

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLScript

    // Async specifies that the script is executed asynchronously (only for external scripts).
    Async(v bool) HTMLScript

    // Charset specifies the character encoding.
    Charset(v string) HTMLScript

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLScript

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLScript

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLScript

    // Defer specifies that the script is executed when the page has finished parsing (only for external scripts).
    Defer(v bool) HTMLScript

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLScript

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLScript

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLScript

    // ID specifies a unique id for an element.
    ID(v string) HTMLScript

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLScript

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLScript

    // Src specifies the URL of the media file.
    Src(v string) HTMLScript

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLScript

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLScript

    // Title specifies extra information about an element.
    Title(v string) HTMLScript

    // Type specifies the type of element.
    Type(v string) HTMLScript

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLScript
}

func Script

func Script() HTMLScript

Script returns an HTML element that defines a client-side script.

type HTMLSection

HTMLSection is the interface that describes a <section> HTML element.

type HTMLSection interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLSection

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLSection

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLSection

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLSection

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLSection

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLSection

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLSection

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLSection

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLSection

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLSection

    // ID specifies a unique id for an element.
    ID(v string) HTMLSection

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLSection

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLSection

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSection

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSection

    // Title specifies extra information about an element.
    Title(v string) HTMLSection

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLSection

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLSection

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLSection

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLSection

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLSection

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLSection

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLSection

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLSection

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLSection

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLSection

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLSection

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLSection

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLSection

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLSection

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLSection

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLSection

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLSection

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLSection

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLSection

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLSection

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLSection

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLSection

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLSection

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLSection

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLSection

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLSection

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLSection

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLSection

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLSection

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLSection

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLSection

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLSection
}

func Section

func Section() HTMLSection

Section returns an HTML element that defines a section in a document.

type HTMLSelect

HTMLSelect is the interface that describes a <select> HTML element.

type HTMLSelect interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLSelect

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLSelect

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLSelect

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLSelect

    // AutoFocus specifies that the element should automatically get focus when the page loads.
    AutoFocus(v bool) HTMLSelect

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLSelect

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLSelect

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLSelect

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLSelect

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLSelect

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLSelect

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLSelect

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLSelect

    // ID specifies a unique id for an element.
    ID(v string) HTMLSelect

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLSelect

    // Multiple specifies that a user can enter more than one value.
    Multiple(v bool) HTMLSelect

    // Name specifies the name of the element.
    Name(v string) HTMLSelect

    // Required specifies that the element must be filled out before submitting the form.
    Required(v bool) HTMLSelect

    // Size specifies the width.
    Size(v int) HTMLSelect

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLSelect

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSelect

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSelect

    // Title specifies extra information about an element.
    Title(v string) HTMLSelect

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLSelect

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLSelect

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLSelect

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLSelect

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLSelect

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLSelect

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLSelect

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLSelect

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLSelect

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLSelect

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLSelect

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLSelect

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLSelect

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLSelect

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLSelect

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLSelect

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLSelect

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLSelect

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLSelect

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLSelect

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLSelect

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLSelect

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLSelect

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLSelect

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLSelect

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLSelect

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLSelect

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLSelect

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLSelect

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLSelect

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLSelect

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLSelect
}

func Select

func Select() HTMLSelect

Select returns an HTML element that defines a drop-down list.

type HTMLSmall

HTMLSmall is the interface that describes a <small> HTML element.

type HTMLSmall interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLSmall

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLSmall

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLSmall

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLSmall

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLSmall

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLSmall

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLSmall

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLSmall

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLSmall

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLSmall

    // ID specifies a unique id for an element.
    ID(v string) HTMLSmall

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLSmall

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLSmall

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSmall

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSmall

    // Title specifies extra information about an element.
    Title(v string) HTMLSmall

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLSmall

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLSmall

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLSmall

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLSmall

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLSmall

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLSmall

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLSmall

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLSmall

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLSmall

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLSmall

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLSmall

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLSmall

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLSmall

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLSmall

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLSmall

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLSmall

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLSmall

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLSmall

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLSmall

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLSmall

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLSmall

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLSmall

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLSmall

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLSmall

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLSmall

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLSmall

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLSmall

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLSmall

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLSmall

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLSmall

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLSmall

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLSmall
}

func Small

func Small() HTMLSmall

Small returns an HTML element that defines smaller text.

type HTMLSource

HTMLSource is the interface that describes a <source> HTML element.

type HTMLSource interface {
    UI

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLSource

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLSource

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLSource

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLSource

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLSource

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLSource

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLSource

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLSource

    // ID specifies a unique id for an element.
    ID(v string) HTMLSource

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLSource

    // Media specifies what media/device the linked document is optimized for.
    Media(v string) HTMLSource

    // Sizes specifies the size of the linked resource.
    Sizes(v string) HTMLSource

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLSource

    // Src specifies the URL of the media file.
    Src(v string) HTMLSource

    // SrcSet specifies the URL of the image to use in different situations.
    SrcSet(v string) HTMLSource

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSource

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSource

    // Title specifies extra information about an element.
    Title(v string) HTMLSource

    // Type specifies the type of element.
    Type(v string) HTMLSource

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLSource

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLSource

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLSource

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLSource

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLSource

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLSource

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLSource

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLSource

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLSource

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLSource

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLSource

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLSource

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLSource

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLSource

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLSource

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLSource

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLSource

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLSource

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLSource

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLSource

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLSource

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLSource

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLSource

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLSource

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLSource

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLSource

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLSource

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLSource

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLSource

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLSource

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLSource

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLSource
}

func Source

func Source() HTMLSource

Source returns an HTML element that .

type HTMLSpan

HTMLSpan is the interface that describes a <span> HTML element.

type HTMLSpan interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLSpan

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLSpan

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLSpan

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLSpan

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLSpan

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLSpan

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLSpan

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLSpan

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLSpan

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLSpan

    // ID specifies a unique id for an element.
    ID(v string) HTMLSpan

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLSpan

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLSpan

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSpan

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSpan

    // Title specifies extra information about an element.
    Title(v string) HTMLSpan

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLSpan

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLSpan

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLSpan

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLSpan

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLSpan

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLSpan

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLSpan

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLSpan

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLSpan

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLSpan

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLSpan

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLSpan

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLSpan

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLSpan

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLSpan

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLSpan

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLSpan

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLSpan

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLSpan

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLSpan

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLSpan

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLSpan

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLSpan

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLSpan

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLSpan

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLSpan

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLSpan

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLSpan

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLSpan

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLSpan

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLSpan

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLSpan
}

func Span

func Span() HTMLSpan

Span returns an HTML element that defines a section in a document.

type HTMLStrong

HTMLStrong is the interface that describes a <strong> HTML element.

type HTMLStrong interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLStrong

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLStrong

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLStrong

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLStrong

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLStrong

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLStrong

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLStrong

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLStrong

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLStrong

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLStrong

    // ID specifies a unique id for an element.
    ID(v string) HTMLStrong

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLStrong

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLStrong

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLStrong

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLStrong

    // Title specifies extra information about an element.
    Title(v string) HTMLStrong

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLStrong

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLStrong

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLStrong

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLStrong

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLStrong

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLStrong

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLStrong

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLStrong

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLStrong

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLStrong

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLStrong

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLStrong

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLStrong

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLStrong

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLStrong

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLStrong

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLStrong

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLStrong

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLStrong

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLStrong

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLStrong

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLStrong

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLStrong

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLStrong

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLStrong

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLStrong

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLStrong

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLStrong

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLStrong

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLStrong

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLStrong

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLStrong
}

func Strong

func Strong() HTMLStrong

Strong returns an HTML element that defines important text.

type HTMLStyle

HTMLStyle is the interface that describes a <style> HTML element.

type HTMLStyle interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLStyle

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLStyle

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLStyle

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLStyle

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLStyle

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLStyle

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLStyle

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLStyle

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLStyle

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLStyle

    // ID specifies a unique id for an element.
    ID(v string) HTMLStyle

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLStyle

    // Media specifies what media/device the linked document is optimized for.
    Media(v string) HTMLStyle

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLStyle

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLStyle

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLStyle

    // Title specifies extra information about an element.
    Title(v string) HTMLStyle

    // Type specifies the type of element.
    Type(v string) HTMLStyle

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLStyle

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLStyle

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLStyle

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLStyle

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLStyle

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLStyle

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLStyle

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLStyle

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLStyle

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLStyle

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLStyle

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLStyle

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLStyle

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLStyle

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLStyle

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLStyle

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLStyle

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLStyle

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLStyle

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLStyle

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler) HTMLStyle

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLStyle

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLStyle

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLStyle

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLStyle

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLStyle

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLStyle

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLStyle

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLStyle

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLStyle

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLStyle

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLStyle

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLStyle
}

func Style

func Style() HTMLStyle

Style returns an HTML element that defines style information for a document.

type HTMLSub

HTMLSub is the interface that describes a <sub> HTML element.

type HTMLSub interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLSub

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLSub

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLSub

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLSub

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLSub

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLSub

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLSub

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLSub

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLSub

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLSub

    // ID specifies a unique id for an element.
    ID(v string) HTMLSub

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLSub

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLSub

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSub

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSub

    // Title specifies extra information about an element.
    Title(v string) HTMLSub

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLSub

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLSub

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLSub

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLSub

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLSub

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLSub

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLSub

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLSub

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLSub

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLSub

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLSub

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLSub

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLSub

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLSub

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLSub

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLSub

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLSub

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLSub

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLSub

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLSub

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLSub

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLSub

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLSub

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLSub

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLSub

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLSub

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLSub

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLSub

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLSub

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLSub

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLSub

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLSub
}

func Sub

func Sub() HTMLSub

Sub returns an HTML element that defines subscripted text.

type HTMLSummary

HTMLSummary is the interface that describes a <summary> HTML element.

type HTMLSummary interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLSummary

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLSummary

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLSummary

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLSummary

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLSummary

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLSummary

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLSummary

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLSummary

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLSummary

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLSummary

    // ID specifies a unique id for an element.
    ID(v string) HTMLSummary

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLSummary

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLSummary

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSummary

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSummary

    // Title specifies extra information about an element.
    Title(v string) HTMLSummary

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLSummary

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLSummary

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLSummary

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLSummary

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLSummary

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLSummary

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLSummary

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLSummary

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLSummary

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLSummary

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLSummary

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLSummary

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLSummary

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLSummary

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLSummary

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLSummary

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLSummary

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLSummary

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLSummary

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLSummary

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLSummary

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLSummary

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLSummary

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLSummary

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLSummary

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLSummary

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLSummary

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLSummary

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLSummary

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLSummary

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLSummary

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLSummary
}

func Summary

func Summary() HTMLSummary

Summary returns an HTML element that defines a visible heading for a details element.

type HTMLSup

HTMLSup is the interface that describes a <sup> HTML element.

type HTMLSup interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLSup

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLSup

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLSup

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLSup

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLSup

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLSup

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLSup

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLSup

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLSup

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLSup

    // ID specifies a unique id for an element.
    ID(v string) HTMLSup

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLSup

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLSup

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSup

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSup

    // Title specifies extra information about an element.
    Title(v string) HTMLSup

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLSup

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLSup

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLSup

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLSup

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLSup

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLSup

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLSup

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLSup

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLSup

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLSup

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLSup

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLSup

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLSup

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLSup

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLSup

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLSup

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLSup

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLSup

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLSup

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLSup

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLSup

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLSup

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLSup

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLSup

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLSup

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLSup

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLSup

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLSup

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLSup

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLSup

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLSup

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLSup
}

func Sup

func Sup() HTMLSup

Sup returns an HTML element that defines superscripted text.

type HTMLTBody

HTMLTBody is the interface that describes a <tbody> HTML element.

type HTMLTBody interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTBody

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTBody

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTBody

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTBody

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTBody

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTBody

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTBody

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTBody

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTBody

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTBody

    // ID specifies a unique id for an element.
    ID(v string) HTMLTBody

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTBody

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTBody

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTBody

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTBody

    // Title specifies extra information about an element.
    Title(v string) HTMLTBody

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLTBody

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLTBody

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLTBody

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLTBody

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLTBody

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLTBody

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLTBody

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLTBody

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLTBody

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLTBody

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLTBody

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLTBody

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLTBody

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLTBody

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLTBody

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLTBody

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLTBody

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLTBody

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLTBody

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLTBody

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLTBody

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLTBody

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLTBody

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLTBody

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLTBody

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLTBody

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLTBody

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLTBody

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLTBody

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLTBody

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLTBody

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLTBody
}

func TBody

func TBody() HTMLTBody

TBody returns an HTML element that groups the body content in a table.

type HTMLTHead

HTMLTHead is the interface that describes a <thead> HTML element.

type HTMLTHead interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTHead

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTHead

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTHead

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTHead

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTHead

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTHead

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTHead

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTHead

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTHead

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTHead

    // ID specifies a unique id for an element.
    ID(v string) HTMLTHead

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTHead

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTHead

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTHead

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTHead

    // Title specifies extra information about an element.
    Title(v string) HTMLTHead

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLTHead

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLTHead

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLTHead

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLTHead

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLTHead

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLTHead

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLTHead

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLTHead

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLTHead

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLTHead

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLTHead

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLTHead

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLTHead

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLTHead

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLTHead

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLTHead

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLTHead

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLTHead

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLTHead

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLTHead

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLTHead

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLTHead

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLTHead

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLTHead

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLTHead

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLTHead

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLTHead

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLTHead

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLTHead

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLTHead

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLTHead

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLTHead
}

func THead

func THead() HTMLTHead

THead returns an HTML element that groups the header content in a table

type HTMLTable

HTMLTable is the interface that describes a <table> HTML element.

type HTMLTable interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTable

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTable

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTable

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTable

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTable

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTable

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTable

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTable

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTable

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTable

    // ID specifies a unique id for an element.
    ID(v string) HTMLTable

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTable

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTable

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTable

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTable

    // Title specifies extra information about an element.
    Title(v string) HTMLTable

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLTable

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLTable

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLTable

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLTable

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLTable

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLTable

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLTable

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLTable

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLTable

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLTable

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLTable

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLTable

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLTable

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLTable

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLTable

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLTable

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLTable

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLTable

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLTable

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLTable

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLTable

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLTable

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLTable

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLTable

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLTable

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLTable

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLTable

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLTable

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLTable

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLTable

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLTable

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLTable
}

func Table

func Table() HTMLTable

Table returns an HTML element that defines a table.

type HTMLTd

HTMLTd is the interface that describes a <td> HTML element.

type HTMLTd interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTd

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTd

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTd

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTd

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTd

    // ColSpan specifies the number of columns a table cell should span.
    ColSpan(v int) HTMLTd

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTd

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTd

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTd

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTd

    // Headers specifies one or more headers cells a cell is related to.
    Headers(v string) HTMLTd

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTd

    // ID specifies a unique id for an element.
    ID(v string) HTMLTd

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTd

    // Rowspan specifies the number of rows a table cell should span.
    Rowspan(v int) HTMLTd

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTd

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTd

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTd

    // Title specifies extra information about an element.
    Title(v string) HTMLTd

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLTd

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLTd

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLTd

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLTd

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLTd

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLTd

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLTd

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLTd

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLTd

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLTd

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLTd

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLTd

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLTd

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLTd

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLTd

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLTd

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLTd

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLTd

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLTd

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLTd

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLTd

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLTd

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLTd

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLTd

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLTd

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLTd

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLTd

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLTd

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLTd

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLTd

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLTd

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLTd
}

func Td

func Td() HTMLTd

Td returns an HTML element that defines a cell in a table.

type HTMLTemplate

HTMLTemplate is the interface that describes a <template> HTML element.

type HTMLTemplate interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTemplate

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTemplate

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTemplate

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTemplate

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTemplate

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTemplate

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTemplate

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTemplate

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTemplate

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTemplate

    // ID specifies a unique id for an element.
    ID(v string) HTMLTemplate

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTemplate

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTemplate

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTemplate

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTemplate

    // Title specifies extra information about an element.
    Title(v string) HTMLTemplate
}

func Template

func Template() HTMLTemplate

Template returns an HTML element that defines a template.

type HTMLTextarea

HTMLTextarea is the interface that describes a <textarea> HTML element.

type HTMLTextarea interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTextarea

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTextarea

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTextarea

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTextarea

    // AutoFocus specifies that the element should automatically get focus when the page loads.
    AutoFocus(v bool) HTMLTextarea

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTextarea

    // Cols specifies the visible width of a text area.
    Cols(v int) HTMLTextarea

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTextarea

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTextarea

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTextarea

    // DirName specifies that the text direction will be submitted.
    DirName(v string) HTMLTextarea

    // Disabled specifies that the specified element/group of elements should be disabled.
    Disabled(v bool) HTMLTextarea

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTextarea

    // Form specifies the name of the form the element belongs to.
    Form(v string) HTMLTextarea

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTextarea

    // ID specifies a unique id for an element.
    ID(v string) HTMLTextarea

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTextarea

    // MaxLength specifies the maximum number of characters allowed in an element.
    MaxLength(v int) HTMLTextarea

    // Name specifies the name of the element.
    Name(v string) HTMLTextarea

    // Placeholder specifies a short hint that describes the expected value of the element.
    Placeholder(v string) HTMLTextarea

    // ReadOnly specifies that the element is read-only.
    ReadOnly(v bool) HTMLTextarea

    // Required specifies that the element must be filled out before submitting the form.
    Required(v bool) HTMLTextarea

    // Rows specifies the visible number of lines in a text area.
    Rows(v int) HTMLTextarea

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTextarea

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTextarea

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTextarea

    // Title specifies extra information about an element.
    Title(v string) HTMLTextarea

    // Wrap specifies how the text in a text area is to be wrapped when submitted in a form.
    Wrap(v string) HTMLTextarea

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLTextarea

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLTextarea

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLTextarea

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLTextarea

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLTextarea

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLTextarea

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLTextarea

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLTextarea

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLTextarea

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLTextarea

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLTextarea

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLTextarea

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLTextarea

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLTextarea

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLTextarea

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLTextarea

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLTextarea

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLTextarea

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLTextarea

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLTextarea

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLTextarea

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLTextarea

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLTextarea

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLTextarea

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLTextarea

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLTextarea

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLTextarea

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLTextarea

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLTextarea

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLTextarea

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLTextarea

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLTextarea
}

func Textarea

func Textarea() HTMLTextarea

Textarea returns an HTML element that defines a multiline input control (text area).

type HTMLTfoot

HTMLTfoot is the interface that describes a <tfoot> HTML element.

type HTMLTfoot interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTfoot

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTfoot

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTfoot

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTfoot

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTfoot

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTfoot

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTfoot

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTfoot

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTfoot

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTfoot

    // ID specifies a unique id for an element.
    ID(v string) HTMLTfoot

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTfoot

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTfoot

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTfoot

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTfoot

    // Title specifies extra information about an element.
    Title(v string) HTMLTfoot

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLTfoot

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLTfoot

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLTfoot

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLTfoot

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLTfoot

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLTfoot

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLTfoot

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLTfoot

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLTfoot

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLTfoot

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLTfoot

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLTfoot

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLTfoot

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLTfoot

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLTfoot

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLTfoot

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLTfoot

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLTfoot

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLTfoot

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLTfoot

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLTfoot

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLTfoot

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLTfoot

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLTfoot

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLTfoot

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLTfoot

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLTfoot

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLTfoot

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLTfoot

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLTfoot

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLTfoot

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLTfoot
}

func Tfoot

func Tfoot() HTMLTfoot

Tfoot returns an HTML element that groups the footer content in a table.

type HTMLTh

HTMLTh is the interface that describes a <th> HTML element.

type HTMLTh interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTh

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTh

    // Accept specifies an abbreviated version of the content in a header cell.
    Accept(v string) HTMLTh

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTh

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTh

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTh

    // ColSpan specifies the number of columns a table cell should span.
    ColSpan(v int) HTMLTh

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTh

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTh

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTh

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTh

    // Headers specifies one or more headers cells a cell is related to.
    Headers(v string) HTMLTh

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTh

    // ID specifies a unique id for an element.
    ID(v string) HTMLTh

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTh

    // Rowspan specifies the number of rows a table cell should span.
    Rowspan(v int) HTMLTh

    // Scope specifies whether a header cell is a header for a column, row, or group of columns or rows.
    Scope(v string) HTMLTh

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTh

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTh

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTh

    // Title specifies extra information about an element.
    Title(v string) HTMLTh

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLTh

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLTh

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLTh

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLTh

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLTh

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLTh

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLTh

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLTh

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLTh

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLTh

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLTh

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLTh

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLTh

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLTh

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLTh

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLTh

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLTh

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLTh

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLTh

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLTh

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLTh

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLTh

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLTh

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLTh

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLTh

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLTh

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLTh

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLTh

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLTh

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLTh

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLTh

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLTh
}

func Th

func Th() HTMLTh

Th returns an HTML element that defines a header cell in a table.

type HTMLTime

HTMLTime is the interface that describes a <time> HTML element.

type HTMLTime interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTime

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTime

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTime

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTime

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTime

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTime

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTime

    // DateTime specifies the date and time.
    DateTime(v string) HTMLTime

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTime

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTime

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTime

    // ID specifies a unique id for an element.
    ID(v string) HTMLTime

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTime

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTime

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTime

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTime

    // Title specifies extra information about an element.
    Title(v string) HTMLTime

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLTime

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLTime

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLTime

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLTime

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLTime

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLTime

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLTime

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLTime

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLTime

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLTime

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLTime

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLTime

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLTime

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLTime

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLTime

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLTime

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLTime

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLTime

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLTime

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLTime

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLTime

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLTime

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLTime

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLTime

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLTime

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLTime

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLTime

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLTime

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLTime

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLTime

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLTime

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLTime
}

func Time

func Time() HTMLTime

Time returns an HTML element that defines a date/time.

type HTMLTitle

HTMLTitle is the interface that describes a <title> HTML element.

type HTMLTitle interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTitle

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTitle

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTitle

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTitle

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTitle

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTitle

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTitle

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTitle

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTitle

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTitle

    // ID specifies a unique id for an element.
    ID(v string) HTMLTitle

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTitle

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTitle

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTitle

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTitle

    // Title specifies extra information about an element.
    Title(v string) HTMLTitle
}

func Title

func Title() HTMLTitle

Title returns an HTML element that defines a title for the document.

type HTMLTr

HTMLTr is the interface that describes a <tr> HTML element.

type HTMLTr interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLTr

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLTr

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLTr

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLTr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLTr

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLTr

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLTr

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLTr

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLTr

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLTr

    // ID specifies a unique id for an element.
    ID(v string) HTMLTr

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLTr

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLTr

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLTr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTr

    // Title specifies extra information about an element.
    Title(v string) HTMLTr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLTr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLTr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLTr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLTr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLTr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLTr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLTr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLTr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLTr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLTr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLTr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLTr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLTr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLTr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLTr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLTr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLTr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLTr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLTr

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLTr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLTr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLTr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLTr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLTr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLTr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLTr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLTr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLTr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLTr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLTr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLTr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLTr
}

func Tr

func Tr() HTMLTr

Tr returns an HTML element that defines a row in a table.

type HTMLU

HTMLU is the interface that describes a <u> HTML element.

type HTMLU interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLU

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLU

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLU

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLU

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLU

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLU

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLU

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLU

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLU

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLU

    // ID specifies a unique id for an element.
    ID(v string) HTMLU

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLU

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLU

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLU

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLU

    // Title specifies extra information about an element.
    Title(v string) HTMLU

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLU

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLU

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLU

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLU

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLU

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLU

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLU

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLU

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLU

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLU

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLU

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLU

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLU

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLU

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLU

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLU

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLU

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLU

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLU

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLU

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLU

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLU

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLU

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLU

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLU

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLU

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLU

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLU

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLU

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLU

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLU

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLU
}

func U

func U() HTMLU

U returns an HTML element that defines text that should be stylistically different from normal text.

type HTMLUl

HTMLUl is the interface that describes a <ul> HTML element.

type HTMLUl interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLUl

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLUl

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLUl

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLUl

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLUl

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLUl

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLUl

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLUl

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLUl

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLUl

    // ID specifies a unique id for an element.
    ID(v string) HTMLUl

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLUl

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLUl

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLUl

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLUl

    // Title specifies extra information about an element.
    Title(v string) HTMLUl

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLUl

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLUl

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLUl

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLUl

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLUl

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLUl

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLUl

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLUl

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLUl

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLUl

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLUl

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLUl

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLUl

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLUl

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLUl

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLUl

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLUl

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLUl

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLUl

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLUl

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLUl

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLUl

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLUl

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLUl

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLUl

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLUl

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLUl

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLUl

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLUl

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLUl

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLUl

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLUl
}

func Ul

func Ul() HTMLUl

Ul returns an HTML element that defines an unordered list.

type HTMLVar

HTMLVar is the interface that describes a <var> HTML element.

type HTMLVar interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLVar

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLVar

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLVar

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLVar

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLVar

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLVar

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLVar

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLVar

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLVar

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLVar

    // ID specifies a unique id for an element.
    ID(v string) HTMLVar

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLVar

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLVar

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLVar

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLVar

    // Title specifies extra information about an element.
    Title(v string) HTMLVar

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLVar

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLVar

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLVar

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLVar

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLVar

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLVar

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLVar

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLVar

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLVar

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLVar

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLVar

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLVar

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLVar

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLVar

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLVar

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLVar

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLVar

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLVar

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLVar

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLVar

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLVar

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLVar

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLVar

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLVar

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLVar

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLVar

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLVar

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLVar

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLVar

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLVar

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLVar

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLVar
}

func Var

func Var() HTMLVar

Var returns an HTML element that defines a variable.

type HTMLVideo

HTMLVideo is the interface that describes a <video> HTML element.

type HTMLVideo interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLVideo

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLVideo

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLVideo

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLVideo

    // AutoPlay specifies that the audio/video will start playing as soon as it is ready.
    AutoPlay(v bool) HTMLVideo

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLVideo

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLVideo

    // Controls specifies that audio/video controls should be displayed (such as a play/pause button etc).
    Controls(v bool) HTMLVideo

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLVideo

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLVideo

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLVideo

    // Height specifies the height of the element (in pixels).
    Height(v int) HTMLVideo

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLVideo

    // ID specifies a unique id for an element.
    ID(v string) HTMLVideo

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLVideo

    // Loop specifies that the audio/video will start over again, every time it is finished.
    Loop(v bool) HTMLVideo

    // Muted specifies that the audio output of the video should be muted.
    Muted(v bool) HTMLVideo

    // Poster specifies an image to be shown while the video is downloading, or until the user hits the play button.
    Poster(v string) HTMLVideo

    // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads.
    Preload(v string) HTMLVideo

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLVideo

    // Src specifies the URL of the media file.
    Src(v string) HTMLVideo

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLVideo

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLVideo

    // Title specifies extra information about an element.
    Title(v string) HTMLVideo

    // Width specifies the width of the element.
    Width(v int) HTMLVideo

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler) HTMLVideo

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLVideo

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler) HTMLVideo

    // OnCanPlayThrough calls the given handler when a file can be played all the way to the end without pausing for buffering.
    OnCanPlayThrough(h EventHandler) HTMLVideo

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLVideo

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLVideo

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLVideo

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLVideo

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler) HTMLVideo

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLVideo

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLVideo

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLVideo

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLVideo

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLVideo

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLVideo

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLVideo

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLVideo

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLVideo

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler) HTMLVideo

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler) HTMLVideo

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler) HTMLVideo

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler) HTMLVideo

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLVideo

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLVideo

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLVideo

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLVideo

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLVideo

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLVideo

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler) HTMLVideo

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler) HTMLVideo

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLVideo

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLVideo

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLVideo

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLVideo

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLVideo

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLVideo

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler) HTMLVideo

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler) HTMLVideo

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler) HTMLVideo

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler) HTMLVideo

    // OnRateChange calls the given handler each time the playback rate changes (like when a user switches to a slow motion or fast forward mode).
    OnRateChange(h EventHandler) HTMLVideo

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLVideo

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLVideo

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLVideo

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler) HTMLVideo

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler) HTMLVideo

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLVideo

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler) HTMLVideo

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLVideo

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler) HTMLVideo

    // OnTimeUpdate calls the given handler when the playing position has changed (like when the user fast forwards to a different point in the media).
    OnTimeUpdate(h EventHandler) HTMLVideo

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler) HTMLVideo

    // OnWaiting calls the given handler when the media has paused but is expected to resume (like when the media pauses to buffer more data).
    OnWaiting(h EventHandler) HTMLVideo

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLVideo

    // OnloadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnloadedMetaData(h EventHandler) HTMLVideo
}

func Video

func Video() HTMLVideo

Video returns an HTML element that defines a video or movie.

type HTMLWbr

HTMLWbr is the interface that describes a <wbr> HTML element.

type HTMLWbr interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLWbr

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v interface{}) HTMLWbr

    // AccessKey specifies a shortcut key to activate/focus an element.
    AccessKey(v string) HTMLWbr

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v interface{}) HTMLWbr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet). Multiple classnames are space separated.
    Class(v string) HTMLWbr

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLWbr

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v interface{}) HTMLWbr

    // Dir specifies the text direction for the content in an element.
    Dir(v string) HTMLWbr

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLWbr

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLWbr

    // ID specifies a unique id for an element.
    ID(v string) HTMLWbr

    // Lang specifies the language of the element's content.
    Lang(v string) HTMLWbr

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLWbr

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLWbr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLWbr

    // Title specifies extra information about an element.
    Title(v string) HTMLWbr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler) HTMLWbr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler) HTMLWbr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler) HTMLWbr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler) HTMLWbr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler) HTMLWbr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler) HTMLWbr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler) HTMLWbr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler) HTMLWbr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler) HTMLWbr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler) HTMLWbr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler) HTMLWbr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler) HTMLWbr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler) HTMLWbr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler) HTMLWbr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler) HTMLWbr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler) HTMLWbr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler) HTMLWbr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler) HTMLWbr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler) HTMLWbr

    // OnKeyup calls the given handler when a user releases a key.
    OnKeyup(h EventHandler) HTMLWbr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler) HTMLWbr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler) HTMLWbr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler) HTMLWbr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler) HTMLWbr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler) HTMLWbr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler) HTMLWbr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler) HTMLWbr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler) HTMLWbr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler) HTMLWbr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler) HTMLWbr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler) HTMLWbr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler) HTMLWbr
}

func Wbr

func Wbr() HTMLWbr

Wbr returns an HTML element that defines a possible line-break.

type Handler

Handler is an HTTP handler that serves an HTML page that loads a Go wasm app and its resources.

type Handler struct {
    // The page authors.
    Author string

    // A placeholder background color for the application page to display before
    // its stylesheets are loaded.
    //
    // DEFAULT: #2d2c2c.
    BackgroundColor string

    // The path of the static resources that the browser is caching in order to
    // provide offline mode.
    //
    // Note that Icon, Styles and Scripts are already cached by default.
    //
    // Paths are relative to the root directory.
    CacheableResources []string

    // The page description.
    Description string

    // The environment variables that are passed to the progressive web app.
    //
    // Reserved keys:
    // - GOAPP_VERSION
    // - GOAPP_GOAPP_STATIC_RESOURCES_URL
    Env Environment

    // The icon that is used for the PWA, favicon, loading and default not
    // found component.
    Icon Icon

    // The page keywords.
    Keywords []string

    // The text displayed while loading a page.
    LoadingLabel string

    // The name of the web application as it is usually displayed to the user.
    Name string

    // Additional headers to be added in head element.
    RawHeaders []string

    // The paths or urls of the JavaScript files to use with the page.
    //
    // eg:
    //  app.Handler{
    //      Scripts: []string{
    //          "/web/test.js",            // Static resource
    //          "https://foo.com/test.js", // External resource
    //      },
    //  },
    Scripts []string

    // The name of the web application displayed to the user when there is not
    // enough space to display Name.
    ShortName string

    // The resource provider that provides static resources. Static resources
    // are always accessed from a path that starts with "/web/".
    //
    // eg:
    //  "/web/main.css"
    //
    // Default: LocalDir("web")
    Resources ResourceProvider

    // The paths or urls of the CSS files to use with the page.
    //
    // eg:
    //  app.Handler{
    //      Styles: []string{
    //          "/web/test.css",            // Static resource
    //          "https://foo.com/test.css", // External resource
    //      },
    //  },
    Styles []string

    // The theme color for the application. This affects how the OS displays the
    // app (e.g., PWA title bar or Android's task switcher).
    //
    // DEFAULT: #2d2c2c.
    ThemeColor string

    // The page title.
    Title string

    // The version number. This is used in order to update the PWA application
    // in the browser. It must be set when deployed on a live system in order to
    // prevent recurring updates.
    //
    // Default: Auto-generated in order to trigger pwa update on a local
    // development system.
    Version string
    // contains filtered or unexported fields
}

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Icon

Icon describes a square image that is used in various places such as application icon, favicon or loading icon.

type Icon struct {
    // The path or url to a square image/png file. It must have a side of 192px.
    //
    // Path is relative to the root directory.
    Default string

    // The path or url to larger square image/png file. It must have a side of
    // 512px.
    //
    // Path is relative to the root directory.
    Large string

    // The path or url to a square image/png file that is used for IOS/IPadOS
    // home screen icon. It must have a side of 192px.
    //
    // Path is relative to the root directory.
    //
    // DEFAULT: Icon.Default
    AppleTouch string
}

type Kind

Kind represents the specific kind of a user interface element.

type Kind uint
const (
    // UndefinedElem represents an undefined UI element.
    UndefinedElem Kind = iota

    // SimpleText represents a simple text element.
    SimpleText

    // HTML represents an HTML element.
    HTML

    // Component represents a customized, independent and reusable UI element.
    Component

    // Selector represents an element that is used to select a subset of
    // elements within a given list.
    Selector

    // RawHTML represents an HTML element obtained from a raw HTML code snippet.
    RawHTML
)

func (Kind) String

func (k Kind) String() string

MenuItemNode is the interface that describes a menu node.

type MenuItemNode interface {
    UI

    // Disabled specifies whether the menu item is disabled.
    Disabled(bool) MenuItemNode

    // Keys set the menu item keys.
    Keys(string) MenuItemNode

    // Icon set the menu item icon.
    // "cmdorctrl" is replaced by the platform corresponding key.
    Icon(string) MenuItemNode

    // Label set the menu item label.
    Label(string) MenuItemNode

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(EventHandler) MenuItemNode

    // Separator specifies that the menu item is a separator.
    Separator() MenuItemNode

    // Title specifies extra information about the item.
    Title(string) MenuItemNode
}
func MenuItem() MenuItemNode

MenuItem returns a menu item.

type Mounter

Mounter is the interface that describes a component that can perform additional actions when mounted.

type Mounter interface {
    Composer

    // The function that is called when the component is mounted. It is always
    // called on the UI goroutine.
    OnMount(Context)
}

Navigator is the interface that describes a component that can perform additional actions when navigated on.

type Navigator interface {
    Composer

    // The function that is called when the component is navigated on. It is
    // always called on the UI goroutine.
    OnNav(Context, *url.URL)
}

type RangeLoop

RangeLoop represents a control structure that iterates within a slice, an array or a map.

type RangeLoop interface {
    UI

    // Slice sets the loop content by repeating the given function for the
    // number of elements in the source.
    //
    // It panics if the range source is not a slice or an array.
    Slice(f func(int) UI) RangeLoop

    // Map sets the loop content by repeating the given function for the number
    // of elements in the source. Elements are ordered by keys.
    //
    // It panics if the range source is not a map or if map keys are not strings.
    Map(f func(string) UI) RangeLoop
}

func Range

func Range(src interface{}) RangeLoop

Range returns a range loop that iterates within the given source. Source must be a slice, an array or a map with strings as keys.

type ResourceProvider

ResourceProvider is the interface that describes a provider for resources.

App resources are the mandatory resources required to run a PWA. They are generated by the Handler and are accessible from the root path. Eg:

"/app-worker.js"
"/manifest.webmanifest"
"/wasm_exec.js"

Static resources are the resources used by the PWA such as the web assembly binary, styles, scripts, or images. They can be located on a localhost or a remote bucket. In order to avoid confusion with PWA required resources, static resources URL paths are always prefixed by "/web". Eg:

"/web/app.wasm"
"/web/main.css"
"/web/background.jpg"

If the resource provider is an http.Handler, the handler is used to serve static resources requests.

type ResourceProvider interface {
    // The path to the root directory where app resources are accessible.
    AppResources() string

    // The path or URL where the web directory that contains static resources is
    // located.
    StaticResources() string

    // The URL of the app.wasm file. This must match the pattern:
    //  StaticResources/web/WASM_FILE.
    AppWASM() string

    // The URL of the robots.txt file. This must match the pattern:
    //  StaticResources/web/robots.txt.
    RobotsTxt() string

    // The URL of the ads.txt file. This must match the pattern:
    //  StaticResources/web/ads.txt.
    AdsTxt() string
}

func GitHubPages

func GitHubPages(repoName string) ResourceProvider

GitHubPages returns a resource provider that provides resources from GitHub pages. This provider must only be used to generate static websites with the GenerateStaticWebsite function.

func LocalDir

func LocalDir(path string) ResourceProvider

LocalDir returns a resource provider that serves static resources from a local directory located at the given path.

func RemoteBucket

func RemoteBucket(url string) ResourceProvider

RemoteBucket returns a resource provider that provides resources from a remote bucket such as Amazon S3 or Google Cloud Storage.

type TestUIDescriptor

TestUIDescriptor represents a descriptor that describes a UI element and its location from its parents.

type TestUIDescriptor struct {
    // The location of the node. It is used by the TestMatch to find the
    // element to test.
    //
    // If empty, the expected UI element is compared with the root of the tree.
    //
    // Otherwise, each integer represents the index of the element to traverse,
    // from the root's children to the element to compare
    Path []int

    // The element to compare with the element targeted by Path. Compare
    // behavior varies depending on the element kind.
    //
    // Simple text elements only have their text value compared.
    //
    // HTML elements have their attribute compared and check if their event
    // handlers are set.
    //
    // Components have their exported field values compared.
    Expected UI
}

type Type

Type represents the JavaScript type of a Value.

type Type int

Constants that enumerates the JavaScript types.

const (
    TypeUndefined Type = iota
    TypeNull
    TypeBoolean
    TypeNumber
    TypeString
    TypeSymbol
    TypeObject
    TypeFunction
)

type UI

UI is the interface that describes a user interface element such as components and HTML elements.

type UI interface {
    // Kind represents the specific kind of a UI element.
    Kind() Kind

    // JSValue returns the javascript value linked to the element.
    JSValue() Value

    // Reports whether the element is mounted.
    Mounted() bool
    // contains filtered or unexported methods
}
var (
    // NotFound is the ui element that is displayed when a request is not
    // routed.
    NotFound UI = &notFound{}
)

func FilterUIElems

func FilterUIElems(uis ...UI) []UI

FilterUIElems returns a filtered version of the given UI elements where selector elements such as If and Range are interpreted and removed. It also remove nil elements.

It should be used only when implementing components that can accept content with variadic arguments like HTML elements Body method.

func Raw

func Raw(v string) UI

Raw returns a ui element from the given raw value. HTML raw value must have a single root.

It is not recommended to use this kind of node since there is no check on the raw string content.

func Text

func Text(v interface{}) UI

Text creates a simple text element.

type UIFlow

UIFlow is the interface that describes a container that displays its items as a flow.

EXPERIMENTAL WIDGET.

type UIFlow interface {
    UI

    // The HTML Class.
    Class(c string) UIFlow

    // Content sets the content with the given UI elements.
    Content(elems ...UI) UIFlow

    // ItemsBaseWidth sets the items base width in px. Items size is adjusted to
    // fit the space in the container. Default is 300px.
    ItemsBaseWidth(px int) UIFlow

    // StrechtOnSingleRow makes the items to occupy all the available space when
    // the flow spreads on a single row.
    StrechtOnSingleRow() UIFlow
}

func Flow

func Flow() UIFlow

Flow creates a container that displays its items as a flow.

EXPERIMENTAL WIDGET.

type UIShell

UIShell is a component that responsively handles the disposition of a side menu, a submenu, and a main content.

EXPERIMENTAL WIDGET.

type UIShell interface {
    UI

    // Class adds a CSS class to the layout.
    Class(c string) UIShell

    // Content sets the main content.
    Content(elems ...UI) UIShell

    // Menu sets the side menu.
    Menu(elems ...UI) UIShell

    // Submenu sets the second side menu.
    Submenu(elems ...UI) UIShell

    // MenuButton sets the content of the button that displays an overlayed menu
    // when clicked. The button is displayed only when a menu is set and shrunk.
    // Default is ☰.
    MenuButton(elems ...UI) UIShell

    // OverlayMenu sets the content of the overlay menu. The overlay menu is
    // shown when the menu is shrunk and the menu button is clicked.
    OverlayMenu(elems ...UI) UIShell

    // ItemsBaseWidth set the base width for the menu, submenu and content in
    // px. Default is 300px.
    ItemsBaseWidth(px int) UIShell

    // AlignItemsToCenter vertically aligns menus and content to center.
    AlignItemsToCenter() UIShell
}

func Shell

func Shell() UIShell

Shell creates a responsive layout that handles the disposition of a side menu, a submenu, and a main content.

EXPERIMENTAL WIDGET.

type UIStack

UIStack is the interface that describes a container that displays its items as stacked panels.

EXPERIMENTAL WIDGET.

type UIStack interface {
    UI

    // Center aligns the items from the center.
    Center() UIStack

    // Class adds a CSS class to the layout.
    Class(c string) UIStack

    // Content sets the content with the given UI elements.
    Content(elems ...UI) UIStack

    // End aligns the items from the end.
    End() UIStack

    // Stretch tries to make the items occupy all the space.
    Stretch() UIStack

    // Vertical stacks items vertically.
    Vertical() UIStack
}

func Stack

func Stack() UIStack

Stack creates a container that displays its items as stacked panels.

EXPERIMENTAL WIDGET.

type Value

Value is the interface that represents a JavaScript value. On wasm architecture, it wraps the Value from https://golang.org/pkg/syscall/js/ package.

type Value interface {
    // Bool returns the value v as a bool. It panics if v is not a JavaScript
    // boolean.
    Bool() bool

    // Call does a JavaScript call to the method m of value v with the given
    // arguments. It panics if v has no method m. The arguments get mapped to
    // JavaScript values according to the ValueOf function.
    Call(m string, args ...interface{}) Value

    // Float returns the value v as a float64. It panics if v is not a
    // JavaScript number.
    Float() float64

    // Get returns the JavaScript property p of value v. It panics if v is not a
    // JavaScript object.
    Get(p string) Value

    // Index returns JavaScript index i of value v. It panics if v is not a
    // JavaScript object.
    Index(i int) Value

    // InstanceOf reports whether v is an instance of type t according to
    // JavaScript's instanceof operator.
    InstanceOf(t Value) bool

    // Int returns the value v truncated to an int. It panics if v is not a
    // JavaScript number.
    Int() int

    // Invoke does a JavaScript call of the value v with the given arguments. It
    // panics if v is not a JavaScript function. The arguments get mapped to
    // JavaScript values according to the ValueOf function.
    Invoke(args ...interface{}) Value

    // IsNaN reports whether v is the JavaScript value "NaN".
    IsNaN() bool

    // IsNull reports whether v is the JavaScript value "null".
    IsNull() bool

    // IsUndefined reports whether v is the JavaScript value "undefined".
    IsUndefined() bool

    // JSValue implements Wrapper interface.
    JSValue() Value

    // Length returns the JavaScript property "length" of v. It panics if v is
    // not a JavaScript object.
    Length() int

    // New uses JavaScript's "new" operator with value v as constructor and the
    // given arguments. It panics if v is not a JavaScript function. The
    // arguments get mapped to JavaScript values according to the ValueOf
    // function.
    New(args ...interface{}) Value

    // Set sets the JavaScript property p of value v to ValueOf(x). It panics if
    // v is not a JavaScript object.
    Set(p string, x interface{})

    // SetIndex sets the JavaScript index i of value v to ValueOf(x). It panics
    // if v is not a JavaScript object.
    SetIndex(i int, x interface{})

    // String returns the value v as a string. String is a special case because
    // of Go's String method convention. Unlike the other getters, it does not
    // panic if v's Type is not TypeString. Instead, it returns a string of the
    // form "<T>" or "<T: V>" where T is v's type and V is a string
    // representation of v's value.
    String() string

    // Truthy returns the JavaScript "truthiness" of the value v. In JavaScript,
    // false, 0, "", null, undefined, and NaN are "falsy", and everything else
    // is "truthy". See
    // https://developer.mozilla.org/en-US/docs/Glossary/Truthy.
    Truthy() bool

    // Type returns the JavaScript type of the value v. It is similar to
    // JavaScript's typeof operator, except that it returns TypeNull instead of
    // TypeObject for null.
    Type() Type
}

func Null

func Null() Value

Null returns the JavaScript value "null".

func Undefined

func Undefined() Value

Undefined returns the JavaScript value "undefined".

func ValueOf

func ValueOf(x interface{}) Value

ValueOf returns x as a JavaScript value:

| Go                     | JavaScript             |
| ---------------------- | ---------------------- |
| js.Value               | [its value]            |
| js.Func                | function               |
| nil                    | null                   |
| bool                   | boolean                |
| integers and floats    | number                 |
| string                 | string                 |
| []interface{}          | new array              |
| map[string]interface{} | new object             |

Panics if x is not one of the expected types.

type Wrapper

Wrapper is implemented by types that are backed by a JavaScript value.

type Wrapper interface {
    JSValue() Value
}

Subdirectories

Name Synopsis
..
gen