Reference

Package app

import "github.com/maxence-charriere/go-app/v9/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

Constants
Variables
func AppendClass(class string, v ...string) string
func Broadcast(s *State)
func CopyBytesToGo(dst []byte, src Value) int
func CopyBytesToJS(dst Value, src []byte) int
func Encrypt(s *State)
func FormatString(format string, v ...any) string
func GenerateStaticWebsite(dir string, h *Handler, pages ...string) error
func Getenv(k string) string
func HTMLString(ui UI) string
func HTMLStringWithIndent(ui UI) string
func Handle(actionName string, h ActionHandler)
func KeepBodyClean() (close func())
func Log(v ...any)
func Logf(format string, v ...any)
func Persist(s *State)
func PrintHTML(w io.Writer, ui UI)
func PrintHTMLWithIndent(w io.Writer, ui UI)
func Route(path string, c Composer)
func RouteFunc(path string, newComponent func() Composer)
func RouteWithRegexp(pattern string, c Composer)
func RouteWithRegexpFunc(pattern string, newComponent func() Composer)
func RunWhenOnBrowser()
func TestMatch(tree UI, d TestUIDescriptor) error
func TestPath(p ...int) []int
type Action
type ActionHandler
type AppInstaller
type AppUpdater
type BrowserStorage
type BrowserWindow
    func Window() BrowserWindow
type ClientDispatcher
    func NewClientTester(n UI) ClientDispatcher
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) ResizeContent()
    func (c *Compo) Update()
    func (c *Compo) ValueTo(v any) EventHandler
type Composer
type Condition
    func If(expr bool, elems ...UI) Condition
type Context
type Dismounter
type Dispatch
type DispatchMode
type Dispatcher
type Environment
type Event
    func (e Event) PreventDefault()
    func (e Event) StopImmediatePropagation()
type EventHandler
type Func
    func FuncOf(fn func(this Value, args []Value) any) 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 HTMLElem
    func Elem(tag string) HTMLElem
type HTMLElemSelfClosing
    func ElemSelfClosing(tag string) HTMLElemSelfClosing
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 HTMLLegend
    func Legend() HTMLLegend
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 HTMLTFoot
    func TFoot() HTMLTFoot
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 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 Initializer
type Kind
    func (k Kind) String() string
type Library
type Mounter
type MsgHandler
type Navigator
type Notification
type NotificationAction
type NotificationPermission
type NotificationService
    func (s NotificationService) New(n Notification)
    func (s NotificationService) Permission() NotificationPermission
    func (s NotificationService) RequestPermission() NotificationPermission
    func (s NotificationService) Subscribe(vapIDPublicKey string) (NotificationSubscription, error)
type NotificationSubscription
type Observer
type Page
type PreRenderer
type Preload
type ProxyResource
type RangeLoop
    func Range(src any) RangeLoop
type Resizer
type ResourceProvider
    func CustomProvider(path, prefix string) ResourceProvider
    func GitHubPages(repoName string) ResourceProvider
    func LocalDir(root string) ResourceProvider
    func RemoteBucket(url string) ResourceProvider
type ServerDispatcher
    func NewServerTester(n UI) ServerDispatcher
type State
type StateOption
    func ExpiresAt(t time.Time) StateOption
    func ExpiresIn(d time.Duration) StateOption
type Tag
    func T(name string, value any) Tag
    func (t Tag) Tags() Tags
type Tagger
type Tags
    func (t Tags) Get(name string) string
    func (t Tags) Set(name string, v any)
    func (t Tags) Tags() Tags
type TestUIDescriptor
type TwitterCard
type Type
type UI
    func FilterUIElems(v ...UI) []UI
    func Raw(v string) UI
    func Text(v any) UI
    func Textf(format string, v ...any) UI
type Updater
type Value
    func Null() Value
    func Undefined() Value
    func ValueOf(x any) Value
type Wrapper

Package files

action.go app.go attribute.go cache.go component.go condition.go context.go contextmenu.go crypto.go dispatcher.go engine.go event.go html.go html_gen.go http.go js.go js_nowasm.go library.go log.go node.go notfound.go notification.go page.go range.go raw.go resource.go route.go scripts.go social.go state.go static.go storage.go strings.go tag.go testing.go text.go wasmexec.go

Constants

const (
    // IsClient reports whether the code is running as a client in the
    // WebAssembly binary (app.wasm).
    IsClient = runtime.GOARCH == "wasm" && runtime.GOOS == "js"

    // IsServer reports whether the code is running on a server for
    // pre-rendering purposes.
    IsServer = runtime.GOARCH != "wasm" || runtime.GOOS != "js"
)
const (
    // The default template used to generate app-worker.js.
    DefaultAppWorkerJS = "const cacheName = \"app-\" + \"{{.Version}}\";\nconst resourcesToCache = {{.ResourcesToCache}};\n\nself.addEventListener(\"install\", (event) => {\n  console.log(\"installing app worker {{.Version}}\");\n\n  event.waitUntil(\n    caches\n      .open(cacheName)\n      .then((cache) => {\n        return cache.addAll(resourcesToCache);\n      })\n      .then(() => {\n        self.skipWaiting();\n      })\n  );\n});\n\nself.addEventListener(\"activate\", (event) => {\n  event.waitUntil(\n    caches.keys().then((keyList) => {\n      return Promise.all(\n        keyList.map((key) => {\n          if (key !== cacheName) {\n            return caches.delete(key);\n          }\n        })\n      );\n    })\n  );\n  console.log(\"app worker {{.Version}} is activated\");\n});\n\nself.addEventListener(\"fetch\", (event) => {\n  event.respondWith(\n    caches.match(event.request).then((response) => {\n      return response || fetch(event.request);\n    })\n  );\n});\n\nself.addEventListener(\"push\", (event) => {\n  if (!event.data || !event.data.text()) {\n    return;\n  }\n\n  const notification = JSON.parse(event.data.text());\n  if (!notification) {\n    return;\n  }\n\n  const title = notification.title;\n  delete notification.title;\n\n  if (!notification.data) {\n    notification.data = {};\n  }\n  let actions = [];\n  for (let i in notification.actions) {\n    const action = notification.actions[i];\n\n    actions.push({\n      action: action.action,\n      path: action.path,\n    });\n\n    delete action.path;\n  }\n  notification.data.goapp = {\n    path: notification.path,\n    actions: actions,\n  };\n  delete notification.path;\n\n  event.waitUntil(self.registration.showNotification(title, notification));\n});\n\nself.addEventListener(\"notificationclick\", (event) => {\n  event.notification.close();\n\n  const notification = event.notification;\n  let path = notification.data.goapp.path;\n\n  for (let i in notification.data.goapp.actions) {\n    const action = notification.data.goapp.actions[i];\n    if (action.action === event.action) {\n      path = action.path;\n      break;\n    }\n  }\n\n  event.waitUntil(\n    clients\n      .matchAll({\n        type: \"window\",\n      })\n      .then((clientList) => {\n        for (var i = 0; i < clientList.length; i++) {\n          let client = clientList[i];\n          if (\"focus\" in client) {\n            client.focus();\n            client.postMessage({\n              goapp: {\n                type: \"notification\",\n                path: path,\n              },\n            });\n            return;\n          }\n        }\n\n        if (clients.openWindow) {\n          return clients.openWindow(path);\n        }\n      })\n  );\n});\n"
)

Variables

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

func AppendClass

func AppendClass(class string, v ...string) string

AppendClass adds values to the given class string.

func Broadcast

func Broadcast(s *State)

Broadcast is a state option that broadcasts a state to other browser tabs and windows from the same origin.

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 Encrypt

func Encrypt(s *State)

Encrypt is a state option that encrypts a state before persisting it in local storage. Encryption is performed only when the Persist option is also set.

func FormatString

func FormatString(format string, v ...any) string

Formats a string with the given format and values. It uses fmt.Sprintf when len(v) != 0.

TODO: Write a faster Sprintf to use with values.

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 HTMLString

func HTMLString(ui UI) string

HTMLString return an HTML string representation of the given UI element.

func HTMLStringWithIndent

func HTMLStringWithIndent(ui UI) string

HTMLStringWithIndent return an indented HTML string representation of the given UI element.

func Handle

func Handle(actionName string, h ActionHandler)

Handle registers the handler for the given action name. When an action occurs, the handler is executed on its own goroutine.

func KeepBodyClean

func KeepBodyClean() (close func())

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

func Log

func Log(v ...any)

Log logs using the default formats for its operands. Spaces are always added between operands.

func Logf

func Logf(format string, v ...any)

Logf logs according to a format specifier.

func Persist

func Persist(s *State)

Persist is a state option that persists a state in local storage.

Be mindful to not use this option as a cache since local storage is limited to 5MB in a lot of web browsers.

func PrintHTML

func PrintHTML(w io.Writer, ui UI)

PrintHTML writes an HTML representation of the UI element into the given writer.

func PrintHTMLWithIndent

func PrintHTMLWithIndent(w io.Writer, ui UI)

PrintHTMLWithIndent writes an idented HTML representation of the UI element into the given writer.

func Route

func Route(path string, c Composer)

Route set the type of component to be mounted when a page is navigated to the given path.

func RouteFunc

func RouteFunc(path string, newComponent func() Composer)

RouteFunc set a function that creates the component to be mounted when a page is navigated to the given path.

func RouteWithRegexp

func RouteWithRegexp(pattern string, c Composer)

RouteWithRegexp set the type of component to be mounted when a page is navigated to a path that matches the given pattern.

func RouteWithRegexpFunc

func RouteWithRegexpFunc(pattern string, newComponent func() Composer)

RouteWithRegexpFunc set a function that creates the component to be mounted when a page is navigated to a path that matches the given pattern.

func RunWhenOnBrowser

func RunWhenOnBrowser()

RunWhenOnBrowser starts the app, displaying the component associated with the current URL path.

This call is skipped when the program is not run on a web browser. This allows writing client and server-side code without separation or pre-compilation flags.

Eg:

 func main() {
		// Define app routes.
		app.Route("/", myComponent{})
		app.Route("/other-page", myOtherComponent{})

		// Run the application when on a web browser (only executed on client side).
		app.RunWhenOnBrowser()

		// Launch the server that serves the app (only executed on server side):
		http.Handle("/", &app.Handler{Name: "My app"})
		http.ListenAndServe(":8080", nil)
 }

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 Action

Action represents a custom event that can be propagated across the app. It can contain a payload and be given additional context with tags.

type Action struct {
    // The name that identifies the action..
    Name string

    // The value passed along with the action. Can be nil.
    Value any

    // Tags that provide some context to the action.
    Tags Tags
}

type ActionHandler

ActionHandler represents a handler that is executed when an action is created with Context.NewAction().

type ActionHandler func(Context, Action)

type AppInstaller

AppInstaller is the interface that describes a component that is notified when the application installation state changes.

type AppInstaller interface {
    // The function called when the application becomes installable or
    // installed. Use Context.IsAppInstallable() or Context.IsAppInstalled to
    // check the install state. OnAppInstallChange is always called on the UI
    // goroutine.
    OnAppInstallChange(Context)
}

type AppUpdater

AppUpdater is the interface that describes a component that is notified when the application is updated.

type AppUpdater interface {
    // The function called when the application is updated. It is always called
    // on the UI goroutine.
    OnAppUpdate(Context)
}

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 any) 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 any) error

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

    // Len returns the number of items stored.
    Len() int

    // Key returns the key of the item associated to the given index.
    Key(i int) (string, error)

    // Clear deletes all items.
    Clear()
}

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 ClientDispatcher

ClientDispatcher is the interface that describes a dispatcher that emulates a client environment.

type ClientDispatcher interface {
    Dispatcher

    // Consume executes all the remaining UI instructions.
    Consume()

    // ConsumeNext executes the next UI instructions.
    ConsumeNext()

    // Close consumes all the remaining UI instruction and releases allocated
    // resources.
    Close()

    // Mounts the given component as root element.
    Mount(UI)

    // Triggers OnNav from the root component.
    Nav(*url.URL)

    // Triggers OnAppUpdate from the root component.
    AppUpdate()

    // Triggers OnAppInstallChange from the root component.
    AppInstallChange()

    // Triggers OnAppResize from the root component.
    AppResize()
}

func NewClientTester

func NewClientTester(n UI) ClientDispatcher

NewClientTester creates a testing dispatcher that simulates a client environment. The given UI element is mounted upon creation.

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) ResizeContent

func (c *Compo) ResizeContent()

ResizeContent triggers OnResize() on all the component children that implement the Resizer interface.

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.

func (*Compo) ValueTo

func (c *Compo) ValueTo(v any) EventHandler

ValueTo stores the value of the DOM element (if exists) that emitted an event into the given value.

The given value must be a pointer to a signed integer, unsigned integer, or a float.

It panics if the given value is not a pointer.

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()

    // ResizeContent triggers OnResize() on all the component children that
    // implement the Resizer interface.
    ResizeContent()

    // ValueTo stores the value of the DOM element (if exists) that emitted an
    // event into the given value.
    //
    // The given value must be a pointer to a signed integer, unsigned integer,
    // or a float.
    //
    // It panics if the given value is not a pointer.
    ValueTo(any) EventHandler
    // contains filtered or unexported methods
}

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 is the interface that describes a context tied to a UI element.

A context provides mechanisms to deal with the browser, the current page, navigation, concurrency, and component communication.

It is canceled when its associated UI element is dismounted.

type Context interface {
    context.Context

    // Returns the UI element tied to the context.
    Src() UI

    // Returns the associated JavaScript value. The is an helper method for:
    //  ctx.Src.JSValue()
    JSSrc() Value

    // Reports whether the app has been updated in background. Use app.Reload()
    // to load the updated version.
    AppUpdateAvailable() bool

    // Reports whether the app is installable.
    IsAppInstallable() bool

    // Shows the app install prompt if the app is installable.
    ShowAppInstallPrompt()

    // Returns the current page.
    Page() Page

    // Executes the given function on the UI goroutine and notifies the
    // context's nearest component to update its state.
    Dispatch(fn func(Context))

    // Executes the given function on the UI goroutine after notifying the
    // context's nearest component to update its state.
    Defer(fn func(Context))

    // Registers the handler for the given action name. When an action occurs,
    // the handler is executed on the UI goroutine.
    Handle(actionName string, h ActionHandler)

    // Creates an action with optional tags, to be handled with Context.Handle.
    // Eg:
    //  ctx.NewAction("myAction")
    //  ctx.NewAction("myAction", app.T("purpose", "test"))
    //  ctx.NewAction("myAction", app.Tags{
    //      "foo": "bar",
    //      "hello": "world",
    //  })
    NewAction(name string, tags ...Tagger)

    // Creates an action with a value and optional tags, to be handled with
    // Context.Handle. Eg:
    //  ctx.NewActionWithValue("processValue", 42)
    //  ctx.NewActionWithValue("processValue", 42, app.T("type", "number"))
    //  ctx.NewActionWithValue("myAction", 42, app.Tags{
    //      "foo": "bar",
    //      "hello": "world",
    //  })
    NewActionWithValue(name string, v any, tags ...Tagger)

    // Executes the given function on a new goroutine.
    //
    // The difference versus just launching a goroutine is that it ensures that
    // the asynchronous function is called before a page is fully pre-rendered
    // and served over HTTP.
    Async(fn func())

    // Asynchronously waits for the given duration and dispatches the given
    // function.
    After(d time.Duration, fn func(Context))

    // Executes the given function and notifies the parent components to update
    // their state. It should be used to launch component custom event handlers.
    Emit(fn func())

    // Reloads the WebAssembly app to the current page. It is like refreshing
    // the browser page.
    Reload()

    // Navigates to the given URL. This is a helper method that converts url to
    // an *url.URL and then calls ctx.NavigateTo under the hood.
    Navigate(url string)

    // Navigates to the given URL.
    NavigateTo(u *url.URL)

    // Resolves the given path to make it point to the right location whether
    // static resources are located on a local directory or a remote bucket.
    ResolveStaticResource(string) string

    // Returns a storage that uses the browser local storage associated to the
    // document origin. Data stored has no expiration time.
    LocalStorage() BrowserStorage

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

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

    // Returns a UUID that identifies the app on the current device.
    DeviceID() string

    // Encrypts the given value using AES encryption.
    Encrypt(v any) ([]byte, error)

    // Decrypts the given encrypted bytes and stores them in the given value.
    Decrypt(crypted []byte, v any) error

    // Sets the state with the given value.
    // Example:
    //  ctx.SetState("/globalNumber", 42, Persistent)
    //
    // Options can be added to persist a state into the local storage, encrypt,
    // expire, or broadcast the state across browser tabs and windows.
    // Example:
    //  ctx.SetState("/globalNumber", 42, Persistent, Broadcast)
    SetState(state string, v any, opts ...StateOption)

    // Stores the specified state value into the given receiver. Panics when the
    // receiver is not a pointer or nil.
    GetState(state string, recv any)

    // Deletes the given state. All value observations are stopped.
    DelState(state string)

    // Creates an observer that observes changes for the given state.
    // Example:
    //  type myComponent struct {
    //      app.Compo
    //
    //      number int
    //  }
    //
    //  func (c *myComponent) OnMount(ctx app.Context) {
    //      ctx.ObserveState("/globalNumber").Value(&c.number)
    //  }
    ObserveState(state string) Observer

    // Returns the app dispatcher.
    Dispatcher() Dispatcher

    // Returns the service to setup and display notifications.
    Notifications() NotificationService

    // Prevents the component that contains the context source to be updated.
    PreventUpdate()
}

type Dismounter

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

type Dismounter interface {
    Composer

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

type Dispatch

Dispatch represents an operation executed on the UI goroutine.

type Dispatch struct {
    Mode     DispatchMode
    Source   UI
    Function func(Context)
}

type DispatchMode

DispatchMode represents how a dispatch is processed.

type DispatchMode int
const (
    // A dispatch mode where the dispatched operation is enqueued to be executed
    // as soon as possible and its associated UI element is updated at the end
    // of the current update cycle.
    Update DispatchMode = iota

    // A dispatch mode that schedules the dispatched operation to be executed
    // after the current update frame.
    Defer

    // A dispatch mode where the dispatched operation is enqueued to be executed
    // as soon as possible.
    Next
)

type Dispatcher

Dispatcher is the interface that describes an environment that synchronizes UI instructions and UI elements lifecycle.

type Dispatcher interface {
    // Context returns the context associated with the root element.
    Context() Context

    // Executes the given dispatch operation on the UI goroutine.
    Dispatch(d Dispatch)

    // Emit executes the given function and notifies the source's parent
    // components to update their state.
    Emit(src UI, fn func())

    // Handle registers the handler for the given action name. When an action
    // occurs, the handler is executed on the UI goroutine.
    Handle(actionName string, src UI, h ActionHandler)

    // Post posts the given action. The action is then handled by handlers
    // registered with Handle() and Context.Handle().
    Post(a Action)

    // Sets the state with the given value.
    SetState(state string, v any, opts ...StateOption)

    // Stores the specified state value into the given receiver. Panics when the
    // receiver is not a pointer or nil.
    GetState(state string, recv any)

    // Deletes the given state.
    DelState(state string)

    // Creates an observer that observes changes for the specified state while
    // the given element is mounted.
    ObserveState(state string, elem UI) Observer

    // 	Async launches the given function on a new goroutine.
    //
    // The difference versus just launching a goroutine is that it ensures that
    // the asynchronous instructions are called before the dispatcher is closed.
    //
    // This is important during component prerendering since asynchronous
    // operations need to complete before sending a pre-rendered page over HTTP.
    Async(fn func())

    // Wait waits for the asynchronous operations launched with Async() to
    // complete.
    Wait()
    // contains filtered or unexported methods
}

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.

func (Event) StopImmediatePropagation

func (e Event) StopImmediatePropagation()

If several listeners are attached to the same element for the same event type, they are called in the order in which they were added. If StopImmediatePropagation() is invoked during one such call, no remaining listeners will be called, either on that element or any other element.

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) any) 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 any) HTMLA

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLA

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLA

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLA

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLA

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLA

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) HTMLA

    // Download specifies that the target will be downloaded when a user clicks on the hyperlink. Uses the given format and values.
    Download(format string, v ...any) 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 with the given format and values.
    Href(format string, v ...any) HTMLA

    // HrefLang specifies the language of the linked document with the given format and values.
    HrefLang(format string, v ...any) HTMLA

    // ID specifies a unique id for an element with the given format and values.
    ID(format string, v ...any) HTMLA

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLA

    // Media specifies what media/device the linked document is optimized for. Uses the given format and values.
    Media(format string, v ...any) HTMLA

    // Ping specifies a list of URLs to be notified if the user follows the hyperlink. Uses the given format and values.
    Ping(format string, v ...any) HTMLA

    // Rel specifies the relationship between the current document and the linked document. uses the given format and values.
    Rel(format string, v ...any) HTMLA

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]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. Uses the given format and values.
    Target(format string, v ...any) HTMLA

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLA

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLA

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLA

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLA

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLA

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLA

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLAbbr

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLAbbr

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLAbbr

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLAbbr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLAbbr

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLAbbr

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLAbbr

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLAbbr

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLAbbr

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLAbbr

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLAbbr

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLAbbr

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLAbbr

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLAbbr

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLAddress

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLAddress

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLAddress

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLAddress

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLAddress

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLAddress

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLAddress

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLAddress

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLAddress

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLAddress

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLAddress

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLAddress

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLAddress

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLAddress

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLArea

    // Alt specifies an alternate text with the given format and values when the original element fails to display.
    Alt(format string, v ...any) HTMLArea

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLArea

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 with the given format and values.
    Coords(format string, v ...any) HTMLArea

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

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLArea

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) HTMLArea

    // Download specifies that the target will be downloaded when a user clicks on the hyperlink. Uses the given format and values.
    Download(format string, v ...any) 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 with the given format and values.
    Href(format string, v ...any) HTMLArea

    // HrefLang specifies the language of the linked document with the given format and values.
    HrefLang(format string, v ...any) HTMLArea

    // ID specifies a unique id for an element with the given format and values.
    ID(format string, v ...any) HTMLArea

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLArea

    // Media specifies what media/device the linked document is optimized for. Uses the given format and values.
    Media(format string, v ...any) HTMLArea

    // Rel specifies the relationship between the current document and the linked document. uses the given format and values.
    Rel(format string, v ...any) HTMLArea

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) HTMLArea

    // Shape specifies the shape of the area with the given format and values.
    Shape(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]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. Uses the given format and values.
    Target(format string, v ...any) HTMLArea

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLArea

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLArea

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLArea

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLArea

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLArea

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLArea

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLArticle

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLArticle

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLArticle

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLArticle

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLArticle

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLArticle

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLArticle

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLArticle

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLArticle

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLArticle

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLArticle

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLArticle

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLArticle

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLArticle

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLAside

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLAside

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLAside

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLAside

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLAside

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLAside

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLAside

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLAside

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLAside

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLAside

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLAside

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLAside

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLAside

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLAside

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLAudio

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLAudio

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLAudio

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) 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).
    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

    // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values.
    CrossOrigin(format string, v ...any) HTMLAudio

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

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLAudio

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLAudio

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) 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. Uses the given format and values.
    Preload(format string, v ...any) HTMLAudio

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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 with the given format and values.
    Src(format string, v ...any) HTMLAudio

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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLAudio

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLAudio

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLAudio

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

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

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler, scope ...any) 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, scope ...any) HTMLAudio

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLAudio

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

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

    // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnLoadedMetaData(h EventHandler, scope ...any) HTMLAudio

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLAudio

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLAudio

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

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

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

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

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

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

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

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

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler, scope ...any) 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, scope ...any) HTMLAudio

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

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

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

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

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

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

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

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

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler, scope ...any) 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, scope ...any) HTMLAudio

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler, scope ...any) 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, scope ...any) HTMLAudio

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLB

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLB

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLB

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLB

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLB

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLB

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLB

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLB

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLB

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLB

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLB

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLB

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLB

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLB

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLBase

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLBase

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLBase

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLBase

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    Href(format string, v ...any) HTMLBase

    // ID specifies a unique id for an element with the given format and values.
    ID(format string, v ...any) HTMLBase

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLBase

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]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. Uses the given format and values.
    Target(format string, v ...any) HTMLBase

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLBase

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLBase

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLBase

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLBase

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLBase

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLBdi

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLBdi

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLBdi

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLBdi

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLBdi

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLBdi

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLBdi

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLBdi

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLBdi

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLBdi

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLBdi

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLBdi

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLBdi

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLBdi

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLBdo

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLBdo

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLBdo

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLBdo

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLBdo

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLBdo

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLBdo

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLBdo

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLBdo

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLBdo

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLBdo

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLBdo

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLBdo

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLBdo

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLBlockquote

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLBlockquote

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLBlockquote

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLBlockquote

    // Cite specifies a URL which explains the quote/deleted/inserted text with the given format and values.
    Cite(format string, v ...any) HTMLBlockquote

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLBlockquote

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLBlockquote

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLBlockquote

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLBlockquote

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLBlockquote

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLBlockquote

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLBlockquote

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLBlockquote

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLBlockquote

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLBlockquote

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLBody

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLBody

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLBody

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLBody

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLBody

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLBody

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLBody

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLBody

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLBody

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLBody

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

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

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLBody

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLBody

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) HTMLBody
    // contains filtered or unexported methods
}

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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLBr

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

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLBr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLBr

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLBr

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLBr

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLBr

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLBr

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLBr

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLBr

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

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

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

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

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

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

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

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

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

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLBr

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLBr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLBr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLBr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLBr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLBr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLBr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLBr

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLBr

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLBr

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLBr

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLBr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLBr

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLBr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLBr

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLBr

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLBr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLButton

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLButton

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLButton

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLButton

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) 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).
    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 any) HTMLButton

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLButton

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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. Uses the given format and values.
    Form(format string, v ...any) HTMLButton

    // FormAction specifies where to send the form-data when a form is submitted. Only for submit type. Uses the given format and values.
    FormAction(format string, v ...any) HTMLButton

    // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type. Uses the given format and values.
    FormEncType(format string, v ...any) HTMLButton

    // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type. Uses the given format and values.
    FormMethod(format string, v ...any) 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. Uses the given format and values.
    FormTarget(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLButton

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLButton

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLButton

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLButton

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLButton

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLButton

    // Value specifies the value of the element.
    Value(v any) HTMLButton

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLButton

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLButton

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLButton

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLButton

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLButton

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLButton

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLButton

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLButton

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLButton

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLButton

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLButton

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLButton

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLButton

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLButton

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLButton

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLButton

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLButton

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLButton

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLButton

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLButton

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLButton

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLButton

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLButton

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLButton

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLButton

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLButton

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLCanvas

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLCanvas

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLCanvas

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLCanvas

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLCanvas

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLCanvas

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLCanvas

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLCanvas

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLCanvas

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLCanvas

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLCanvas

    // Width specifies the width of the element.
    Width(v int) HTMLCanvas

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLCanvas

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLCanvas

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLCanvas

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLCanvas

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLCanvas

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLCanvas

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLCanvas

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLCanvas

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLCanvas

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLCanvas

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLCanvas

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLCanvas

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLCanvas

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLCanvas

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLCanvas

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLCanvas

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLCanvas

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLCanvas

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLCanvas

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLCanvas

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLCanvas

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLCanvas

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLCanvas

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLCanvas

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLCanvas

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLCanvas

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLCaption

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLCaption

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLCaption

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLCaption

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLCaption

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLCaption

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLCaption

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLCaption

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLCaption

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLCaption

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLCaption

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLCaption

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLCaption

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLCaption

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLCaption

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLCaption

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLCaption

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLCaption

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLCaption

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLCaption

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLCaption

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLCaption

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLCaption

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLCaption

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLCaption

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLCaption

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLCaption

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLCaption

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLCaption

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLCaption

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLCaption

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLCaption

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLCaption

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLCaption

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLCaption

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLCaption

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLCaption

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLCite

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLCite

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLCite

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLCite

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLCite

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLCite

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLCite

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLCite

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLCite

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLCite

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLCite

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLCite

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLCite

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLCite

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLCite

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLCite

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLCite

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLCite

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLCite

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLCite

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLCite

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLCite

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLCite

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLCite

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLCite

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLCite

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLCite

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLCite

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLCite

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLCite

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLCite

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLCite

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLCite

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLCite

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLCite

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLCite

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLCite

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLCode

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLCode

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLCode

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLCode

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLCode

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLCode

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLCode

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLCode

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLCode

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLCode

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLCode

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLCode

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLCode

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLCode

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLCode

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLCode

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLCode

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLCode

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLCode

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLCode

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLCode

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLCode

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLCode

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLCode

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLCode

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLCode

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLCode

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLCode

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLCode

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLCode

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLCode

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLCode

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLCode

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLCode

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLCode

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLCode

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLCode

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLCol

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLCol

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLCol

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLCol

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLCol

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLCol

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLCol

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLCol

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLCol

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLCol

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLCol

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLCol

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLCol

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLCol

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLCol

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLCol

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLCol

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLCol

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLCol

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLCol

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLCol

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLCol

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLCol

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLCol

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLCol

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLCol

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLCol

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLCol

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLCol

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLCol

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLCol

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLCol

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLCol

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLCol

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLCol

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLColGroup

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLColGroup

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLColGroup

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLColGroup

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLColGroup

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLColGroup

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLColGroup

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLColGroup

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLColGroup

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLColGroup

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLColGroup

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLColGroup

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLColGroup

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLColGroup

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLColGroup

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLColGroup

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLColGroup

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLColGroup

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLColGroup

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLColGroup

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLColGroup

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLColGroup

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLColGroup

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLColGroup

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLColGroup

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLColGroup

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLColGroup

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLColGroup

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLColGroup

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLColGroup

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLColGroup

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLColGroup

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLColGroup

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLColGroup

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLColGroup

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLColGroup

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLColGroup

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLData

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLData

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLData

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLData

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLData

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLData

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLData

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLData

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLData

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLData

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLData

    // Value specifies the value of the element.
    Value(v any) HTMLData

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) 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 any) HTMLDataList

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLDataList

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLDataList

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLDataList

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLDataList

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLDataList

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLDataList

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLDataList

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLDataList

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLDataList

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLDataList

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLDataList

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLDataList

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLDataList

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLDataList

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLDataList

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLDataList

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLDataList

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLDataList

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLDataList

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLDataList

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLDataList

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLDataList

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLDataList

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLDataList

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLDataList

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLDataList

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLDataList

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLDataList

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLDataList

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLDataList

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLDataList

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLDataList

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLDataList

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLDataList

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLDataList

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLDataList

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLDd

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLDd

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLDd

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLDd

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLDd

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLDd

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLDd

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLDd

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLDd

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLDd

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLDd

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLDd

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLDd

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLDd

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLDd

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLDd

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLDd

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLDd

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLDd

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLDd

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLDd

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLDd

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLDd

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLDd

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLDd

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLDd

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLDd

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLDd

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLDd

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLDd

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLDd

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLDd

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLDd

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLDd

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLDd

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLDd

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLDd

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLDel

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLDel

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLDel

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLDel

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLDel

    // Cite specifies a URL which explains the quote/deleted/inserted text with the given format and values.
    Cite(format string, v ...any) HTMLDel

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLDel

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLDel

    // DateTime specifies the date and time with the given format and values.
    DateTime(format string, v ...any) HTMLDel

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLDel

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLDel

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLDel

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLDel

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLDel

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLDel

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLDel

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLDel

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLDel

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLDel

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLDel

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLDel

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLDel

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLDel

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLDel

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLDel

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLDel

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLDel

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLDel

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLDel

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLDel

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLDel

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLDel

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLDel

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLDel

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLDel

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLDel

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLDel

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLDel

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLDel

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLDetails

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLDetails

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLDetails

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLDetails

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLDetails

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLDetails

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLDetails

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLDetails

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLDetails

    // Open specifies that the details should be visible (open) to the user.
    Open(v bool) HTMLDetails

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLDetails

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLDetails

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLDetails

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLDetails

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLDetails

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLDetails

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLDetails

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLDetails

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLDetails

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLDetails

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLDetails

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLDetails

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLDetails

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLDetails

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLDetails

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLDetails

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLDetails

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLDetails

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLDetails

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLDetails

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLDetails

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLDetails

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLDetails

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLDetails

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLDetails

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLDetails

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLDetails

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLDetails

    // OnToggle calls the given handler when the user opens or closes the details element.
    OnToggle(h EventHandler, scope ...any) HTMLDetails

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLDfn

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLDfn

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLDfn

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLDfn

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLDfn

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLDfn

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLDfn

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLDfn

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLDfn

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLDfn

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLDfn

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLDfn

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLDfn

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLDfn

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLDfn

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLDfn

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLDfn

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLDfn

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLDfn

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLDfn

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLDfn

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLDfn

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLDfn

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLDfn

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLDfn

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLDfn

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLDfn

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLDfn

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLDfn

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLDfn

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLDfn

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLDfn

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLDfn

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLDfn

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLDfn

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLDfn

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLDfn

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLDialog

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLDialog

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLDialog

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLDialog

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLDialog

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLDialog

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLDialog

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLDialog

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLDialog

    // Open specifies that the details should be visible (open) to the user.
    Open(v bool) HTMLDialog

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLDialog

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLDialog

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLDialog

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLDialog

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLDialog

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLDialog

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLDialog

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLDialog

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLDialog

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLDialog

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLDialog

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLDialog

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLDialog

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLDialog

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLDialog

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLDialog

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLDialog

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLDialog

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLDialog

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLDialog

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLDialog

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLDialog

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLDialog

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLDialog

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLDialog

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLDialog

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLDialog

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLDialog

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLDiv

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLDiv

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLDiv

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLDiv

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLDiv

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLDiv

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLDiv

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLDiv

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLDiv

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLDiv

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLDiv

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLDiv

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLDiv

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLDiv

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLDiv

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLDiv

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLDiv

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLDiv

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLDiv

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLDiv

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLDiv

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLDiv

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLDiv

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLDiv

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLDiv

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLDiv

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLDiv

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLDiv

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLDiv

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLDiv

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLDiv

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLDiv

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLDiv

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLDiv

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLDiv

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLDiv

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLDiv

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLDl

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLDl

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLDl

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLDl

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLDl

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLDl

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLDl

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLDl

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLDl

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLDl

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLDl

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLDl

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLDl

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLDl

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLDl

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLDl

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLDl

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLDl

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLDl

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLDl

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLDl

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLDl

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLDl

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLDl

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLDl

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLDl

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLDl

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLDl

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLDl

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLDl

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLDl

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLDl

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLDl

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLDl

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLDl

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLDl

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLDl

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLDt

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLDt

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLDt

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLDt

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLDt

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLDt

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLDt

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLDt

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLDt

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLDt

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLDt

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLDt

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLDt

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLDt

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLDt

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLDt

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLDt

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLDt

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLDt

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLDt

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLDt

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLDt

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLDt

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLDt

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLDt

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLDt

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLDt

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLDt

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLDt

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLDt

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLDt

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLDt

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLDt

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLDt

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLDt

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLDt

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLDt

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

func Dt

func Dt() HTMLDt

Dt returns an HTML element that defines a term/name in a description list.

type HTMLElem

HTMLElem is the interface that describes a "elem" HTML element.

type HTMLElem interface {
    UI

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

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v any) HTMLElem

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLElem

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLElem

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLElem

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLElem

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    Class(v ...string) HTMLElem

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

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v any) HTMLElem

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLElem

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) HTMLElem

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

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

    // ID specifies a unique id for an element with the given format and values.
    ID(format string, v ...any) HTMLElem

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLElem

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) HTMLElem

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

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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLElem

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLElem

    // XMLNS specifies the xml namespace of the element.
    XMLNS(v string) HTMLElem

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLElem

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLElem

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLElem

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLElem

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLElem

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLElem

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLElem

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLElem

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLElem

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLElem

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLElem

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLElem

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLElem

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLElem

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLElem

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLElem

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLElem

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLElem

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLElem

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLElem

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLElem

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLElem

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLElem

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLElem

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLElem

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLElem

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

func Elem

func Elem(tag string) HTMLElem

Elem returns an HTML element that represents an customizable HTML element.

type HTMLElemSelfClosing

HTMLElemSelfClosing is the interface that describes a "elemselfclosing" HTML element.

type HTMLElemSelfClosing interface {
    UI

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLElemSelfClosing

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLElemSelfClosing

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLElemSelfClosing

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    Class(v ...string) HTMLElemSelfClosing

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

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v any) HTMLElemSelfClosing

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLElemSelfClosing

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) HTMLElemSelfClosing

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

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

    // ID specifies a unique id for an element with the given format and values.
    ID(format string, v ...any) HTMLElemSelfClosing

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLElemSelfClosing

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) HTMLElemSelfClosing

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

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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLElemSelfClosing

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLElemSelfClosing

    // XMLNS specifies the xml namespace of the element.
    XMLNS(v string) HTMLElemSelfClosing

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLElemSelfClosing

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLElemSelfClosing

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLElemSelfClosing

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLElemSelfClosing

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLElemSelfClosing

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLElemSelfClosing

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLElemSelfClosing

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLElemSelfClosing

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLElemSelfClosing

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLElemSelfClosing

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

func ElemSelfClosing

func ElemSelfClosing(tag string) HTMLElemSelfClosing

ElemSelfClosing returns an HTML element that represents a self closing custom HTML element.

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 any) HTMLEm

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLEm

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLEm

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLEm

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLEm

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLEm

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLEm

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLEm

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLEm

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLEm

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLEm

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLEm

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLEm

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLEm

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLEm

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLEm

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLEm

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLEm

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLEm

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLEm

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLEm

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLEm

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLEm

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLEm

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLEm

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLEm

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLEm

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLEm

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLEm

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLEm

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLEm

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLEm

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLEm

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLEm

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLEm

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLEm

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLEm

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLEmbed

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLEmbed

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLEmbed

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLEmbed

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLEmbed

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLEmbed

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLEmbed

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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 with the given format and values.
    Src(format string, v ...any) HTMLEmbed

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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLEmbed

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLEmbed

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLEmbed

    // Width specifies the width of the element.
    Width(v int) HTMLEmbed

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLEmbed

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler, scope ...any) HTMLEmbed

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLEmbed

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler, scope ...any) 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, scope ...any) HTMLEmbed

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLEmbed

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLEmbed

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLEmbed

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLEmbed

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler, scope ...any) HTMLEmbed

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLEmbed

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLEmbed

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLEmbed

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLEmbed

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLEmbed

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLEmbed

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler, scope ...any) HTMLEmbed

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

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler, scope ...any) HTMLEmbed

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler, scope ...any) HTMLEmbed

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLEmbed

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLEmbed

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLEmbed

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLEmbed

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLEmbed

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLEmbed

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

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler, scope ...any) HTMLEmbed

    // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnLoadedMetaData(h EventHandler, scope ...any) HTMLEmbed

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLEmbed

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLEmbed

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLEmbed

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLEmbed

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLEmbed

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

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler, scope ...any) HTMLEmbed

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler, scope ...any) HTMLEmbed

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler, scope ...any) 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, scope ...any) HTMLEmbed

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLEmbed

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLEmbed

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

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

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

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLEmbed

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler, scope ...any) 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, scope ...any) HTMLEmbed

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler, scope ...any) 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, scope ...any) HTMLEmbed

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLFieldSet

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLFieldSet

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLFieldSet

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLFieldSet

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLFieldSet

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLFieldSet

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLFieldSet

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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. Uses the given format and values.
    Form(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLFieldSet

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLFieldSet

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLFieldSet

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLFieldSet

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLFieldSet

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLFieldSet

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLFieldSet

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLFieldSet

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLFieldSet

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLFieldSet

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLFieldSet

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLFieldSet

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLFieldSet

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLFieldSet

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLFieldSet

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLFieldSet

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLFieldSet

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLFieldSet

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLFieldSet

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLFieldSet

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLFieldSet

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLFieldSet

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLFieldSet

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLFieldSet

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLFieldSet

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLFieldSet

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLFieldSet

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLFieldSet

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLFieldSet

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLFieldSet

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLFieldSet

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLFigCaption

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLFigCaption

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLFigCaption

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLFigCaption

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLFigCaption

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLFigCaption

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLFigCaption

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLFigCaption

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLFigCaption

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLFigCaption

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLFigCaption

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLFigCaption

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLFigCaption

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLFigCaption

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLFigCaption

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLFigCaption

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLFigCaption

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLFigCaption

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLFigCaption

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLFigCaption

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLFigCaption

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLFigCaption

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLFigCaption

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLFigCaption

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLFigCaption

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLFigCaption

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLFigCaption

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLFigCaption

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLFigCaption

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLFigCaption

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLFigCaption

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLFigCaption

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLFigCaption

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLFigCaption

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLFigCaption

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLFigCaption

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLFigCaption

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLFigure

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLFigure

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLFigure

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLFigure

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLFigure

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLFigure

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLFigure

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLFigure

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLFigure

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLFigure

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLFigure

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLFigure

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLFigure

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLFigure

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLFigure

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLFigure

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLFigure

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLFigure

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLFigure

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLFigure

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLFigure

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLFigure

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLFigure

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLFigure

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLFigure

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLFigure

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLFigure

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLFigure

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLFigure

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLFigure

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLFigure

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLFigure

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLFigure

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLFigure

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLFigure

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLFigure

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLFigure

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLFooter

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLFooter

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLFooter

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLFooter

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLFooter

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLFooter

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLFooter

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLFooter

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLFooter

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLFooter

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLFooter

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLFooter

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLFooter

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLFooter

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLFooter

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLFooter

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLFooter

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLFooter

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLFooter

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLFooter

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLFooter

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLFooter

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLFooter

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLFooter

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLFooter

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLFooter

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLFooter

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLFooter

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLFooter

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLFooter

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLFooter

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLFooter

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLFooter

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLFooter

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLFooter

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLFooter

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLFooter

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLForm

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLForm

    // AcceptCharset specifies the character encodings that are to be used for the form submission.
    AcceptCharset(v string) HTMLForm

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLForm

    // Action specifies where to send the form-data with the given format and values when a form is submitted.
    Action(format string, v ...any) HTMLForm

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLForm

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) 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).
    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 any) HTMLForm

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLForm

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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). Uses the given format and values.
    EncType(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLForm

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLForm

    // Method specifies the HTTP method to use when sending form-data. Uses the given format and values.
    Method(format string, v ...any) HTMLForm

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLForm

    // NoValidate specifies that the form should not be validated when submitted.
    NoValidate(v bool) HTMLForm

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]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. Uses the given format and values.
    Target(format string, v ...any) HTMLForm

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLForm

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLForm

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLForm

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLForm

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLForm

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLForm

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLForm

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLForm

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLForm

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLForm

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLForm

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLForm

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLForm

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLForm

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLForm

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLForm

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLForm

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLForm

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLForm

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLForm

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLForm

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLForm

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLForm

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLForm

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLForm

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLForm

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLForm

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLH1

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLH1

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLH1

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLH1

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLH1

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLH1

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLH1

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLH1

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLH1

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLH1

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLH1

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLH1

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLH1

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLH1

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLH1

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLH1

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLH1

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLH1

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLH1

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLH1

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLH1

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLH1

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLH1

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLH1

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLH1

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLH1

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLH1

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLH1

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLH1

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLH1

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLH1

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLH1

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLH1

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLH1

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLH1

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLH1

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLH1

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLH2

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLH2

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLH2

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLH2

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLH2

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLH2

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLH2

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLH2

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLH2

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLH2

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLH2

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLH2

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLH2

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLH2

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLH2

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLH2

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLH2

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLH2

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLH2

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLH2

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLH2

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLH2

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLH2

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLH2

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLH2

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLH2

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLH2

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLH2

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLH2

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLH2

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLH2

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLH2

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLH2

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLH2

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLH2

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLH2

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLH2

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLH3

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLH3

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLH3

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLH3

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLH3

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLH3

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLH3

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLH3

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLH3

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLH3

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLH3

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLH3

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLH3

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLH3

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLH3

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLH3

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLH3

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLH3

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLH3

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLH3

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLH3

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLH3

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLH3

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLH3

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLH3

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLH3

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLH3

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLH3

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLH3

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLH3

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLH3

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLH3

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLH3

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLH3

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLH3

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLH3

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLH3

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLH4

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLH4

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLH4

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLH4

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLH4

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLH4

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLH4

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLH4

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLH4

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLH4

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLH4

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLH4

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLH4

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLH4

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLH4

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLH4

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLH4

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLH4

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLH4

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLH4

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLH4

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLH4

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLH4

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLH4

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLH4

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLH4

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLH4

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLH4

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLH4

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLH4

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLH4

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLH4

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLH4

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLH4

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLH4

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLH4

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLH4

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLH5

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLH5

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLH5

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLH5

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLH5

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLH5

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLH5

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLH5

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLH5

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLH5

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLH5

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLH5

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLH5

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLH5

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLH5

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLH5

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLH5

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLH5

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLH5

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLH5

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLH5

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLH5

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLH5

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLH5

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLH5

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLH5

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLH5

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLH5

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLH5

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLH5

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLH5

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLH5

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLH5

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLH5

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLH5

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLH5

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLH5

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLH6

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLH6

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLH6

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLH6

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLH6

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLH6

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLH6

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLH6

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLH6

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLH6

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLH6

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLH6

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLH6

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLH6

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLH6

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLH6

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLH6

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLH6

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLH6

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLH6

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLH6

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLH6

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLH6

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLH6

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLH6

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLH6

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLH6

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLH6

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLH6

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLH6

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLH6

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLH6

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLH6

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLH6

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLH6

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLH6

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLH6

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLHead

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLHead

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLHead

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLHead

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLHead

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLHead

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLHead

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLHead

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLHead

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLHead

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLHead

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) 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 any) HTMLHeader

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLHeader

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLHeader

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLHeader

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLHeader

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLHeader

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLHeader

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLHeader

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLHeader

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLHeader

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLHeader

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLHeader

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLHeader

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLHeader

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLHeader

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLHeader

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLHeader

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLHeader

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLHeader

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLHeader

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLHeader

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLHeader

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLHeader

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLHeader

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLHeader

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLHeader

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLHeader

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLHeader

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLHeader

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLHeader

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLHeader

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLHeader

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLHeader

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLHeader

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLHeader

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLHeader

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLHeader

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLHr

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLHr

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLHr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLHr

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLHr

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLHr

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLHr

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLHr

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLHr

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLHr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLHr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLHr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLHr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLHr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLHr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLHr

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLHr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLHr

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLHr

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLHr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLHr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLHr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLHr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLHr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLHr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLHr

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLHr

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLHr

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLHr

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLHr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLHr

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLHr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLHr

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLHr

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLHr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLHtml

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLHtml

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLHtml

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLHtml

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLHtml

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLHtml

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLHtml

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLHtml

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLHtml

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLHtml
    // contains filtered or unexported methods
}

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 any) HTMLI

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLI

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLI

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLI

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLI

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLI

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLI

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLI

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLI

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLI

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

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLI

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLI

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLI

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLI

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLI

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLI

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLI

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLI

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

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLI

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLI

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

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLI

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

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLI

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLI

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLI

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLI

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLI

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLI

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLI

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLI

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

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLI

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLI

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

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLI

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLI

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

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLI

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLI

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

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLI

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

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLI

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLIFrame

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLIFrame

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLIFrame

    // Allow specifies a feature policy with the given format and values. Can be called multiple times to set multiple policies.
    Allow(format string, v ...any) 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 any) HTMLIFrame

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLIFrame

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLIFrame

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLIFrame

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLIFrame

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLIFrame

    // Loading indicates how the browser should load the iframe (eager|lazy). Uses the given format and values.
    Loading(format string, v ...any) HTMLIFrame

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLIFrame

    // ReferrerPolicy specifies how much/which referrer information that will be sent when processing the iframe attributes. Uses the given format and values.
    ReferrerPolicy(format string, v ...any) HTMLIFrame

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) HTMLIFrame

    // Sandbox enables an extra set of restrictions for the content in an iframe.
    Sandbox(v any) 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 with the given format and values.
    Src(format string, v ...any) HTMLIFrame

    // SrcDoc specifies the HTML content of the page to show in the iframe with the given format and values.
    SrcDoc(format string, v ...any) HTMLIFrame

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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLIFrame

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLIFrame

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLIFrame

    // Width specifies the width of the element.
    Width(v int) HTMLIFrame

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLIFrame

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLIFrame

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLIFrame

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLIFrame

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLIFrame

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLIFrame

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLIFrame

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLIFrame

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLIFrame

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLIFrame

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLIFrame

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLIFrame

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLIFrame

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLIFrame

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLIFrame

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLIFrame

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLIFrame

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLIFrame

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLIFrame

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLIFrame

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLIFrame

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler, scope ...any) HTMLIFrame

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLIFrame

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLIFrame

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLIFrame

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLIFrame

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLIFrame

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLIFrame

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLIFrame

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLIFrame

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLIFrame

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLIFrame

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLIFrame

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLIFrame

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLIFrame

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLImg

    // Alt specifies an alternate text with the given format and values when the original element fails to display.
    Alt(format string, v ...any) HTMLImg

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLImg

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLImg

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    Class(v ...string) HTMLImg

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLImg

    // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values.
    CrossOrigin(format string, v ...any) HTMLImg

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v any) HTMLImg

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLImg

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) HTMLImg

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLImg

    // FetchPriority specifies a hint given to the browser on how it should prioritize the fetch of the image relative to other images.
    FetchPriority(v string) 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 with the given format and values.
    ID(format string, v ...any) HTMLImg

    // IsMap specifies an image as a server-side image-map.
    IsMap(v bool) HTMLImg

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLImg

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) HTMLImg

    // Sizes specifies the size of the linked resource with the given format and values.
    Sizes(format string, v ...any) 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 with the given format and values.
    Src(format string, v ...any) HTMLImg

    // SrcSet specifies the URL of the image to use in different situations with the given format and values.
    SrcSet(format string, v ...any) HTMLImg

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLImg

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLImg

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLImg

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLImg

    // UseMap specifies an image as a client-side image-map. Uses the given format and values.
    UseMap(format string, v ...any) HTMLImg

    // Width specifies the width of the element.
    Width(v int) HTMLImg

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLImg

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler, scope ...any) HTMLImg

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLImg

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler, scope ...any) 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, scope ...any) HTMLImg

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLImg

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLImg

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLImg

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLImg

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler, scope ...any) HTMLImg

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLImg

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLImg

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLImg

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLImg

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLImg

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLImg

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLImg

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLImg

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLImg

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler, scope ...any) HTMLImg

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler, scope ...any) HTMLImg

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler, scope ...any) HTMLImg

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler, scope ...any) HTMLImg

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLImg

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLImg

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLImg

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLImg

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLImg

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLImg

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler, scope ...any) HTMLImg

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler, scope ...any) HTMLImg

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler, scope ...any) HTMLImg

    // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnLoadedMetaData(h EventHandler, scope ...any) HTMLImg

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLImg

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLImg

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLImg

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLImg

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLImg

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLImg

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLImg

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLImg

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler, scope ...any) HTMLImg

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler, scope ...any) HTMLImg

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler, scope ...any) HTMLImg

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler, scope ...any) 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, scope ...any) HTMLImg

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLImg

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLImg

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLImg

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler, scope ...any) HTMLImg

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler, scope ...any) HTMLImg

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLImg

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler, scope ...any) HTMLImg

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLImg

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler, scope ...any) 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, scope ...any) HTMLImg

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler, scope ...any) 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, scope ...any) HTMLImg

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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) with the given format and values.
    Accept(format string, v ...any) HTMLInput

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLInput

    // Alt specifies an alternate text with the given format and values when the original element fails to display.
    Alt(format string, v ...any) HTMLInput

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLInput

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) 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

    // Capture specifies the capture input method in file upload controls with the given format and values.
    Capture(format string, v ...any) 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).
    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 any) HTMLInput

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLInput

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) HTMLInput

    // DirName specifies that the text direction will be submitted using the given format and values.
    DirName(format string, v ...any) 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. Uses the given format and values.
    Form(format string, v ...any) HTMLInput

    // FormAction specifies where to send the form-data when a form is submitted. Only for submit type. Uses the given format and values.
    FormAction(format string, v ...any) HTMLInput

    // FormEncType specifies how form-data should be encoded before sending it to a server. Only for submit type. Uses the given format and values.
    FormEncType(format string, v ...any) HTMLInput

    // FormMethod specifies how to send the form-data (which HTTP method to use). Only for submit type. Uses the given format and values.
    FormMethod(format string, v ...any) 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. Uses the given format and values.
    FormTarget(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLInput

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLInput

    // List refers to a datalist element that contains pre-defined options for an input element. Uses the given format and values.
    List(format string, v ...any) HTMLInput

    // Max Specifies the maximum value.
    Max(v any) HTMLInput

    // MaxLength specifies the maximum number of characters allowed in an element.
    MaxLength(v int) HTMLInput

    // Min specifies a minimum value.
    Min(v any) HTMLInput

    // Multiple specifies that a user can enter more than one value.
    Multiple(v bool) HTMLInput

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLInput

    // Pattern specifies a regular expression that an input element's value is checked against. Uses the given format and values.
    Pattern(format string, v ...any) HTMLInput

    // Placeholder specifies a short hint that describes the expected value of the element. Uses the given format and values.
    Placeholder(format string, v ...any) 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

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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 with the given format and values.
    Src(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLInput

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLInput

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLInput

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLInput

    // Value specifies the value of the element.
    Value(v any) HTMLInput

    // Width specifies the width of the element.
    Width(v int) HTMLInput

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLInput

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLInput

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLInput

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLInput

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLInput

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLInput

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLInput

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLInput

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLInput

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLInput

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLInput

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLInput

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLInput

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLInput

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLInput

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLInput

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLInput

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLInput

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLInput

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLInput

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLInput

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler, scope ...any) HTMLInput

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLInput

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLInput

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLInput

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLInput

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLInput

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLInput

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLInput

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLInput

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLInput

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLInput

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLInput

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLInput

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLInput

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLIns

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLIns

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLIns

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLIns

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLIns

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLIns

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLIns

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLIns

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLIns

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLIns

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLIns

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLIns

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLIns

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLIns

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLIns

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLIns

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLIns

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLIns

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLIns

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLIns

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLIns

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLIns

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLIns

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLIns

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLIns

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLIns

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLIns

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLIns

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLIns

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLIns

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLIns

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLIns

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLIns

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLIns

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLIns

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLIns

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLIns

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLIns

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLIns

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLIns

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLIns

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLIns

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLIns

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLIns

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLIns

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLIns

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLKbd

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLKbd

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLKbd

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLKbd

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLKbd

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLKbd

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLKbd

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLKbd

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLKbd

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLKbd

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLKbd

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLKbd

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLKbd

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLKbd

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLKbd

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLKbd

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLKbd

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLKbd

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLKbd

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLKbd

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLKbd

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLKbd

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLKbd

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLKbd

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLKbd

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLKbd

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLKbd

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLKbd

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLKbd

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLKbd

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLKbd

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLKbd

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLKbd

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLKbd

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLKbd

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLKbd

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLKbd

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLKbd

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLKbd

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLKbd

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLKbd

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLKbd

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLKbd

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLKbd

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLKbd

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLKbd

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLLabel

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLLabel

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLLabel

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLLabel

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLLabel

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLLabel

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLLabel

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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. Uses the given format and values.
    For(format string, v ...any) HTMLLabel

    // Form specifies the name of the form the element belongs to. Uses the given format and values.
    Form(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLLabel

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLLabel

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLLabel

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLabel

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLLabel

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLLabel

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLLabel

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLLabel

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLLabel

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLLabel

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLLabel

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLLabel

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLLabel

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLLabel

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLLabel

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLLabel

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLLabel

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLLabel

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLLabel

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLLabel

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLLabel

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLLabel

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLLabel

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLLabel

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLLabel

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLLabel

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLLabel

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLLabel

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLLabel

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLLabel

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLLabel

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLLabel

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLLabel

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLLabel

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLLabel

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLLabel

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLLabel

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLLabel

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLLabel

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) HTMLLabel
}

func Label

func Label() HTMLLabel

Label returns an HTML element that defines a label for an input element.

type HTMLLegend

HTMLLegend is the interface that describes a "legend" HTML element.

type HTMLLegend interface {
    UI

    // Body set the content of the element.
    Body(elems ...UI) HTMLLegend

    // Text sets the content of the element with a text node containing the stringified given value.
    Text(v any) HTMLLegend

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLLegend

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLLegend

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLLegend

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLLegend

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    Class(v ...string) HTMLLegend

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLegend

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v any) HTMLLegend

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLLegend

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) HTMLLegend

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLegend

    // Hidden specifies that an element is not yet, or is no longer relevant.
    Hidden(v bool) HTMLLegend

    // ID specifies a unique id for an element with the given format and values.
    ID(format string, v ...any) HTMLLegend

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLLegend

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) HTMLLegend

    // Spellcheck specifies whether the element is to have its spelling and grammar checked or not.
    Spellcheck(v bool) HTMLLegend

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLLegend

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLLegend

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLegend

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLLegend

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLLegend

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLLegend

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLLegend

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLLegend

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLLegend

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLLegend

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLLegend

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLLegend

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLLegend

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLLegend

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLLegend

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLLegend

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLLegend

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLLegend

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLLegend

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLLegend

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLLegend

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLLegend

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLLegend

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLLegend

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLLegend

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLLegend

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLLegend

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLLegend

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLLegend

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLLegend

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLLegend

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLLegend

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLLegend

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLLegend

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLLegend

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLLegend

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLLegend

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLLegend

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) HTMLLegend
}

func Legend

func Legend() HTMLLegend

Legend 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 any) HTMLLi

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLLi

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLLi

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLLi

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLLi

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLLi

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLLi

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLLi

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLLi

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLLi

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLi

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLLi

    // Value specifies the value of the element.
    Value(v any) HTMLLi

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLLi

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLLi

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLLi

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLLi

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLLi

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLLi

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLLi

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLLi

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLLi

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLLi

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLLi

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLLi

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLLi

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLLi

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLLi

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLLi

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLLi

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLLi

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLLi

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLLi

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLLi

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLLi

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLLi

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLLi

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLLi

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLLi

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLLi

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLLi

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLLi

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLLi

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLLi

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLLi

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLLi

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLLi

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLLink

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLLink

    // As specifies a resource type to preload with the given format and values.
    As(format string, v ...any) HTMLLink

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLLink

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    Class(v ...string) HTMLLink

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLLink

    // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values.
    CrossOrigin(format string, v ...any) HTMLLink

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v any) HTMLLink

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLLink

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) HTMLLink

    // Draggable specifies whether an element is draggable or not.
    Draggable(v bool) HTMLLink

    // FetchPriority specifies a hint given to the browser on how it should prioritize the fetch of the image relative to other images.
    FetchPriority(v string) 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 with the given format and values.
    Href(format string, v ...any) HTMLLink

    // HrefLang specifies the language of the linked document with the given format and values.
    HrefLang(format string, v ...any) HTMLLink

    // ID specifies a unique id for an element with the given format and values.
    ID(format string, v ...any) HTMLLink

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLLink

    // Media specifies what media/device the linked document is optimized for. Uses the given format and values.
    Media(format string, v ...any) HTMLLink

    // Rel specifies the relationship between the current document and the linked document. uses the given format and values.
    Rel(format string, v ...any) HTMLLink

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) HTMLLink

    // Sizes specifies the size of the linked resource with the given format and values.
    Sizes(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLLink

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLLink

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLLink

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLLink

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLLink

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLLink

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLLink

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLLink

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLLink

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLLink

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLLink

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLLink

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLLink

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLLink

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLLink

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLLink

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLLink

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLLink

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLLink

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLLink

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLLink

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLLink

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLLink

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLLink

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLLink

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler, scope ...any) HTMLLink

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLLink

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLLink

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLLink

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLLink

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLLink

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLLink

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLLink

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLLink

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLLink

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLLink

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLLink

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLLink

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLLink

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLMain

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLMain

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLMain

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLMain

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLMain

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLMain

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLMain

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLMain

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLMain

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLMain

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMain

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLMain

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLMain

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLMain

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLMain

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLMain

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLMain

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLMain

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLMain

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLMain

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLMain

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLMain

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLMain

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLMain

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLMain

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLMain

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLMain

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLMain

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLMain

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLMain

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLMain

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLMain

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLMain

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLMain

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLMain

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLMain

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLMain

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLMain

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLMain

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLMain

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLMain

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLMain

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLMain

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLMain

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLMain

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLMain

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLMap

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLMap

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLMap

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLMap

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLMap

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLMap

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLMap

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLMap

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLMap

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLMap

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLMap

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMap

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLMap

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLMap

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLMap

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLMap

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLMap

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLMap

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLMap

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLMap

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLMap

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLMap

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLMap

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLMap

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLMap

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLMap

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLMap

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLMap

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLMap

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLMap

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLMap

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLMap

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLMap

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLMap

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLMap

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLMap

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLMap

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLMap

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLMap

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLMap

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLMap

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLMap

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLMap

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLMap

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLMap

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLMap

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLMap

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLMark

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLMark

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLMark

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLMark

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLMark

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLMark

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLMark

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLMark

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLMark

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLMark

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMark

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLMark

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLMark

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLMark

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLMark

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLMark

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLMark

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLMark

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLMark

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLMark

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLMark

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLMark

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLMark

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLMark

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLMark

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLMark

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLMark

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLMark

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLMark

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLMark

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLMark

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLMark

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLMark

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLMark

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLMark

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLMark

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLMark

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLMark

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLMark

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLMark

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLMark

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLMark

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLMark

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLMark

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLMark

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLMark

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLMeta

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLMeta

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLMeta

    // Charset specifies the character encoding with the given format and values.
    Charset(format string, v ...any) HTMLMeta

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    Class(v ...string) HTMLMeta

    // Content specifies the value associated with the http-equiv or name attribute using the given format and values.
    Content(format string, v ...any) 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 any) HTMLMeta

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLMeta

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLMeta

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLMeta

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLMeta

    // Property specifies the property name with the given format and values.
    Property(format string, v ...any) HTMLMeta

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLMeta

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMeta

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLMeta

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) 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 any) HTMLMeter

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLMeter

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLMeter

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLMeter

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLMeter

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLMeter

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLMeter

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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. Uses the given format and values.
    Form(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLMeter

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLMeter

    // Low specifies the range that is considered to be a low value.
    Low(v float64) HTMLMeter

    // Max Specifies the maximum value.
    Max(v any) HTMLMeter

    // Min specifies a minimum value.
    Min(v any) HTMLMeter

    // Optimum specifies what value is the optimal value for the gauge.
    Optimum(v float64) HTMLMeter

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLMeter

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLMeter

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLMeter

    // Value specifies the value of the element.
    Value(v any) HTMLMeter

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLMeter

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLMeter

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLMeter

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLMeter

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLMeter

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLMeter

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLMeter

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLMeter

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLMeter

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLMeter

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLMeter

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLMeter

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLMeter

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLMeter

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLMeter

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLMeter

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLMeter

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLMeter

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLMeter

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLMeter

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLMeter

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLMeter

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLMeter

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLMeter

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLMeter

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLMeter

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLMeter

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLMeter

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLMeter

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLMeter

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLMeter

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLMeter

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLMeter

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLMeter

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLNav

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLNav

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLNav

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLNav

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLNav

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLNav

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLNav

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLNav

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLNav

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLNav

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLNav

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLNav

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLNav

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLNav

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLNav

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLNav

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLNav

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLNav

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLNav

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLNav

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLNav

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLNav

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLNav

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLNav

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLNav

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLNav

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLNav

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLNav

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLNav

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLNav

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLNav

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLNav

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLNav

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLNav

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLNav

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLNav

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLNav

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLNav

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLNav

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLNav

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLNav

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLNav

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLNav

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLNav

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLNav

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLNav

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLNoScript

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLNoScript

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLNoScript

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLNoScript

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLNoScript

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLNoScript

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLNoScript

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLNoScript

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLNoScript

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLNoScript

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLNoScript

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLNoScript

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) 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 any) HTMLObject

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLObject

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLObject

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLObject

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLObject

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 with the given format and values.
    Data(format string, v ...any) HTMLObject

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v any) HTMLObject

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLObject

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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. Uses the given format and values.
    Form(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLObject

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLObject

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLObject

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLObject

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLObject

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLObject

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLObject

    // UseMap specifies an image as a client-side image-map. Uses the given format and values.
    UseMap(format string, v ...any) HTMLObject

    // Width specifies the width of the element.
    Width(v int) HTMLObject

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLObject

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler, scope ...any) HTMLObject

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLObject

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler, scope ...any) 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, scope ...any) HTMLObject

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLObject

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLObject

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLObject

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLObject

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler, scope ...any) HTMLObject

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLObject

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLObject

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLObject

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLObject

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLObject

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLObject

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLObject

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLObject

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLObject

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler, scope ...any) HTMLObject

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler, scope ...any) HTMLObject

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler, scope ...any) HTMLObject

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler, scope ...any) HTMLObject

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLObject

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLObject

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLObject

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLObject

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLObject

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLObject

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler, scope ...any) HTMLObject

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler, scope ...any) HTMLObject

    // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnLoadedMetaData(h EventHandler, scope ...any) HTMLObject

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLObject

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLObject

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLObject

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLObject

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLObject

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLObject

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLObject

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLObject

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler, scope ...any) HTMLObject

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler, scope ...any) HTMLObject

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler, scope ...any) HTMLObject

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler, scope ...any) 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, scope ...any) HTMLObject

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLObject

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLObject

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLObject

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler, scope ...any) HTMLObject

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler, scope ...any) HTMLObject

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLObject

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler, scope ...any) HTMLObject

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLObject

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler, scope ...any) 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, scope ...any) HTMLObject

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler, scope ...any) 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, scope ...any) HTMLObject

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLOl

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLOl

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLOl

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLOl

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLOl

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLOl

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLOl

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLOl

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLOl

    // Reversed specifies that the list order should be descending (9,8,7...).
    Reversed(v bool) HTMLOl

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLOl

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOl

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLOl

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLOl

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLOl

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLOl

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLOl

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLOl

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLOl

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLOl

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLOl

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLOl

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLOl

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLOl

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLOl

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLOl

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLOl

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLOl

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLOl

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLOl

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLOl

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLOl

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLOl

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLOl

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLOl

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLOl

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLOl

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLOl

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLOl

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLOl

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLOl

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLOl

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLOl

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLOl

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLOl

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLOl

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLOl

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLOl

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLOptGroup

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLOptGroup

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLOptGroup

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLOptGroup

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLOptGroup

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLOptGroup

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLOptGroup

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLOptGroup

    // Label specifies a shorter label for the option with the given format and values.
    Label(format string, v ...any) HTMLOptGroup

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLOptGroup

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLOptGroup

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOptGroup

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLOptGroup

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLOptGroup

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLOptGroup

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLOptGroup

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLOptGroup

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLOptGroup

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLOptGroup

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLOptGroup

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLOptGroup

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLOptGroup

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLOptGroup

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLOptGroup

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLOptGroup

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLOptGroup

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLOptGroup

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLOptGroup

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLOptGroup

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLOptGroup

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLOptGroup

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLOptGroup

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLOptGroup

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLOptGroup

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLOptGroup

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLOptGroup

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLOptGroup

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLOptGroup

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLOptGroup

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLOptGroup

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLOptGroup

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLOptGroup

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLOptGroup

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLOptGroup

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLOptGroup

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLOptGroup

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLOptGroup

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLOption

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLOption

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLOption

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLOption

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLOption

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLOption

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLOption

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLOption

    // Label specifies a shorter label for the option with the given format and values.
    Label(format string, v ...any) HTMLOption

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLOption

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLOption

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOption

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLOption

    // Value specifies the value of the element.
    Value(v any) HTMLOption

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLOption

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLOption

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLOption

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLOption

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLOption

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLOption

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLOption

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLOption

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLOption

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLOption

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLOption

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLOption

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLOption

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLOption

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLOption

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLOption

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLOption

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLOption

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLOption

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLOption

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLOption

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLOption

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLOption

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLOption

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLOption

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLOption

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLOption

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLOption

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLOption

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLOption

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLOption

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLOption

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLOption

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLOption

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLOutput

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLOutput

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLOutput

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLOutput

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLOutput

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLOutput

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLOutput

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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. Uses the given format and values.
    For(format string, v ...any) HTMLOutput

    // Form specifies the name of the form the element belongs to. Uses the given format and values.
    Form(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLOutput

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLOutput

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLOutput

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLOutput

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLOutput

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLOutput

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLOutput

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLOutput

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLOutput

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLOutput

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLOutput

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLOutput

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLOutput

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLOutput

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLOutput

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLOutput

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLOutput

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLOutput

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLOutput

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLOutput

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLOutput

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLOutput

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLOutput

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLOutput

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLOutput

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLOutput

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLOutput

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLOutput

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLOutput

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLOutput

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLOutput

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLOutput

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLOutput

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLOutput

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLOutput

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLOutput

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLOutput

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLOutput

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLOutput

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLOutput

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLP

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLP

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLP

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLP

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLP

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLP

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLP

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLP

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLP

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLP

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLP

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLP

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLP

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLP

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLP

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLP

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLP

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLP

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLP

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLP

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLP

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLP

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLP

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLP

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLP

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLP

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLP

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLP

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLP

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLP

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLP

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLP

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLP

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLP

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLP

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLP

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLP

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLP

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLP

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLP

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLP

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLP

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLP

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLP

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLP

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLP

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLParam

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLParam

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLParam

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLParam

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLParam

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLParam

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLParam

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLParam

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLParam

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLParam

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLParam

    // Value specifies the value of the element.
    Value(v any) HTMLParam

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLParam

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLParam

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLParam

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLParam

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLParam

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLParam

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLParam

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLParam

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLParam

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLParam

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLParam

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLParam

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLParam

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLParam

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLParam

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLParam

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLParam

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLParam

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLParam

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLParam

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLParam

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLParam

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLParam

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLParam

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLParam

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLParam

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLParam

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLParam

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLParam

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLParam

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLParam

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLParam

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLParam

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLParam

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLPicture

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLPicture

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLPicture

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLPicture

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLPicture

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLPicture

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLPicture

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLPicture

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLPicture

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLPicture

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLPicture

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLPicture

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLPicture

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLPicture

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLPicture

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLPicture

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLPicture

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLPicture

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLPicture

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLPicture

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLPicture

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLPicture

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLPicture

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLPicture

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLPicture

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLPicture

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLPicture

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLPicture

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLPicture

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLPicture

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLPicture

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLPicture

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLPicture

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLPicture

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLPicture

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLPicture

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLPicture

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLPicture

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLPicture

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLPicture

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLPicture

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLPicture

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLPicture

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLPicture

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLPicture

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLPicture

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLPre

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLPre

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLPre

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLPre

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLPre

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLPre

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLPre

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLPre

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLPre

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLPre

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLPre

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLPre

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLPre

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLPre

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLPre

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLPre

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLPre

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLPre

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLPre

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLPre

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLPre

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLPre

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLPre

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLPre

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLPre

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLPre

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLPre

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLPre

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLPre

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLPre

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLPre

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLPre

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLPre

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLPre

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLPre

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLPre

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLPre

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLPre

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLPre

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLPre

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLPre

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLPre

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLPre

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLPre

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLPre

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLPre

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLProgress

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLProgress

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLProgress

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLProgress

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLProgress

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLProgress

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLProgress

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLProgress

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLProgress

    // Max Specifies the maximum value.
    Max(v any) HTMLProgress

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLProgress

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLProgress

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLProgress

    // Value specifies the value of the element.
    Value(v any) HTMLProgress

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLProgress

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLProgress

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLProgress

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLProgress

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLProgress

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLProgress

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLProgress

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLProgress

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLProgress

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLProgress

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLProgress

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLProgress

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLProgress

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLProgress

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLProgress

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLProgress

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLProgress

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLProgress

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLProgress

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLProgress

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLProgress

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLProgress

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLProgress

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLProgress

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLProgress

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLProgress

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLProgress

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLProgress

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLProgress

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLProgress

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLProgress

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLProgress

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLProgress

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLProgress

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLQ

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLQ

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLQ

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLQ

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLQ

    // Cite specifies a URL which explains the quote/deleted/inserted text with the given format and values.
    Cite(format string, v ...any) HTMLQ

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLQ

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLQ

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLQ

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLQ

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLQ

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLQ

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLQ

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLQ

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLQ

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLQ

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLQ

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLQ

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLQ

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLQ

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLQ

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLQ

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLQ

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLQ

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLQ

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLQ

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLQ

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLQ

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLQ

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLQ

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLQ

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLQ

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLQ

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLQ

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLQ

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLQ

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLQ

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLQ

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLQ

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLQ

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLQ

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLQ

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLQ

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLQ

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLQ

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLQ

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLQ

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLRp

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLRp

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLRp

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLRp

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLRp

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLRp

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLRp

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLRp

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLRp

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLRp

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLRp

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLRp

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLRp

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLRp

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLRp

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLRp

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLRp

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLRp

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLRp

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLRp

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLRp

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLRp

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLRp

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLRp

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLRp

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLRp

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLRp

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLRp

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLRp

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLRp

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLRp

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLRp

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLRp

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLRp

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLRp

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLRp

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLRp

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLRp

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLRp

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLRp

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLRp

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLRp

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLRp

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLRp

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLRp

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLRp

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLRt

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLRt

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLRt

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLRt

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLRt

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLRt

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLRt

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLRt

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLRt

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLRt

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLRt

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLRt

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLRt

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLRt

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLRt

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLRt

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLRt

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLRt

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLRt

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLRt

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLRt

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLRt

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLRt

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLRt

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLRt

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLRt

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLRt

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLRt

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLRt

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLRt

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLRt

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLRt

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLRt

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLRt

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLRt

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLRt

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLRt

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLRt

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLRt

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLRt

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLRt

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLRt

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLRt

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLRt

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLRt

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLRt

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLRuby

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLRuby

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLRuby

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLRuby

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLRuby

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLRuby

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLRuby

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLRuby

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLRuby

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLRuby

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLRuby

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLRuby

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLRuby

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLRuby

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLRuby

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLRuby

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLRuby

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLRuby

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLRuby

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLRuby

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLRuby

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLRuby

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLRuby

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLRuby

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLRuby

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLRuby

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLRuby

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLRuby

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLRuby

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLRuby

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLRuby

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLRuby

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLRuby

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLRuby

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLRuby

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLRuby

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLRuby

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLRuby

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLRuby

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLRuby

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLRuby

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLRuby

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLRuby

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLRuby

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLRuby

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLRuby

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLS

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLS

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLS

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLS

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLS

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLS

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLS

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLS

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLS

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLS

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLS

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLS

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLS

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLS

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLS

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLS

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLS

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLS

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLS

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLS

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLS

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLS

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLS

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLS

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLS

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLS

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLS

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLS

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLS

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLS

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLS

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLS

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLS

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLS

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLS

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLS

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLS

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLS

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLS

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLS

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLS

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLS

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLS

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLS

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLS

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLS

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLSamp

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLSamp

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLSamp

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLSamp

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLSamp

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLSamp

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLSamp

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLSamp

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLSamp

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLSamp

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSamp

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLSamp

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLSamp

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLSamp

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLSamp

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLSamp

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLSamp

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLSamp

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLSamp

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLSamp

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLSamp

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLSamp

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLSamp

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLSamp

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLSamp

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLSamp

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLSamp

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLSamp

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLSamp

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLSamp

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLSamp

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLSamp

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLSamp

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLSamp

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLSamp

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLSamp

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLSamp

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLSamp

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLSamp

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLSamp

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLSamp

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLSamp

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLSamp

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLSamp

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLSamp

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLSamp

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLScript

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLScript

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLScript

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLScript

    // Async specifies that the script is executed asynchronously (only for external scripts).
    Async(v bool) HTMLScript

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLScript

    // Charset specifies the character encoding with the given format and values.
    Charset(format string, v ...any) HTMLScript

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    Class(v ...string) HTMLScript

    // ContentEditable specifies whether the content of an element is editable or not.
    ContentEditable(v bool) HTMLScript

    // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values.
    CrossOrigin(format string, v ...any) HTMLScript

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v any) HTMLScript

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) 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 with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLScript

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLScript

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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 with the given format and values.
    Src(format string, v ...any) HTMLScript

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLScript

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLScript

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLScript

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLScript

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLScript

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLScript

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler, scope ...any) 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 any) HTMLSection

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLSection

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLSection

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLSection

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLSection

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLSection

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLSection

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLSection

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLSection

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLSection

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSection

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLSection

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLSection

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLSection

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLSection

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLSection

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLSection

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLSection

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLSection

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLSection

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLSection

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLSection

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLSection

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLSection

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLSection

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLSection

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLSection

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLSection

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLSection

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLSection

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLSection

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLSection

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLSection

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLSection

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLSection

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLSection

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLSection

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLSection

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLSection

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLSection

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLSection

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLSection

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLSection

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLSection

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLSection

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLSection

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLSelect

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLSelect

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLSelect

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLSelect

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) 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).
    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 any) HTMLSelect

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLSelect

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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. Uses the given format and values.
    Form(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLSelect

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLSelect

    // Multiple specifies that a user can enter more than one value.
    Multiple(v bool) HTMLSelect

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLSelect

    // Required specifies that the element must be filled out before submitting the form.
    Required(v bool) HTMLSelect

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLSelect

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSelect

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLSelect

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLSelect

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLSelect

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLSelect

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLSelect

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLSelect

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLSelect

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLSelect

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLSelect

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLSelect

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLSelect

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLSelect

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLSelect

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLSelect

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLSelect

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLSelect

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLSelect

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLSelect

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLSelect

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLSelect

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLSelect

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLSelect

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLSelect

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLSelect

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLSelect

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLSelect

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLSelect

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLSelect

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLSelect

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLSelect

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLSelect

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLSelect

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLSelect

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLSelect

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLSelect

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLSmall

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLSmall

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLSmall

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLSmall

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLSmall

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLSmall

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLSmall

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLSmall

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLSmall

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLSmall

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSmall

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLSmall

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLSmall

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLSmall

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLSmall

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLSmall

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLSmall

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLSmall

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLSmall

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLSmall

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLSmall

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLSmall

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLSmall

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLSmall

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLSmall

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLSmall

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLSmall

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLSmall

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLSmall

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLSmall

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLSmall

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLSmall

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLSmall

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLSmall

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLSmall

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLSmall

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLSmall

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLSmall

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLSmall

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLSmall

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLSmall

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLSmall

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLSmall

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLSmall

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLSmall

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLSmall

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLSource

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLSource

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLSource

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLSource

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLSource

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLSource

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLSource

    // Media specifies what media/device the linked document is optimized for. Uses the given format and values.
    Media(format string, v ...any) HTMLSource

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) HTMLSource

    // Sizes specifies the size of the linked resource with the given format and values.
    Sizes(format string, v ...any) 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 with the given format and values.
    Src(format string, v ...any) HTMLSource

    // SrcSet specifies the URL of the image to use in different situations with the given format and values.
    SrcSet(format string, v ...any) HTMLSource

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLSource

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLSource

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSource

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLSource

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLSource

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLSource

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLSource

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLSource

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLSource

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLSource

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLSource

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLSource

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLSource

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLSource

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLSource

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLSource

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLSource

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLSource

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLSource

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLSource

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLSource

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLSource

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLSource

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLSource

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLSource

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLSource

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLSource

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLSource

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLSource

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLSource

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLSource

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLSource

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLSource

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLSource

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLSource

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLSource

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLSource

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLSource

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLSource

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLSpan

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLSpan

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLSpan

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLSpan

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLSpan

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLSpan

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLSpan

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLSpan

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLSpan

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLSpan

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSpan

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLSpan

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLSpan

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLSpan

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLSpan

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLSpan

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLSpan

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLSpan

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLSpan

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLSpan

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLSpan

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLSpan

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLSpan

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLSpan

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLSpan

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLSpan

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLSpan

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLSpan

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLSpan

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLSpan

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLSpan

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLSpan

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLSpan

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLSpan

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLSpan

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLSpan

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLSpan

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLSpan

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLSpan

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLSpan

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLSpan

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLSpan

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLSpan

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLSpan

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLSpan

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLSpan

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLStrong

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLStrong

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLStrong

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLStrong

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLStrong

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLStrong

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLStrong

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLStrong

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLStrong

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLStrong

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLStrong

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLStrong

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLStrong

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLStrong

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLStrong

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLStrong

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLStrong

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLStrong

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLStrong

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLStrong

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLStrong

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLStrong

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLStrong

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLStrong

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLStrong

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLStrong

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLStrong

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLStrong

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLStrong

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLStrong

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLStrong

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLStrong

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLStrong

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLStrong

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLStrong

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLStrong

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLStrong

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLStrong

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLStrong

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLStrong

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLStrong

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLStrong

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLStrong

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLStrong

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLStrong

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLStrong

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLStyle

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLStyle

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLStyle

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLStyle

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLStyle

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLStyle

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLStyle

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLStyle

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLStyle

    // Media specifies what media/device the linked document is optimized for. Uses the given format and values.
    Media(format string, v ...any) HTMLStyle

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLStyle

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLStyle

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLStyle

    // Type specifies the type of element with the given format and values.
    Type(format string, v ...any) HTMLStyle

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLStyle

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLStyle

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLStyle

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLStyle

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLStyle

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLStyle

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLStyle

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLStyle

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLStyle

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLStyle

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLStyle

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLStyle

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLStyle

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLStyle

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLStyle

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLStyle

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLStyle

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLStyle

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLStyle

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLStyle

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLStyle

    // OnLoad calls the given handler after the element is finished loading.
    OnLoad(h EventHandler, scope ...any) HTMLStyle

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLStyle

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLStyle

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLStyle

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLStyle

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLStyle

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLStyle

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLStyle

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLStyle

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLStyle

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLStyle

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLStyle

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLStyle

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLStyle

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLSub

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLSub

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLSub

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLSub

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLSub

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLSub

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLSub

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLSub

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLSub

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLSub

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSub

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLSub

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLSub

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLSub

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLSub

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLSub

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLSub

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLSub

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLSub

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLSub

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLSub

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLSub

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLSub

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLSub

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLSub

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLSub

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLSub

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLSub

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLSub

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLSub

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLSub

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLSub

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLSub

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLSub

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLSub

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLSub

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLSub

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLSub

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLSub

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLSub

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLSub

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLSub

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLSub

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLSub

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLSub

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLSub

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLSummary

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLSummary

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLSummary

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLSummary

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLSummary

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLSummary

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLSummary

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLSummary

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLSummary

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLSummary

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSummary

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLSummary

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLSummary

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLSummary

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLSummary

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLSummary

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLSummary

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLSummary

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLSummary

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLSummary

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLSummary

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLSummary

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLSummary

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLSummary

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLSummary

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLSummary

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLSummary

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLSummary

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLSummary

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLSummary

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLSummary

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLSummary

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLSummary

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLSummary

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLSummary

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLSummary

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLSummary

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLSummary

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLSummary

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLSummary

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLSummary

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLSummary

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLSummary

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLSummary

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLSummary

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLSummary

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLSup

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLSup

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLSup

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLSup

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLSup

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLSup

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLSup

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLSup

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLSup

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLSup

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLSup

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLSup

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLSup

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLSup

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLSup

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLSup

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLSup

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLSup

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLSup

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLSup

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLSup

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLSup

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLSup

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLSup

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLSup

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLSup

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLSup

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLSup

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLSup

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLSup

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLSup

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLSup

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLSup

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLSup

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLSup

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLSup

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLSup

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLSup

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLSup

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLSup

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLSup

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLSup

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLSup

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLSup

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLSup

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLSup

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLTBody

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTBody

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTBody

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTBody

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTBody

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTBody

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTBody

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTBody

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTBody

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTBody

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTBody

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTBody

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLTBody

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLTBody

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLTBody

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLTBody

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLTBody

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLTBody

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLTBody

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLTBody

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLTBody

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLTBody

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLTBody

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLTBody

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLTBody

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLTBody

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLTBody

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLTBody

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLTBody

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLTBody

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLTBody

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLTBody

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLTBody

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLTBody

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLTBody

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLTBody

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLTBody

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLTBody

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLTBody

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLTBody

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLTBody

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLTBody

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLTBody

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLTBody

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLTBody

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLTBody

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) HTMLTBody
}

func TBody

func TBody() HTMLTBody

TBody returns an HTML element that groups the body content in a table.

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 any) HTMLTFoot

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTFoot

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTFoot

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTFoot

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTFoot

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTFoot

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTFoot

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTFoot

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTFoot

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTFoot

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTFoot

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTFoot

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLTFoot

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLTFoot

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLTFoot

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLTFoot

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLTFoot

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLTFoot

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLTFoot

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLTFoot

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLTFoot

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLTFoot

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLTFoot

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLTFoot

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLTFoot

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLTFoot

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLTFoot

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLTFoot

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLTFoot

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLTFoot

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLTFoot

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLTFoot

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLTFoot

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLTFoot

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLTFoot

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLTFoot

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLTFoot

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLTFoot

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLTFoot

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLTFoot

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLTFoot

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLTFoot

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLTFoot

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLTFoot

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLTFoot

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLTFoot

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) HTMLTFoot
}

func TFoot

func TFoot() HTMLTFoot

TFoot returns an HTML element that groups the footer 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 any) HTMLTHead

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTHead

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTHead

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTHead

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTHead

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTHead

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTHead

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTHead

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTHead

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTHead

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTHead

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTHead

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLTHead

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLTHead

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLTHead

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLTHead

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLTHead

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLTHead

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLTHead

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLTHead

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLTHead

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLTHead

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLTHead

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLTHead

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLTHead

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLTHead

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLTHead

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLTHead

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLTHead

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLTHead

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLTHead

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLTHead

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLTHead

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLTHead

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLTHead

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLTHead

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLTHead

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLTHead

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLTHead

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLTHead

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLTHead

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLTHead

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLTHead

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLTHead

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLTHead

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLTHead

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLTable

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTable

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTable

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTable

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTable

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTable

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTable

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTable

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTable

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTable

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTable

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTable

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLTable

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLTable

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLTable

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLTable

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLTable

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLTable

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLTable

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLTable

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLTable

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLTable

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLTable

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLTable

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLTable

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLTable

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLTable

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLTable

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLTable

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLTable

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLTable

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLTable

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLTable

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLTable

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLTable

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLTable

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLTable

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLTable

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLTable

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLTable

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLTable

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLTable

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLTable

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLTable

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLTable

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLTable

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLTd

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTd

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTd

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTd

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTd

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTd

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTd

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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. Uses the given format and values.
    Headers(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTd

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTd

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTd

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTd

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTd

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLTd

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLTd

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLTd

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLTd

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLTd

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLTd

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLTd

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLTd

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLTd

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLTd

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLTd

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLTd

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLTd

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLTd

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLTd

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLTd

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLTd

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLTd

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLTd

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLTd

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLTd

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLTd

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLTd

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLTd

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLTd

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLTd

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLTd

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLTd

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLTd

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLTd

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLTd

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLTd

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLTd

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLTd

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLTemplate

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTemplate

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTemplate

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTemplate

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTemplate

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTemplate

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTemplate

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTemplate

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTemplate

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTemplate

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTemplate

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTemplate

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) 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 any) HTMLTextarea

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTextarea

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTextarea

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTextarea

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) 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).
    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 any) HTMLTextarea

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTextarea

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) HTMLTextarea

    // DirName specifies that the text direction will be submitted using the given format and values.
    DirName(format string, v ...any) 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. Uses the given format and values.
    Form(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTextarea

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTextarea

    // MaxLength specifies the maximum number of characters allowed in an element.
    MaxLength(v int) HTMLTextarea

    // Name specifies the name of the element with the given format and values.
    Name(format string, v ...any) HTMLTextarea

    // Placeholder specifies a short hint that describes the expected value of the element. Uses the given format and values.
    Placeholder(format string, v ...any) 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

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTextarea

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTextarea

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTextarea

    // Wrap specifies how the text in a text area is to be wrapped when submitted in a form. Uses the given format and values.
    Wrap(format string, v ...any) HTMLTextarea

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLTextarea

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLTextarea

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLTextarea

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLTextarea

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLTextarea

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLTextarea

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLTextarea

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLTextarea

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLTextarea

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLTextarea

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLTextarea

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLTextarea

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLTextarea

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLTextarea

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLTextarea

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLTextarea

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLTextarea

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLTextarea

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLTextarea

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLTextarea

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLTextarea

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLTextarea

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLTextarea

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLTextarea

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLTextarea

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLTextarea

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLTextarea

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLTextarea

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLTextarea

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLTextarea

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLTextarea

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLTextarea

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLTextarea

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLTextarea

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) HTMLTextarea
}

func Textarea

func Textarea() HTMLTextarea

Textarea returns an HTML element that defines a multiline input control (text area).

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 any) HTMLTh

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTh

    // Abbr specifies an abbreviated version of the content in a header cell with the given format and values.
    Abbr(format string, v ...any) HTMLTh

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTh

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTh

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTh

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTh

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTh

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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. Uses the given format and values.
    Headers(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTh

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTh

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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. Uses the given format and values.
    Scope(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTh

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTh

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTh

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLTh

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLTh

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLTh

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLTh

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLTh

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLTh

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLTh

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLTh

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLTh

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLTh

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLTh

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLTh

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLTh

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLTh

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLTh

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLTh

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLTh

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLTh

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLTh

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLTh

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLTh

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLTh

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLTh

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLTh

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLTh

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLTh

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLTh

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLTh

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLTh

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLTh

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLTh

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLTh

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLTh

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLTh

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLTime

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTime

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTime

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTime

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTime

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTime

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTime

    // DateTime specifies the date and time with the given format and values.
    DateTime(format string, v ...any) HTMLTime

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTime

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTime

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTime

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTime

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTime

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLTime

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLTime

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLTime

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLTime

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLTime

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLTime

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLTime

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLTime

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLTime

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLTime

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLTime

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLTime

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLTime

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLTime

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLTime

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLTime

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLTime

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLTime

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLTime

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLTime

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLTime

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLTime

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLTime

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLTime

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLTime

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLTime

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLTime

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLTime

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLTime

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLTime

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLTime

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLTime

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLTime

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLTime

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLTitle

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTitle

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTitle

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTitle

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTitle

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTitle

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTitle

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTitle

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTitle

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTitle

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTitle

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTitle

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) 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 any) HTMLTr

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLTr

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLTr

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLTr

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLTr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLTr

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLTr

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLTr

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLTr

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLTr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLTr

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLTr

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLTr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLTr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLTr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLTr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLTr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLTr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLTr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLTr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLTr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLTr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLTr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLTr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLTr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLTr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLTr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLTr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLTr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLTr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLTr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLTr

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLTr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLTr

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLTr

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLTr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLTr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLTr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLTr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLTr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLTr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLTr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLTr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLTr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLTr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLTr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLU

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLU

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLU

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLU

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLU

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLU

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLU

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLU

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLU

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLU

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLU

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLU

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLU

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLU

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLU

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLU

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLU

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLU

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLU

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLU

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLU

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLU

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLU

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLU

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLU

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLU

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLU

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLU

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLU

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLU

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLU

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLU

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLU

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLU

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLU

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLU

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLU

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLU

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLU

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLU

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLU

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLU

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLU

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLU

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLU

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLU

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLUl

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLUl

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLUl

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLUl

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLUl

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLUl

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLUl

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLUl

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLUl

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLUl

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLUl

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLUl

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLUl

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLUl

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLUl

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLUl

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLUl

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLUl

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLUl

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLUl

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLUl

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLUl

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLUl

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLUl

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLUl

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLUl

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLUl

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLUl

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLUl

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLUl

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLUl

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLUl

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLUl

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLUl

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLUl

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLUl

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLUl

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLUl

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLUl

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLUl

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLUl

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLUl

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLUl

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLUl

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLUl

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLUl

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLVar

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLVar

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLVar

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLVar

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLVar

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLVar

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLVar

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLVar

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLVar

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLVar

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLVar

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLVar

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLVar

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLVar

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLVar

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLVar

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLVar

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLVar

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLVar

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLVar

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLVar

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLVar

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLVar

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLVar

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLVar

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLVar

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLVar

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLVar

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLVar

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLVar

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLVar

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLVar

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLVar

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLVar

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLVar

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLVar

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLVar

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLVar

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLVar

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLVar

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLVar

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLVar

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLVar

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLVar

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLVar

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLVar

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLVideo

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLVideo

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLVideo

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLVideo

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) 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).
    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

    // CrossOrigin sets the mode of the request to an HTTP CORS Request with the given format and values.
    CrossOrigin(format string, v ...any) HTMLVideo

    // DataSet stores custom data private to the page or application.
    DataSet(k string, v any) HTMLVideo

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLVideo

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLVideo

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) 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. Uses the given format and values.
    Poster(format string, v ...any) HTMLVideo

    // Preload specifies if and how the author thinks the audio/video should be loaded when the page loads. Uses the given format and values.
    Preload(format string, v ...any) HTMLVideo

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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 with the given format and values.
    Src(format string, v ...any) HTMLVideo

    // Style specifies a CSS style for an element. Can be called multiple times to set multiple css styles.
    Style(k, v string) HTMLVideo

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLVideo

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLVideo

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLVideo

    // Width specifies the width of the element.
    Width(v int) HTMLVideo

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLVideo

    // OnAbort calls the given handler on abort.
    OnAbort(h EventHandler, scope ...any) HTMLVideo

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLVideo

    // OnCanPlay calls the given handler when a file is ready to start playing (when it has buffered enough to begin).
    OnCanPlay(h EventHandler, scope ...any) 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, scope ...any) HTMLVideo

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLVideo

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLVideo

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLVideo

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLVideo

    // OnCueChange calls the given handler when the cue changes in a track element.
    OnCueChange(h EventHandler, scope ...any) HTMLVideo

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLVideo

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLVideo

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLVideo

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLVideo

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLVideo

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLVideo

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLVideo

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLVideo

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLVideo

    // OnDurationChange calls the given handler when the length of the media changes.
    OnDurationChange(h EventHandler, scope ...any) HTMLVideo

    // OnEmptied calls the given handler when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects).
    OnEmptied(h EventHandler, scope ...any) HTMLVideo

    // OnEnded calls the given handler when the media has reach the end.
    OnEnded(h EventHandler, scope ...any) HTMLVideo

    // OnError calls the given handler when an error occurs.
    OnError(h EventHandler, scope ...any) HTMLVideo

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLVideo

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLVideo

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLVideo

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLVideo

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLVideo

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLVideo

    // OnLoadStart calls the given handler just as the file begins to load before anything is actually loaded.
    OnLoadStart(h EventHandler, scope ...any) HTMLVideo

    // OnLoadedData calls the given handler when media data is loaded.
    OnLoadedData(h EventHandler, scope ...any) HTMLVideo

    // OnLoadedMetaData calls the given handler when meta data (like dimensions and duration) are loaded.
    OnLoadedMetaData(h EventHandler, scope ...any) HTMLVideo

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLVideo

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLVideo

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLVideo

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLVideo

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLVideo

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLVideo

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLVideo

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLVideo

    // OnPause calls the given handler when the media is paused either by the user or programmatically.
    OnPause(h EventHandler, scope ...any) HTMLVideo

    // OnPlay calls the given handler when the media is ready to start playing.
    OnPlay(h EventHandler, scope ...any) HTMLVideo

    // OnPlaying calls the given handler when the media actually has started playing.
    OnPlaying(h EventHandler, scope ...any) HTMLVideo

    // OnProgress calls the given handler when the browser is in the process of getting the media data.
    OnProgress(h EventHandler, scope ...any) 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, scope ...any) HTMLVideo

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLVideo

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLVideo

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLVideo

    // OnSeeked calls the given handler when the seeking attribute is set to false indicating that seeking has ended.
    OnSeeked(h EventHandler, scope ...any) HTMLVideo

    // OnSeeking calls the given handler when the seeking attribute is set to true indicating that seeking is active.
    OnSeeking(h EventHandler, scope ...any) HTMLVideo

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLVideo

    // OnStalled calls the given handler when the browser is unable to fetch the media data for whatever reason.
    OnStalled(h EventHandler, scope ...any) HTMLVideo

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLVideo

    // OnSuspend calls the given handler when fetching the media data is stopped before it is completely loaded for whatever reason.
    OnSuspend(h EventHandler, scope ...any) 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, scope ...any) HTMLVideo

    // OnVolumeChange calls the given handler each time the volume is changed which (includes setting the volume to "mute").
    OnVolumeChange(h EventHandler, scope ...any) 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, scope ...any) HTMLVideo

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 any) HTMLWbr

    // Textf sets the content of the element with the given format and values.
    Textf(format string, v ...any) HTMLWbr

    // AccessKey specifies a shortcut key with the given format and values to activate/focus an element.
    AccessKey(format string, v ...any) HTMLWbr

    // Aria stores accessible rich internet applications (ARIA) data.
    Aria(k string, v any) HTMLWbr

    // Attr sets the named attribute with the given value.
    Attr(n string, v any) HTMLWbr

    // Class specifies one or more classnames for an element (refers to a class in a style sheet).
    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 any) HTMLWbr

    // DataSets specifies datsets for an element. Can be called multiple times to set multiple data set.
    DataSets(ds map[string]any) HTMLWbr

    // Dir specifies the text direction for the content in an element with the given format and values.
    Dir(format string, v ...any) 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 with the given format and values.
    ID(format string, v ...any) HTMLWbr

    // Lang specifies the language of the element's content with the given format and values.
    Lang(format string, v ...any) HTMLWbr

    // Role specifies to parsing software the exact function of an element (and its children). Uses the given format and values.
    Role(format string, v ...any) 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

    // Styles specifies CSS styles for an element. Can be called multiple times to set multiple css styles.
    Styles(s map[string]string) HTMLWbr

    // TabIndex specifies the tabbing order of an element.
    TabIndex(v int) HTMLWbr

    // Title specifies extra information about an element with the given format and values.
    Title(format string, v ...any) HTMLWbr

    // On registers the given event handler to the specified event.
    On(event string, h EventHandler, scope ...any) HTMLWbr

    // OnBlur calls the given handler when the element loses focus.
    OnBlur(h EventHandler, scope ...any) HTMLWbr

    // OnChange calls the given handler when the value of the element is changed.
    OnChange(h EventHandler, scope ...any) HTMLWbr

    // OnClick calls the given handler when there is a mouse click on the element.
    OnClick(h EventHandler, scope ...any) HTMLWbr

    // OnContextMenu calls the given handler when a context menu is triggered.
    OnContextMenu(h EventHandler, scope ...any) HTMLWbr

    // OnCopy calls the given handler when the user copies the content of an element.
    OnCopy(h EventHandler, scope ...any) HTMLWbr

    // OnCut calls the given handler when the user cuts the content of an element.
    OnCut(h EventHandler, scope ...any) HTMLWbr

    // OnDblClick calls the given handler when there is a mouse double-click on the element.
    OnDblClick(h EventHandler, scope ...any) HTMLWbr

    // OnDrag calls the given handler when an element is dragged.
    OnDrag(h EventHandler, scope ...any) HTMLWbr

    // OnDragEnd calls the given handler at the end of a drag operation.
    OnDragEnd(h EventHandler, scope ...any) HTMLWbr

    // OnDragEnter calls the given handler when an element has been dragged to a valid drop target.
    OnDragEnter(h EventHandler, scope ...any) HTMLWbr

    // OnDragLeave calls the given handler when an element leaves a valid drop target.
    OnDragLeave(h EventHandler, scope ...any) HTMLWbr

    // OnDragOver calls the given handler when an element is being dragged over a valid drop target.
    OnDragOver(h EventHandler, scope ...any) HTMLWbr

    // OnDragStart calls the given handler at the start of a drag operation.
    OnDragStart(h EventHandler, scope ...any) HTMLWbr

    // OnDrop calls the given handler when dragged element is being dropped.
    OnDrop(h EventHandler, scope ...any) HTMLWbr

    // OnFocus calls the given handler when the element gets focus.
    OnFocus(h EventHandler, scope ...any) HTMLWbr

    // OnInput calls the given handler when an element gets user input.
    OnInput(h EventHandler, scope ...any) HTMLWbr

    // OnInvalid calls the given handler when an element is invalid.
    OnInvalid(h EventHandler, scope ...any) HTMLWbr

    // OnKeyDown calls the given handler when a user is pressing a key.
    OnKeyDown(h EventHandler, scope ...any) HTMLWbr

    // OnKeyPress calls the given handler when a user presses a key.
    OnKeyPress(h EventHandler, scope ...any) HTMLWbr

    // OnKeyUp calls the given handler when a user releases a key.
    OnKeyUp(h EventHandler, scope ...any) HTMLWbr

    // OnMouseDown calls the given handler when a mouse button is pressed down on an element.
    OnMouseDown(h EventHandler, scope ...any) HTMLWbr

    // OnMouseEnter calls the given handler when a mouse button is initially moved so that its hotspot is within the element at which the event was fired.
    OnMouseEnter(h EventHandler, scope ...any) HTMLWbr

    // OnMouseLeave calls the given handler when the mouse pointer is fired when the pointer has exited the element and all of its descendants.
    OnMouseLeave(h EventHandler, scope ...any) HTMLWbr

    // OnMouseMove calls the given handler when the mouse pointer is moving while it is over an element.
    OnMouseMove(h EventHandler, scope ...any) HTMLWbr

    // OnMouseOut calls the given handler when the mouse pointer moves out of an element.
    OnMouseOut(h EventHandler, scope ...any) HTMLWbr

    // OnMouseOver calls the given handler when the mouse pointer moves over an element.
    OnMouseOver(h EventHandler, scope ...any) HTMLWbr

    // OnMouseUp calls the given handler when a mouse button is released over an element.
    OnMouseUp(h EventHandler, scope ...any) HTMLWbr

    // OnPaste calls the given handler when the user pastes some content in an element.
    OnPaste(h EventHandler, scope ...any) HTMLWbr

    // OnReset calls the given handler when the Reset button in a form is clicked.
    OnReset(h EventHandler, scope ...any) HTMLWbr

    // OnScroll calls the given handler when an element's scrollbar is being scrolled.
    OnScroll(h EventHandler, scope ...any) HTMLWbr

    // OnSearch calls the given handler when the user writes something in a search field.
    OnSearch(h EventHandler, scope ...any) HTMLWbr

    // OnSelect calls the given handler after some text has been selected in an element.
    OnSelect(h EventHandler, scope ...any) HTMLWbr

    // OnSubmit calls the given handler when a form is submitted.
    OnSubmit(h EventHandler, scope ...any) HTMLWbr

    // OnWheel calls the given handler when the mouse wheel rolls up or down over an element.
    OnWheel(h EventHandler, scope ...any) 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 name of the web application as it is usually displayed to the user.
    Name string

    // The name of the web application displayed to the user when there is not
    // enough space to display Name.
    ShortName string

    // The icon that is used for the PWA, favicon, loading and default not
    // found component.
    Icon Icon

    // A placeholder background color for the application page to display before
    // its stylesheets are loaded.
    //
    // Default: #2d2c2c.
    BackgroundColor 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 text displayed while loading a page. Load progress can be inserted by
    // including "{progress}" in the loading label.
    //
    // DEFAULT: "{progress}%".
    LoadingLabel string

    // The page language.
    //
    // DEFAULT: en.
    Lang string

    // The custom libraries to load with the page.
    Libraries []Library

    // The page title.
    Title string

    // The page description.
    Description string

    // The page authors.
    Author string

    // The page keywords.
    Keywords []string

    // The path of the default image that is used by social networks when
    // linking the app.
    Image string

    // 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 paths or urls of the font files to preload with the page.
    //
    // eg:
    //  app.Handler{
    //      Fonts: []string{
    //          "/web/test.woff2",            // Static resource
    //          "https://foo.com/test.woff2", // External resource
    //      },
    //  },
    Fonts []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 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

    // Additional headers to be added in head element.
    RawHeaders []string

    // The page HTML element.
    //
    // Default: Html().
    HTML func() HTMLHtml

    // The page body element.
    //
    // Note that the lang attribute is always overridden by the Handler.Lang
    // value.
    //
    // Default: Body().
    Body func() HTMLBody

    // The interval between each app auto-update while running in a web browser.
    // Zero or negative values deactivates the auto-update mechanism.
    //
    // Default is 0.
    AutoUpdateInterval time.Duration

    // The environment variables that are passed to the progressive web app.
    //
    // Reserved keys:
    // - GOAPP_VERSION
    // - GOAPP_GOAPP_STATIC_RESOURCES_URL
    Env Environment

    // The URLs that are launched in the app tab or window.
    //
    // By default, URLs with a different domain are launched in another tab.
    // Specifying internal URLs is to override that behavior. A good use case
    // would be the URL for an OAuth authentication.
    InternalURLs []string

    // The URLs of the origins to preconnect in order to improve the user
    // experience by preemptively initiating a connection to those origins.
    // Preconnecting speeds up future loads from a given origin by preemptively
    // performing part or all of the handshake (DNS+TCP for HTTP, and
    // DNS+TCP+TLS for HTTPS origins).
    Preconnect []string

    // The static resources that are accessible from custom paths. Files that
    // are proxied by default are /robots.txt, /sitemap.xml and /ads.txt.
    ProxyResources []ProxyResource

    // 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("")
    Resources ResourceProvider

    // 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

    // The HTTP header to retrieve the WebAssembly file content length.
    //
    // Content length finding falls back to the Content-Length HTTP header when
    // no content length is found with the defined header.
    WasmContentLengthHeader string

    // The template used to generate app-worker.js. The template follows the
    // text/template package model.
    //
    // By default set to DefaultAppWorkerJS, changing the template have very
    // high chances to mess up go-app usage. Any issue related to a custom app
    // worker template is not supported and will be closed.
    ServiceWorkerTemplate 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 svg file.
    SVG 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 Initializer

Initializer is the interface that describes a component that performs initialization instruction before being pre-rendered or mounted.

type Initializer interface {
    Composer

    // The function called before the component is pre-rendered or mounted.
    OnInit()
}

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

type Library

The interface that describes a library that contains custom components.

type Library interface {
    // Returns the styles and its path. The styles must be a standard
    // CSS file.
    Styles() (path, styles string)
}

type Mounter

Mounter is the interface that describes a component that can perform additional actions when mounted.

type Mounter interface {
    Composer

    // The function called when the component is mounted. It is always called on
    // the UI goroutine.
    OnMount(Context)
}

type MsgHandler

MsgHandler represents a handler to listen to messages sent with Context.Post.

type MsgHandler func(Context, any)

Navigator is the interface that describes a component that can perform additional actions when navigated on.

type Navigator interface {
    Composer

    // The function that called when the component is navigated on. It is always
    // called on the UI goroutine.
    OnNav(Context)
}

type Notification

A user notification.

type Notification struct {
    // The title shown at the top of the notification window.
    Title string `json:"title"`

    // The URL path to navigate to when the notification is clicked.
    Path string `json:"path"`

    // The notification's language, as specified in
    // https://www.sitepoint.com/iso-2-letter-language-codes.
    Lang string `json:"lang,omitempty"`

    // The URL of the image used to represent the notification when there isn't
    // enough space to display the notification itself.
    Badge string `json:"badge,omitempty"`

    // The body text of the notification, which is displayed below the title.
    Body string `json:"body,omitempty"`

    // An identifying tag for the notification.
    Tag string `json:"tag,omitempty"`

    // The URL of an icon to be displayed in the notification.
    Icon string `json:"icon,omitempty"`

    // The URL of an image to be displayed in the notification.
    Image string `json:"image,omitempty"`

    // Arbitrary data that to be associated with the notification.
    //
    // The "goapp" key is reserved to go-app data.
    Data map[string]any `json:"data"`

    // Specifies whether the user should be notified after a new notification
    // replaces an old one.
    Renotify bool `json:"renotify,omitempty"`

    // Indicates whether a notification should remain active until the user
    // clicks or dismisses it, rather than closing automatically.
    RequireInteraction bool `json:"requireInteraction,omitempty"`

    // specifies whether the notification is silent (no sounds or vibrations
    // issued), regardless of the device settings.
    Silent bool `json:"silent,omitempty"`

    // A vibration pattern for the device's vibration hardware to emit with the
    // notification.
    //
    // See https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API#vibration_patterns.
    Vibrate []int `json:"vibrate,omitempty"`

    // The actions to display in the notification.
    Actions []NotificationAction `json:"actions,omitempty"`
}

type NotificationAction

A notification action.

type NotificationAction struct {
    // The user action id to be displayed on the notification.
    Action string `json:"action"`

    // The action text to be shown to the user.
    Title string `json:"title"`

    // The URL of an icon to display with the action.
    Icon string `json:"icon,omitempty"`

    // The URL path to navigate to when the action is clicked.
    Path string `json:"path"`
}

type NotificationPermission

NotificationPermission a permission to display notifications.

type NotificationPermission string
const (
    // The user notifications choice is unknown and therefore the browser acts
    // as if the value were denied.
    NotificationDefault NotificationPermission = "default"

    // The user accepts having notifications displayed.
    NotificationGranted NotificationPermission = "granted"

    // The user refuses to have notifications displayed.
    NotificationDenied NotificationPermission = "denied"

    // Notifications are not supported by the browser.
    NotificationNotSupported NotificationPermission = "unsupported"
)

type NotificationService

type NotificationService struct {
    // contains filtered or unexported fields
}

func (NotificationService) New

func (s NotificationService) New(n Notification)

Creates and display a user notification.

func (NotificationService) Permission

func (s NotificationService) Permission() NotificationPermission

Returns the current notification permission.

func (NotificationService) RequestPermission

func (s NotificationService) RequestPermission() NotificationPermission

Requests the user whether the app can use notifications.

func (NotificationService) Subscribe

func (s NotificationService) Subscribe(vapIDPublicKey string) (NotificationSubscription, error)

Returns a notification subscription with the given vap id.

type NotificationSubscription

NotificationSubscription represents a PushSubscription object from the Push API.

type NotificationSubscription struct {
    Endpoint string `json:"endpoint"`
    Keys     struct {
        Auth   string `json:"auth"`
        P256dh string `json:"p256dh"`
    } `json:"keys"`
}

type Observer

Observer is an observer that observes changes for a given state.

type Observer interface {
    // Defines a condition that reports whether the observer keeps observing the
    // associated state. Multiple conditions can be defined by successively
    // calling While().
    While(condition func() bool) Observer

    // Executes the given function on the UI goroutine when the observed value
    // changes. Multiple functions can be executed by successively calling
    // OnChange().
    OnChange(fn func()) Observer

    // Stores the value associated with the observed state into the given
    // receiver. Panics when the receiver is not a pointer or nil.
    //
    // The receiver is updated each time the associated state changes. It is
    // unchanged when its pointed value has a different type than the associated
    // state value.
    Value(recv any)
}

type Page

Page is the interface that describes a web page.

type Page interface {
    // Returns the page title.
    Title() string

    // Sets the page title.
    SetTitle(v string)

    // Returns the page language.
    Lang() string

    // Set the page language.
    SetLang(v string)

    // Returns the page description.
    Description() string

    // Sets the page description.
    SetDescription(v string)

    // Returns the page author.
    Author() string

    // Sets the page author.
    SetAuthor(v string)

    // Returns the page keywords.
    Keywords() string

    // Sets the page keywords.
    SetKeywords(v ...string)

    // Returns the page resources to preload.
    Preloads() []Preload

    // Sets resources to preload.
    SetPreloads(v ...Preload)

    // Set the page loading label.
    SetLoadingLabel(v string)

    // Returns the image used by social networks when linking the page.
    Image() string

    // Set the image used by social networks when linking the page.
    SetImage(v string)

    // Returns the page URL.
    URL() *url.URL

    // Replace the the current page URL by the given one in the browser history.
    //
    // Does not work when pre-rendering.
    ReplaceURL(v *url.URL)

    // Returns the page width and height in px.
    Size() (w int, h int)

    // Set the Twitter card.
    SetTwitterCard(v TwitterCard)
}

type PreRenderer

PreRenderer is the interface that describes a component that performs instruction when it is server-side pre-rendered.

A pre-rendered component helps in achieving SEO friendly content.

type PreRenderer interface {
    // The function called when the component is server-side pre-rendered.
    //
    // If pre-rendering requires blocking operations such as performing an HTTP
    // request, ensure that they are done synchronously. A good practice is to
    // avoid using goroutines during pre-rendering.
    OnPreRender(Context)
}

type Preload

type Preload struct {
    Type          string
    As            string
    Href          string
    FetchPriority string
}

type ProxyResource

ProxyResource is a proxy descriptor that maps a given resource to an URL path.

type ProxyResource struct {
    // The URL path from where a static resource is accessible.
    Path string

    // The path of the static resource that is proxied. It must start with
    // "/web/".
    ResourcePath string
}

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 any) 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 Resizer

Resizer is the interface that describes a component that is notified when the app has been resized or a parent component calls the ResizeContent() method.

type Resizer interface {
    // The function called when the application is resized or a parent component
    // called its ResizeContent() method. It is always called on the UI
    // goroutine.
    OnResize(Context)
}

type ResourceProvider

ResourceProvider is the interface that describes a resource provider that tells the Handler how to locate and get the package and static resources.

Package resources are the resource required to operate go-app.

Static resources are resources such as app.wasm, CSS files, images.

The resource provider is used to serve static resources when it satisfies the http.Handler interface.

type ResourceProvider interface {
    // Package returns the path where the package resources are located.
    Package() string

    // Static returns the path where the static resources directory (/web) is
    // located.
    Static() string

    // AppWASM returns the app.wasm file path.
    AppWASM() string
}

func CustomProvider

func CustomProvider(path, prefix string) ResourceProvider

CustomProvider returns a resource provider that serves static resources from a local directory located at the given path and prefixes URL paths with the given prefix.

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(root 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 ServerDispatcher

ServerDispatcher is the interface that describes a dispatcher that emulates a server environment.

type ServerDispatcher interface {
    Dispatcher

    // Consume executes all the remaining UI instructions.
    Consume()

    // ConsumeNext executes the next UI instructions.
    ConsumeNext()

    // Close consumes all the remaining UI instruction and releases allocated
    // resources.
    Close()
}

func NewServerTester

func NewServerTester(n UI) ServerDispatcher

NewServerTester creates a testing dispatcher that simulates a client environment.

type State

A state represents an observable value available across the app.

type State struct {
    // Reports whether the state is persisted in local storage.
    IsPersistent bool

    // Reports whether the state is encrypted before being persisted in local
    // storage.
    IsEncrypted bool

    // The time when the state expires. The state never expires when zero value.
    ExpiresAt time.Time

    // Reports whether a state is broadcasted to other browser tabs and windows.
    IsBroadcasted bool
    // contains filtered or unexported fields
}

type StateOption

StateOption represents an option applied when a state is set.

type StateOption func(*State)

func ExpiresAt

func ExpiresAt(t time.Time) StateOption

ExpiresAt returns a state option that sets a state value to its zero value at the given time.

Values persisted to local storage with the Persist option are removed from it.

func ExpiresIn

func ExpiresIn(d time.Duration) StateOption

ExpiresIn returns a state option that sets a state value to its zero value after the given duration.

Values persisted to local storage with the Persist option are removed from it.

type Tag

Tag is a key-value pair that adds context to an action.

type Tag struct {
    Name  string
    Value string
}

func T

func T(name string, value any) Tag

T creates a tag with the given name and value. The value is converted to a string.

func (Tag) Tags

func (t Tag) Tags() Tags

type Tagger

Tagger is the interface that describes a collection of tags that gives context to something.

type Tagger interface {
    // Returns a collection of tags.
    Tags() Tags
}

type Tags

Tags represent key-value pairs that give context to what they are used with.

type Tags map[string]string

func (Tags) Get

func (t Tags) Get(name string) string

Get returns a tag value with the given name.

func (Tags) Set

func (t Tags) Set(name string, v any)

Set sets a tag with the given name and value. The value is converted to a string.

func (Tags) Tags

func (t Tags) Tags() Tags

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 TwitterCard

A Twitter card: https://developer.twitter.com/en/docs/twitter-for-websites/cards

type TwitterCard struct {
    // The card type, which will be one of “summary”, “summary_large_image”,
    // “app”, or “player”.
    Card string

    // Username for the website used in the card footer.
    Site string

    // Username for the content creator / author.
    Creator string

    // A concise title for the related content.
    Title string

    // A description that concisely summarizes the content as appropriate for
    // presentation within a Tweet.
    Description string

    // A URL to a unique image representing the content of the page.
    Image string

    // A text description of the image conveying the essential nature of an
    // image to users who are visually impaired. Maximum 420 characters.
    ImageAlt string
}

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(v ...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 any) UI

Text creates a simple text element.

func Textf

func Textf(format string, v ...any) UI

Text creates a simple text element with the given format and values.

type Updater

Updater is the interface that describes a component that can do additional instructions when one of its exported fields is modified by its nearest parent component.

type Updater interface {
    // The function called when one of the component exported fields is modified
    // by its nearest parent component. It is always called on the UI goroutine.
    OnUpdate(Context)
}

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 ...any) Value

    // Delete deletes the JavaScript property p of value v. It panics if v is
    // not a JavaScript object.
    Delete(p string)

    // Equal reports whether v and w are equal according to JavaScript's ===
    // operator.
    Equal(w Value) bool

    // 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 ...any) 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 ...any) 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 any)

    // 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 any)

    // 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

    // Then calls the given function when the promise resolves. The current
    // value must be a promise.
    Then(f func(Value))
    // contains filtered or unexported methods
}

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 any) 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                 |
| []any          | new array              |
| map[string]any | 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