app

package
v10.0.0-...-3cf93d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 27 Imported by: 2

Documentation

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

View Source
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"
)
View Source
const (
	// The default template used to generate app-worker.js.
	DefaultAppWorkerJS = "" /* 2731-byte string literal not displayed */

)

Variables

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

Functions

func AppendClass

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

AppendClass adds values to the given class string.

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 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 returns a string that represents the HTML markup for the provided UI element.

func Handle

func Handle(actionName string, h ActionHandler)

Handle registers the provided handler for a specific action name. When that action is triggered, the handler executes in a separate 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 Match

func Match(expected UI, root UI, path ...int) error

Match compares the expected UI element with another UI element at a specified location in a UI tree. It is the preferred function for matching UI elements in tests due to its simplified usage.

Example usage adapted for Match function:

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

err := app.Match(app.Div(), tree)
// err == nil if the root matches a Div element

err := app.Match(app.H3(), tree, 0)
// err != nil because the first child is not an H3 element but a H2.

err = app.Match(app.Text("bar"), tree, 1, 0)
// err == nil if the text of the first child of the second element is "bar"

func NewZeroComponentFactory

func NewZeroComponentFactory(c Composer) func() Composer

NewZeroComponentFactory returns a function that, when invoked, creates and returns a new instance of the same type as the provided component. The new instance is initialized with zero values for all its fields.

The function uses reflection to determine the type of the provided Composer and to create new instances of that type.

Example:

componentFunc := NewZeroComponentFactory(MyComponent{})
newComponent := componentFunc()

func PrintHTML

func PrintHTML(w io.Writer, ui UI)

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

func Route

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

Route associates a given path with a function that generates a new Composer component. When a user navigates to the specified path, the function newComponent is invoked to create and mount the associated component.

Example:

Route("/home", func() Composer {
    return NewHomeComponent()
})

func RouteWithRegexp

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

RouteWithRegexp associates a URL path pattern with a function that generates a new Composer component. When a user navigates to a URL path that matches the given regular expression pattern, the function newComponent is invoked to create and mount the associated component.

Example:

RouteWithRegexp("^/users/[0-9]+$", func() Composer {
    return NewUserComponent()
})

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(root UI, d TestUIDescriptor) error

TestMatch searches for a UI element within a tree as described by a TestUIDescriptor and verifies if it matches the Expected element. It returns an error if the match is unsuccessful or if the path is invalid. Prefer using the Match function for a simpler API.

func TestPath

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

TestPath is a utility function that constructs a path, represented as a slice of integers, for use in a TestUIDescriptor.

func TryUpdate

func TryUpdate()

TryUpdate attempts to update the application in the browser. On success, it notifies components implementing the AppUpdater interface that an update is ready.

Types

type Action

type Action struct {
	// Name uniquely identifies the action.
	Name string

	// Value is the data associated with the action and can be nil.
	Value any

	// Tags provide additional context or metadata for the action.
	Tags Tags
}

Action represents a custom event that can be propagated across the app. It can carry a payload and be enriched with additional contextual tags.

type ActionHandler

type ActionHandler func(Context, Action)

ActionHandler defines a callback executed when an action is triggered via Context.NewAction().

type AppInstaller

type AppInstaller interface {
	// OnAppInstallChange is invoked when the application shifts between the
	// states of being installable and actually installed.
	//
	// To determine the current installation state, one can use
	// Context.IsAppInstallable() or Context.IsAppInstalled().
	//
	// By leveraging this method, components can maintain alignment with the
	// app's installation status, potentially influencing UI elements like an
	// "Install" button visibility or behavior.
	// This method is always executed in the UI goroutine context.
	OnAppInstallChange(Context)
}

AppInstaller outlines components that receive notifications about changes in the application's installation status. Through this interface, components can actively respond to installation state transitions, facilitating dynamic user experiences tailored to the app's current status.

type AppUpdater

type AppUpdater interface {
	// OnAppUpdate is called once a new version of the application has been
	// fetched in the background. It offers a window for components to execute
	// actions, such as prompting a page reload, to transition to the updated
	// app version.
	// This function always operates within the UI goroutine context.
	OnAppUpdate(Context)
}

AppUpdater defines components that are alerted when a newer version of the application is downloaded in the background. Implementing this interface allows components to proactively adapt to app updates, ensuring coherence with the most up-to-date version of the application.

type BrowserStorage

type BrowserStorage interface {
	// Set stores a value associated with a given key. The value must be capable
	// of being converted to JSON format. If the value cannot be converted to
	// JSON or if there's an issue with storage, an error is returned.
	Set(k string, v any) error

	// Get retrieves the value associated with a given key and stores it into
	// the provided variable v. The variable v must be a pointer to a type that
	// is compatible with the stored value. If v is not a pointer, an error is
	// returned, indicating incorrect usage.
	//
	// If the key does not exist, the operation performs no action on v, leaving
	// it unchanged. Use Contains to check whether a key exists.
	Get(k string, v any) error

	// Del removes the item associated with the specified key from the storage.
	// If the key does not exist, the operation is a no-op.
	Del(k string)

	// Len returns the total number of items currently stored. This count
	// includes all keys, regardless of their value.
	Len() int

	// Clear removes all items from the storage, effectively resetting it.
	Clear()

	// ForEach iterates over each item in the storage, executing the provided
	// function f for each key. The exact order of iteration is not guaranteed
	// and may vary across different implementations.
	ForEach(f func(k string))

	// Contains checks if the storage contains an item associated with the given
	// key. It returns true if the item exists, false otherwise. This method
	// provides a way to check for the existence of a key without retrieving the
	// associated value.
	Contains(k string) bool
}

BrowserStorage defines an interface for interacting with web browser storage mechanisms (such as localStorage in the Web API). It provides methods to set, get, delete, and iterate over stored items, among other functionalities.

type BrowserWindow

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)
	// contains filtered or unexported methods
}

BrowserWindow is the interface that describes the browser window.

func Window

func Window() BrowserWindow

Window returns the JavaScript "window" object.

type Compo

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

Compo serves as the foundational struct for constructing a component. It provides basic methods and fields needed for component management.

func (*Compo) JSValue

func (c *Compo) JSValue() Value

JSValue retrieves the JavaScript value associated with the component's root. If the root element isn't defined, it returns a nil JavaScript value.

func (*Compo) Mounted

func (c *Compo) Mounted() bool

Mounted checks if the component is currently mounted within the UI.

func (*Compo) Render

func (c *Compo) Render() UI

Render produces a visual representation of the component's content. This default implementation ensures the app.Composer interface is satisfied when app.Compo is embedded. However, developers are encouraged to redefine this method to customize the component's appearance.

func (*Compo) ValueTo

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

ValueTo captures the value of the DOM element (if it exists) that triggered an event, and assigns it to the provided receiver. The receiver must be a pointer pointing to either a string, integer, unsigned integer, or a float. This method panics if the provided value isn't a pointer.

type Composer

type Composer interface {
	UI

	// Render constructs and returns the visual representation of the component
	// as a node tree.
	Render() UI
	// contains filtered or unexported methods
}

Composer defines a contract for creating custom, independent, and reusable UI elements. Components that satisfy the Composer interface serve as building blocks for richer user interfaces in a structured manner.

Implementing the Composer interface typically involves embedding app.Compo into a struct and defining the Render method, which dictates the component's visual representation.

Example:

type Hello struct {
    app.Compo
}

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

type Condition

type Condition interface {
	UI

	// ElseIf sets a UI element to be displayed when the given boolean
	// expression is true and all previous conditions have been false.
	//
	// expr: Boolean expression to evaluate.
	// elem: Function that returns the UI element to display.
	ElseIf(expr bool, elem func() UI) Condition

	// ElseIfSlice sets multiple UI elements to be displayed when the given
	// boolean expression is true and all previous conditions have been false.
	//
	// expr: Boolean expression to evaluate.
	// elems: Function that returns a slice of UI elements to display.
	ElseIfSlice(expr bool, elems func() []UI) Condition

	// Else sets a UI element to be displayed as a fallback when all previous
	// conditions have been false.
	//
	// elem: Function that returns the UI element to display.
	Else(elem func() UI) Condition

	// ElseSlice sets multiple UI elements to be displayed as a fallback when
	// all previous conditions have been false.
	//
	// expr: Boolean expression to evaluate.
	// elems: Function that returns a slice of UI elements to display.
	ElseSlice(elems func() []UI) Condition
	// contains filtered or unexported methods
}

Condition represents a control structure for conditionally displaying UI elements. It extends the UI interface to include methods for handling conditional logic.

func If

func If(expr bool, elem func() UI) Condition

If returns a Condition that will display the given UI element based on the evaluation of the provided boolean expression.

func IfSlice

func IfSlice(expr bool, elems func() []UI) Condition

IfSlice returns a Condition that will display the given slice of UI elements based on the evaluation of the provided boolean expression.

type Context

type Context struct {
	context.Context
	// contains filtered or unexported fields
}

Context represents a UI element-associated environment enabling interactions with the browser, page navigation, concurrency, and component communication.

func (Context) After

func (ctx Context) After(d time.Duration, f func(Context))

After pauses for a determined span, then triggers a specified function.

func (Context) AppUpdateAvailable

func (ctx Context) AppUpdateAvailable() bool

AppUpdateAvailable checks if there's a pending app update.

func (Context) Async

func (ctx Context) Async(v func())

Async initiates a function asynchronously. It enables go-app to monitor goroutines, ensuring they conclude when rendering server-side.

func (Context) Decrypt

func (ctx Context) Decrypt(crypted []byte, v any) error

Decrypt deciphers encrypted data into a given reference value.

func (Context) Defer

func (ctx Context) Defer(v func(Context))

Defer postpones the function execution on the UI goroutine until the current update cycle completes.

func (Context) DelState

func (ctx Context) DelState(state string)

DelState erases a state, halting all associated observations.

func (Context) DeviceID

func (ctx Context) DeviceID() string

DeviceID fetches a distinct identifier for the app on the present device.

func (Context) Dispatch

func (ctx Context) Dispatch(v func(Context))

Dispatch prompts the execution of a function on the UI goroutine, flagging the enclosing component for an update.

func (Context) Encrypt

func (ctx Context) Encrypt(v any) ([]byte, error)

Encrypt enciphers a value using AES encryption.

func (Context) GetState

func (ctx Context) GetState(state string, recv any)

GetState fetches the value of a particular state.

func (Context) Handle

func (ctx Context) Handle(action string, h ActionHandler)

Handle designates a handler for a particular action, set to run on the UI goroutine.

func (Context) IsAppInstallable

func (ctx Context) IsAppInstallable() bool

IsAppInstallable verifies if the app is eligible for installation.

func (Context) JSSrc

func (ctx Context) JSSrc() Value

JSSrc fetches the JavaScript representation of the associated UI element.

func (Context) LocalStorage

func (ctx Context) LocalStorage() BrowserStorage

LocalStorage accesses the browser's local storage tied to the document origin.

func (Context) Navigate

func (ctx Context) Navigate(rawURL string)

Navigate transitions to the given URL string.

func (Context) NavigateTo

func (ctx Context) NavigateTo(u *url.URL)

NavigateTo transitions to the provided URL.

func (Context) NewAction

func (ctx Context) NewAction(action string, tags ...Tagger)

NewAction generates a new action for handling.

func (Context) NewActionWithValue

func (ctx Context) NewActionWithValue(action string, v any, tags ...Tagger)

NewActionWithValue crafts an action with a given value for processing.

func (Context) Notifications

func (ctx Context) Notifications() NotificationService

Notifications accesses the notifications service.

func (Context) ObserveState

func (ctx Context) ObserveState(state string, recv any) Observer

ObserveState establishes an observer for a state, tracking its changes.

func (Context) Page

func (ctx Context) Page() Page

Page retrieves the current active page.

func (Context) PreventUpdate

func (ctx Context) PreventUpdate()

PreventUpdate halts updates for the enclosing component.

func (Context) Reload

func (ctx Context) Reload()

Reload refreshes the present page.

func (Context) ResizeContent

func (ctx Context) ResizeContent()

ResizeContent notifies the children of the associated element that implement the Resizer interface about a resize event. It ensures that components can adjust their size and layout in response to changes. This method is typically used when the size of the container changes, requiring child components to update their dimensions accordingly.

func (Context) ResolveStaticResource

func (ctx Context) ResolveStaticResource(v string) string

ResolveStaticResource adjusts a given path to point to the correct static resource location.

func (Context) ScrollTo

func (ctx Context) ScrollTo(id string)

ScrollTo adjusts the scrollbar to target an HTML element by its ID.

func (Context) SessionStorage

func (ctx Context) SessionStorage() BrowserStorage

SessionStorage accesses the browser's session storage tied to the document origin.

func (Context) SetState

func (ctx Context) SetState(state string, v any) State

SetState modifies a state with the provided value.

func (Context) ShowAppInstallPrompt

func (ctx Context) ShowAppInstallPrompt()

ShowAppInstallPrompt initiates the app installation process.

func (Context) Src

func (ctx Context) Src() UI

Src retrieves the linked UI element of the context.

func (Context) Update

func (ctx Context) Update()

Update flags the enclosing component for an update.

type Dismounter

type Dismounter interface {
	// OnDismount is invoked immediately after the component is detached from
	// the DOM. This method offers a stage for executing cleanup or other
	// concluding operations.
	// This function is executed within the UI goroutine.
	OnDismount()
}

Dismounter outlines the behavior for components that require specific tasks or cleanup operations when they're detached from the DOM. Components adhering to this interface can designate procedures to run immediately after their removal from the DOM structure.

type Event

type Event struct {
	Value
}

Event is the interface that describes a javascript event.

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

type EventHandler func(ctx Context, e Event)

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

type EventOption

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

EventOption represents an option for configuring event handlers, such as setting scopes or marking them as passive.

func EventScope

func EventScope(v ...any) EventOption

EventScope returns an EventOption that adds a scope to an event handler. This is useful in dynamic UI contexts to ensure correct mounting and dismounting of handlers as UI elements are reordered. The scope is defined by concatenating the provided path arguments into a unique identifier.

func PassiveEvent

func PassiveEvent() EventOption

PassiveEvent returns an EventOption that marks an event handler as passive. Passive handlers improve performance for high-frequency events by signaling that they will not call Event.PreventDefault(), allowing the browser to optimize event processing. More on passive listeners: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#using_passive_listeners

type Func

type Func interface {
	Value

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

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

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 HTML

type HTML interface {
	UI

	// Tag retrieves the name of the HTML tag that the element represents.
	Tag() string

	// XMLNamespace fetches the XML namespace associated with the HTML element.
	// This is relevant for elements like SVG which might have a different
	// namespace.
	XMLNamespace() string

	// SelfClosing determines whether the HTML element is self-closing.
	// For elements like <img> or <br> which don't have closing tags, this
	// method returns true. Otherwise, it returns false.
	SelfClosing() bool
	// contains filtered or unexported methods
}

HTML provides an interface for representing HTML elements within the application.

type HTMLA

type HTMLA interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLA

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLA

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLA

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLA

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLA

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLA

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLA

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLA

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLA

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLA

	// Hints the browser to download the linked resource, optionally providing a default filename.
	Download(format string, v ...any) HTMLA

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLA

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLA

	// Points to the URL of the destination when the link is clicked.
	Href(format string, v ...any) HTMLA

	// Declares the language of the linked document's content.
	HrefLang(format string, v ...any) HTMLA

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLA

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLA

	// Indicates the intended media or device for the linked document.
	Media(format string, v ...any) HTMLA

	// Lists URLs to be notified when the user activates the hyperlink.
	Ping(format string, v ...any) HTMLA

	// Describes the relationship between the current and linked documents.
	Rel(format string, v ...any) HTMLA

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLA

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLA

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLA

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLA

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLA

	// Indicates where to display the linked URL or where to submit the form. Can be called with various predefined values.
	Target(format string, v ...any) HTMLA

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLA

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLA

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLA

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLA

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLA

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLA

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLA

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLA

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLA

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLA

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLA

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLA

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLA

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLA

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLA

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLA

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLA

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLA

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLA

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLA

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLA

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLA

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLA

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLA

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLA

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLA

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLA

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLA

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLA

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLA

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLA

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLA

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLA

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLA

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLA

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLA

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLA
}

The interface that represents a "a" HTML element.

func A

func A() HTMLA

Returns an HTML element that creates a hyperlink, allowing navigation to other web pages or resources.

type HTMLAbbr

type HTMLAbbr interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLAbbr

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLAbbr

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLAbbr

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLAbbr

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLAbbr

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLAbbr

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLAbbr

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLAbbr

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLAbbr

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLAbbr

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLAbbr

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLAbbr

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLAbbr

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLAbbr

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLAbbr

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLAbbr

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLAbbr

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLAbbr

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLAbbr

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLAbbr

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLAbbr

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLAbbr

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLAbbr

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLAbbr
}

The interface that represents a "abbr" HTML element.

func Abbr

func Abbr() HTMLAbbr

Returns an HTML element that represents an abbreviation or an acronym, providing a longer description or meaning of the content.

type HTMLAddress

type HTMLAddress interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLAddress

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLAddress

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLAddress

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLAddress

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLAddress

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLAddress

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLAddress

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLAddress

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLAddress

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLAddress

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLAddress

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLAddress

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLAddress

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLAddress

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLAddress

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLAddress

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLAddress

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLAddress

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLAddress

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLAddress

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLAddress

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLAddress

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLAddress

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLAddress

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLAddress
}

The interface that represents a "address" HTML element.

func Address

func Address() HTMLAddress

Returns an HTML element that designates contact information for the author or owner of a document or web page.

type HTMLArea

type HTMLArea interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLArea

	// Provides a text alternative for elements (often images) ensuring content is accessible when visuals can't be rendered.
	Alt(format string, v ...any) HTMLArea

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLArea

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLArea

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLArea

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLArea

	// Defines the coordinates for elements in an image map, establishing active regions for hyperlinks.
	Coords(format string, v ...any) HTMLArea

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLArea

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLArea

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLArea

	// Hints the browser to download the linked resource, optionally providing a default filename.
	Download(format string, v ...any) HTMLArea

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLArea

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLArea

	// Points to the URL of the destination when the link is clicked.
	Href(format string, v ...any) HTMLArea

	// Declares the language of the linked document's content.
	HrefLang(format string, v ...any) HTMLArea

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLArea

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLArea

	// Indicates the intended media or device for the linked document.
	Media(format string, v ...any) HTMLArea

	// Describes the relationship between the current and linked documents.
	Rel(format string, v ...any) HTMLArea

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLArea

	// Describes the shape of a clickable area within an image map. Uses the given format and values.
	Shape(format string, v ...any) HTMLArea

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLArea

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLArea

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLArea

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLArea

	// Indicates where to display the linked URL or where to submit the form. Can be called with various predefined values.
	Target(format string, v ...any) HTMLArea

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLArea

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLArea

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLArea

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLArea

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLArea

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLArea

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLArea

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLArea

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLArea

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLArea

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLArea

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLArea

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLArea

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLArea

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLArea

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLArea

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLArea
}

The interface that represents a "area" HTML element.

func Area

func Area() HTMLArea

Returns an HTML element that defines a clickable region within an image map, usually linking to another resource.

type HTMLArticle

type HTMLArticle interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLArticle

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLArticle

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLArticle

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLArticle

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLArticle

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLArticle

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLArticle

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLArticle

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLArticle

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLArticle

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLArticle

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLArticle

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLArticle

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLArticle

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLArticle

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLArticle

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLArticle

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLArticle

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLArticle

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLArticle

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLArticle

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLArticle

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLArticle

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLArticle

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLArticle
}

The interface that represents a "article" HTML element.

func Article

func Article() HTMLArticle

Returns an HTML element that marks a self-contained composition in a document, like a blog post or news story.

type HTMLAside

type HTMLAside interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLAside

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLAside

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLAside

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLAside

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLAside

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLAside

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLAside

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLAside

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLAside

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLAside

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLAside

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLAside

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLAside

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLAside

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLAside

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLAside

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLAside

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLAside

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLAside

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLAside

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLAside

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLAside

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLAside

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLAside

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLAside

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLAside

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLAside

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLAside

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLAside

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLAside

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLAside

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLAside

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLAside

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLAside

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLAside
}

The interface that represents a "aside" HTML element.

func Aside

func Aside() HTMLAside

Returns an HTML element that represents content tangentially related to the main content, and can be considered separate.

type HTMLAudio

type HTMLAudio interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLAudio

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLAudio

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLAudio

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLAudio

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLAudio

	// Automatically plays audio or video elements once they're ready, enhancing media responsiveness.
	AutoPlay(v bool) HTMLAudio

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLAudio

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLAudio

	// Indicates the presence of user interface controls for audio or video elements, such as play or pause buttons.
	Controls(v bool) HTMLAudio

	// Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins.
	CrossOrigin(format string, v ...any) HTMLAudio

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLAudio

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLAudio

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLAudio

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLAudio

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLAudio

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLAudio

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLAudio

	// Indicates that the audio or video should replay from the beginning upon reaching its end.
	Loop(v bool) HTMLAudio

	// Ensures that the video's audio playback is muted.
	Muted(v bool) HTMLAudio

	// Indicates the preferred loading method for audio/video upon page load.
	Preload(format string, v ...any) HTMLAudio

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLAudio

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLAudio

	// Provides the URL source of embedded content or media. Uses the given format and values.
	Src(format string, v ...any) HTMLAudio

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLAudio

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLAudio

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLAudio

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLAudio

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler when media loading is aborted.
	OnAbort(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler when media has buffered sufficiently to begin playback.
	OnCanPlay(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler when media can be played through without buffering interruptions.
	OnCanPlayThrough(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler upon cue changes within a track element.
	OnCueChange(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler when the media's duration changes.
	OnDurationChange(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler when media unexpectedly becomes unavailable.
	OnEmptied(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler when media playback reaches the end.
	OnEnded(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the given handler when an error is encountered.
	OnError(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler when media loading commences.
	OnLoadStart(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler as media data finishes loading.
	OnLoadedData(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler when metadata (like duration and dimensions) are fully loaded.
	OnLoadedMetaData(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler when media playback is paused.
	OnPause(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler when media starts its playback.
	OnPlay(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler once the media has initiated playback.
	OnPlaying(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler while the browser fetches media data.
	OnProgress(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler when playback rate changes (e.g., slow motion or fast forward).
	OnRateChange(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler post seeking completion.
	OnSeeked(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler during the seeking process.
	OnSeeking(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler when media data fetching stalls.
	OnStalled(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler when media data fetching is suspended.
	OnSuspend(h EventHandler, options ...EventOption) HTMLAudio

	// Executes the handler when the media's playback position changes.
	OnTimeUpdate(h EventHandler, options ...EventOption) HTMLAudio

	// Invokes the handler upon volume changes or muting.
	OnVolumeChange(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the handler when media pauses, awaiting further buffering.
	OnWaiting(h EventHandler, options ...EventOption) HTMLAudio

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLAudio
}

The interface that represents a "audio" HTML element.

func Audio

func Audio() HTMLAudio

Returns an HTML element that embeds an audio player for playing sound or music content.

type HTMLB

type HTMLB interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLB

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLB

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLB

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLB

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLB

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLB

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLB

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLB

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLB

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLB

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLB

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLB

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLB

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLB

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLB

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLB

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLB

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLB

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLB

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLB

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLB

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLB

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLB

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLB

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLB

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLB

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLB

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLB

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLB

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLB

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLB

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLB

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLB

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLB

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLB

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLB

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLB

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLB

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLB

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLB

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLB

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLB

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLB

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLB

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLB

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLB

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLB

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLB

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLB

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLB

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLB

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLB

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLB

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLB

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLB
}

The interface that represents a "b" HTML element.

func B

func B() HTMLB

Returns an HTML element that applies bold styling to its content.

type HTMLBase

type HTMLBase interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLBase

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLBase

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLBase

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLBase

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLBase

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLBase

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLBase

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLBase

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLBase

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLBase

	// Points to the URL of the destination when the link is clicked.
	Href(format string, v ...any) HTMLBase

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLBase

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLBase

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLBase

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLBase

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLBase

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLBase

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLBase

	// Indicates where to display the linked URL or where to submit the form. Can be called with various predefined values.
	Target(format string, v ...any) HTMLBase

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLBase

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLBase

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLBase

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLBase

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLBase

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLBase

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLBase

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLBase

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLBase

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLBase

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLBase

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLBase

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLBase

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLBase

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLBase

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLBase
}

The interface that represents a "base" HTML element.

func Base

func Base() HTMLBase

Returns an HTML element that specifies the base URL and target for all relative URLs in the document.

type HTMLBdi

type HTMLBdi interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLBdi

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLBdi

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLBdi

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLBdi

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLBdi

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLBdi

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLBdi

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLBdi

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLBdi

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLBdi

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLBdi

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLBdi

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLBdi

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLBdi

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLBdi

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLBdi

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLBdi

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLBdi

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLBdi

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLBdi

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLBdi

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLBdi

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLBdi

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLBdi

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLBdi
}

The interface that represents a "bdi" HTML element.

func Bdi

func Bdi() HTMLBdi

Returns an HTML element that isolates a section of text, allowing it to be formatted in a different direction than the surrounding content.

type HTMLBdo

type HTMLBdo interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLBdo

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLBdo

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLBdo

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLBdo

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLBdo

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLBdo

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLBdo

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLBdo

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLBdo

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLBdo

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLBdo

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLBdo

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLBdo

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLBdo

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLBdo

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLBdo

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLBdo

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLBdo

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLBdo

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLBdo

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLBdo

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLBdo

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLBdo

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLBdo

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLBdo
}

The interface that represents a "bdo" HTML element.

func Bdo

func Bdo() HTMLBdo

Returns an HTML element that controls the text direction of its content, overriding other directional settings.

type HTMLBlockquote

type HTMLBlockquote interface {
	HTML

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

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLBlockquote

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLBlockquote

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLBlockquote

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLBlockquote

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLBlockquote

	// Provides a reference or link to a source explaining quoted or modified content in the element.
	Cite(format string, v ...any) HTMLBlockquote

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLBlockquote

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLBlockquote

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLBlockquote

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLBlockquote

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLBlockquote

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLBlockquote

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLBlockquote

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLBlockquote

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLBlockquote

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLBlockquote

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLBlockquote

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLBlockquote

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLBlockquote

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLBlockquote

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLBlockquote

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLBlockquote

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLBlockquote

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLBlockquote

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLBlockquote
}

The interface that represents a "blockquote" HTML element.

func Blockquote

func Blockquote() HTMLBlockquote

Returns an HTML element that represents a section of text quoted from another source.

type HTMLBody

type HTMLBody interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLBody

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLBody

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLBody

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLBody

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLBody

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLBody

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLBody

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLBody

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLBody

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLBody

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLBody

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLBody

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLBody

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLBody

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLBody

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLBody

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLBody

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLBody

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLBody

	// Executes the given handler after the document has been printed.
	OnAfterPrint(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the specified handler before the document gets printed.
	OnBeforePrint(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the specified handler when the document is about to be unloaded.
	OnBeforeUnload(h EventHandler, options ...EventOption) HTMLBody

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLBody

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLBody

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLBody

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLBody

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the given handler when an error is encountered.
	OnError(h EventHandler, options ...EventOption) HTMLBody

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the specified handler when changes occur to the anchor part of the URL.
	OnHashChange(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLBody

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLBody

	// Executes the specified handler once the element has completely loaded.
	OnLoad(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the provided handler when a message event occurs.
	OnMessage(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLBody

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLBody

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the given handler when the browser transitions to offline mode.
	OnOffline(h EventHandler, options ...EventOption) HTMLBody

	// Executes the specified handler when the browser transitions to online mode.
	OnOnline(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the given handler when a user navigates away from the current page.
	OnPageHide(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the specified handler when a user navigates to the page.
	OnPageShow(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLBody

	// Executes the provided handler when changes are made to the window's history.
	OnPopState(h EventHandler, options ...EventOption) HTMLBody

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the given handler upon resizing the browser window.
	OnResize(h EventHandler, options ...EventOption) HTMLBody

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLBody

	// Invokes the specified handler when a Web Storage area undergoes updates.
	OnStorage(h EventHandler, options ...EventOption) HTMLBody

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLBody

	// Executes the provided handler once the page has been unloaded or the browser window closes.
	OnUnload(h EventHandler, options ...EventOption) HTMLBody

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLBody
	// contains filtered or unexported methods
}

The interface that represents a "body" HTML element.

func Body

func Body() HTMLBody

Returns an HTML element that encloses the main content of the HTML document.

type HTMLBr

type HTMLBr interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLBr

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLBr

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLBr

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLBr

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLBr

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLBr

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLBr

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLBr

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLBr

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLBr

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLBr

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLBr

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLBr

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLBr

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLBr

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLBr

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLBr

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLBr

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLBr

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLBr

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLBr

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLBr

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLBr

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLBr

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLBr

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLBr

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLBr

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLBr

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLBr

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLBr

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLBr

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLBr

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLBr
}

The interface that represents a "br" HTML element.

func Br

func Br() HTMLBr

Returns an HTML element that inserts a line break within inline content.

type HTMLButton

type HTMLButton interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLButton

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLButton

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLButton

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLButton

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLButton

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLButton

	// Instructs the browser to focus this element automatically when the page loads.
	AutoFocus(v bool) HTMLButton

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLButton

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLButton

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLButton

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLButton

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLButton

	// Deactivates an element, rendering it uninteractive and visually distinct.
	Disabled(v bool) HTMLButton

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLButton

	// Identifies the form to which the element belongs.
	Form(format string, v ...any) HTMLButton

	// Defines the URL to which form data should be sent upon submission. Applicable only to 'submit' type inputs.
	FormAction(format string, v ...any) HTMLButton

	// Dictates the encoding method for form data prior to its submission to a server. Applicable only to 'submit' type inputs.
	FormEncType(format string, v ...any) HTMLButton

	// Determines the HTTP method for sending form data. Applicable only to 'submit' type inputs.
	FormMethod(format string, v ...any) HTMLButton

	// Indicates that the form data should bypass validation upon submission. Applicable only to 'submit' type inputs.
	FormNoValidate(v bool) HTMLButton

	// Specifies where the server's response will be displayed after form submission. Applicable only to 'submit' type inputs.
	FormTarget(format string, v ...any) HTMLButton

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLButton

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLButton

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLButton

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLButton

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLButton

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLButton

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLButton

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLButton

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLButton

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLButton

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLButton

	// Assigns a value to the element.
	Value(v any) HTMLButton

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLButton

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLButton

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLButton

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLButton

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLButton

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLButton

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLButton

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLButton

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLButton

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLButton

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLButton

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLButton

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLButton

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLButton

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLButton
}

The interface that represents a "button" HTML element.

func Button

func Button() HTMLButton

Returns an HTML element that creates a clickable button, typically used for form submission or triggering interactions.

type HTMLCanvas

type HTMLCanvas interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLCanvas

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLCanvas

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLCanvas

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLCanvas

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLCanvas

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLCanvas

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLCanvas

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLCanvas

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLCanvas

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLCanvas

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLCanvas

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLCanvas

	// Sets the height of the element, measured in pixels.
	Height(v int) HTMLCanvas

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLCanvas

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLCanvas

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLCanvas

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLCanvas

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLCanvas

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLCanvas

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLCanvas

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLCanvas

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLCanvas

	// Sets the width of the element.
	Width(v int) HTMLCanvas

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLCanvas

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLCanvas

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLCanvas

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLCanvas
}

The interface that represents a "canvas" HTML element.

func Canvas

func Canvas() HTMLCanvas

Returns an HTML element that provides a space where graphics can be rendered dynamically, such as 2D drawings or 3D visualizations.

type HTMLCaption

type HTMLCaption interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLCaption

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLCaption

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLCaption

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLCaption

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLCaption

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLCaption

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLCaption

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLCaption

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLCaption

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLCaption

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLCaption

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLCaption

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLCaption

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLCaption

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLCaption

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLCaption

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLCaption

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLCaption

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLCaption

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLCaption

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLCaption

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLCaption

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLCaption

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLCaption

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLCaption

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLCaption
}

The interface that represents a "caption" HTML element.

func Caption

func Caption() HTMLCaption

Returns an HTML element that represents the title or description of a table, usually appearing above or below the table.

type HTMLCite

type HTMLCite interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLCite

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLCite

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLCite

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLCite

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLCite

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLCite

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLCite

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLCite

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLCite

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLCite

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLCite

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLCite

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLCite

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLCite

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLCite

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLCite

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLCite

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLCite

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLCite

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLCite

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLCite

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLCite

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLCite

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLCite

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLCite

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLCite

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLCite

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLCite

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLCite

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLCite

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLCite

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLCite

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLCite

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLCite

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLCite

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLCite
}

The interface that represents a "cite" HTML element.

func Cite

func Cite() HTMLCite

Returns an HTML element that indicates the title or reference of a creative work, such as a book, film, or research paper.

type HTMLCode

type HTMLCode interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLCode

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLCode

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLCode

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLCode

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLCode

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLCode

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLCode

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLCode

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLCode

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLCode

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLCode

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLCode

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLCode

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLCode

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLCode

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLCode

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLCode

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLCode

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLCode

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLCode

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLCode

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLCode

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLCode

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLCode

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLCode

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLCode

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLCode

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLCode

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLCode

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLCode

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLCode

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLCode

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLCode

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLCode

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLCode

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLCode
}

The interface that represents a "code" HTML element.

func Code

func Code() HTMLCode

Returns an HTML element that displays a single line of code or a code snippet, preserving its formatting.

type HTMLCol

type HTMLCol interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLCol

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLCol

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLCol

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLCol

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLCol

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLCol

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLCol

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLCol

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLCol

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLCol

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLCol

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLCol

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLCol

	// Defines how many columns or rows a cell should span.
	Span(v int) HTMLCol

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLCol

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLCol

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLCol

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLCol

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLCol

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLCol

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLCol

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLCol

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLCol

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLCol

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLCol

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLCol

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLCol

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLCol

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLCol

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLCol

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLCol

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLCol

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLCol

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLCol
}

The interface that represents a "col" HTML element.

func Col

func Col() HTMLCol

Returns an HTML element that defines the properties for a single column or a group of columns within a table, when nested within a `<colgroup>` element.

type HTMLColGroup

type HTMLColGroup interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLColGroup

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLColGroup

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLColGroup

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLColGroup

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLColGroup

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLColGroup

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLColGroup

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLColGroup

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLColGroup

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLColGroup

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLColGroup

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLColGroup

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLColGroup

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLColGroup

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLColGroup

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLColGroup

	// Defines how many columns or rows a cell should span.
	Span(v int) HTMLColGroup

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLColGroup

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLColGroup

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLColGroup

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLColGroup

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLColGroup

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLColGroup

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLColGroup

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLColGroup

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLColGroup
}

The interface that represents a "colgroup" HTML element.

func ColGroup

func ColGroup() HTMLColGroup

Returns an HTML element that groups one or more `<col>` elements, providing a way to apply styles and attributes to multiple columns simultaneously.

type HTMLData

type HTMLData interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLData

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLData

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLData

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLData

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLData

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLData

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLData

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLData

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLData

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLData

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLData

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLData

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLData

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLData

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLData

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLData

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLData

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLData

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLData

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLData

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLData

	// Assigns a value to the element.
	Value(v any) HTMLData

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLData
}

The interface that represents a "data" HTML element.

func Data

func Data() HTMLData

Returns an HTML element that pairs content with its machine-readable translation or value.

type HTMLDataList

type HTMLDataList interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLDataList

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLDataList

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLDataList

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLDataList

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLDataList

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLDataList

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLDataList

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLDataList

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLDataList

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLDataList

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLDataList

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLDataList

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLDataList

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLDataList

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLDataList

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLDataList

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLDataList

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLDataList

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLDataList

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLDataList

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLDataList

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLDataList

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLDataList

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLDataList

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLDataList

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLDataList
}

The interface that represents a "datalist" HTML element.

func DataList

func DataList() HTMLDataList

Returns an HTML element that offers a predefined set of options for input controls.

type HTMLDd

type HTMLDd interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLDd

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLDd

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLDd

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLDd

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLDd

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLDd

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLDd

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLDd

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLDd

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLDd

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLDd

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLDd

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLDd

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLDd

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLDd

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLDd

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLDd

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLDd

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLDd

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLDd

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLDd

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLDd

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLDd

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLDd

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLDd

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLDd

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLDd

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLDd

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLDd

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLDd

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLDd

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLDd

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLDd

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLDd

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLDd

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLDd
}

The interface that represents a "dd" HTML element.

func Dd

func Dd() HTMLDd

Returns an HTML element that provides the description or value for a term in a description list.

type HTMLDel

type HTMLDel interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLDel

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLDel

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLDel

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLDel

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLDel

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLDel

	// Provides a reference or link to a source explaining quoted or modified content in the element.
	Cite(format string, v ...any) HTMLDel

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLDel

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLDel

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLDel

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLDel

	// Represents the date and time, often used in context with machine-readable equivalents of time-related content.
	DateTime(format string, v ...any) HTMLDel

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLDel

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLDel

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLDel

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLDel

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLDel

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLDel

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLDel

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLDel

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLDel

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLDel

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLDel

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLDel

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLDel

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLDel

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLDel

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLDel

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLDel

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLDel

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLDel

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLDel

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLDel

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLDel

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLDel

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLDel

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLDel

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLDel
}

The interface that represents a "del" HTML element.

func Del

func Del() HTMLDel

Returns an HTML element that denotes text segments that have been deleted or modified in the content.

type HTMLDetails

type HTMLDetails interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLDetails

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLDetails

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLDetails

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLDetails

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLDetails

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLDetails

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLDetails

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLDetails

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLDetails

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLDetails

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLDetails

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLDetails

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLDetails

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLDetails

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLDetails

	// Indicates that the details element is expanded and visible to the user.
	Open(v bool) HTMLDetails

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLDetails

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLDetails

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLDetails

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLDetails

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLDetails

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLDetails

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLDetails

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLDetails

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLDetails

	// Executes the handler when the details element is toggled by the user.
	OnToggle(h EventHandler, options ...EventOption) HTMLDetails

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLDetails
}

The interface that represents a "details" HTML element.

func Details

func Details() HTMLDetails

Returns an HTML element that encapsulates content users can toggle visibility for, such as additional information or context.

type HTMLDfn

type HTMLDfn interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLDfn

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLDfn

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLDfn

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLDfn

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLDfn

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLDfn

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLDfn

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLDfn

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLDfn

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLDfn

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLDfn

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLDfn

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLDfn

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLDfn

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLDfn

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLDfn

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLDfn

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLDfn

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLDfn

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLDfn

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLDfn

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLDfn

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLDfn

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLDfn

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLDfn

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLDfn
}

The interface that represents a "dfn" HTML element.

func Dfn

func Dfn() HTMLDfn

Returns an HTML element that marks the defining occurrence or clarification of a term or phrase.

type HTMLDialog

type HTMLDialog interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLDialog

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLDialog

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLDialog

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLDialog

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLDialog

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLDialog

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLDialog

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLDialog

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLDialog

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLDialog

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLDialog

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLDialog

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLDialog

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLDialog

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLDialog

	// Indicates that the details element is expanded and visible to the user.
	Open(v bool) HTMLDialog

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLDialog

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLDialog

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLDialog

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLDialog

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLDialog

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLDialog

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLDialog

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLDialog

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLDialog

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLDialog

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLDialog
}

The interface that represents a "dialog" HTML element.

func Dialog

func Dialog() HTMLDialog

Returns an HTML element that represents a popup dialog box or an interactive window overlay.

type HTMLDiv

type HTMLDiv interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLDiv

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLDiv

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLDiv

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLDiv

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLDiv

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLDiv

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLDiv

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLDiv

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLDiv

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLDiv

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLDiv

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLDiv

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLDiv

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLDiv

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLDiv

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLDiv

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLDiv

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLDiv

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLDiv

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLDiv

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLDiv

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLDiv

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLDiv

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLDiv

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLDiv

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLDiv
}

The interface that represents a "div" HTML element.

func Div

func Div() HTMLDiv

Returns an HTML element that creates a generic container for flow content, usually combined with styles or scripts.

type HTMLDl

type HTMLDl interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLDl

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLDl

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLDl

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLDl

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLDl

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLDl

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLDl

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLDl

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLDl

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLDl

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLDl

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLDl

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLDl

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLDl

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLDl

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLDl

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLDl

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLDl

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLDl

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLDl

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLDl

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLDl

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLDl

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLDl

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLDl

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLDl

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLDl

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLDl

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLDl

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLDl

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLDl

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLDl

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLDl

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLDl

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLDl

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLDl
}

The interface that represents a "dl" HTML element.

func Dl

func Dl() HTMLDl

Returns an HTML element that structures a list of terms alongside their associated descriptions.

type HTMLDt

type HTMLDt interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLDt

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLDt

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLDt

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLDt

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLDt

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLDt

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLDt

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLDt

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLDt

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLDt

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLDt

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLDt

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLDt

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLDt

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLDt

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLDt

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLDt

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLDt

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLDt

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLDt

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLDt

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLDt

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLDt

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLDt

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLDt

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLDt

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLDt

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLDt

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLDt

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLDt

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLDt

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLDt

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLDt

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLDt

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLDt

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLDt
}

The interface that represents a "dt" HTML element.

func Dt

func Dt() HTMLDt

Returns an HTML element that specifies a term or name within a description list.

type HTMLElem

type HTMLElem interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLElem

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLElem

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLElem

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLElem

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLElem

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLElem

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLElem

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLElem

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLElem

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLElem

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLElem

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLElem

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLElem

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLElem

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLElem

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLElem

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLElem

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLElem

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLElem

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLElem

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLElem

	// Defines the XML namespace for the element.
	XMLNS(v string) HTMLElem

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLElem

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLElem

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLElem

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLElem

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLElem

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLElem

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLElem

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLElem

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLElem

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLElem

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLElem

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLElem

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLElem

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLElem

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLElem
}

The interface that represents a "elem" HTML element.

func Elem

func Elem(tag string) HTMLElem

Returns an HTML element that is customizable.

type HTMLElemSelfClosing

type HTMLElemSelfClosing interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLElemSelfClosing

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLElemSelfClosing

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLElemSelfClosing

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLElemSelfClosing

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLElemSelfClosing

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLElemSelfClosing

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLElemSelfClosing

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLElemSelfClosing

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLElemSelfClosing

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLElemSelfClosing

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLElemSelfClosing

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLElemSelfClosing

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLElemSelfClosing

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLElemSelfClosing

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLElemSelfClosing

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLElemSelfClosing

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLElemSelfClosing

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLElemSelfClosing

	// Defines the XML namespace for the element.
	XMLNS(v string) HTMLElemSelfClosing

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLElemSelfClosing

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLElemSelfClosing
}

The interface that represents a "elemselfclosing" HTML element.

func ElemSelfClosing

func ElemSelfClosing(tag string) HTMLElemSelfClosing

Returns an HTML element that is self-closing and customizable.

type HTMLEm

type HTMLEm interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLEm

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLEm

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLEm

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLEm

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLEm

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLEm

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLEm

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLEm

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLEm

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLEm

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLEm

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLEm

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLEm

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLEm

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLEm

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLEm

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLEm

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLEm

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLEm

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLEm

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLEm

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLEm

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLEm

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLEm

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLEm

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLEm

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLEm

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLEm

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLEm

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLEm

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLEm

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLEm

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLEm

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLEm

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLEm

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLEm
}

The interface that represents a "em" HTML element.

func Em

func Em() HTMLEm

Returns an HTML element that marks text for emphasis, typically rendered as italicized text.

type HTMLEmbed

type HTMLEmbed interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLEmbed

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLEmbed

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLEmbed

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLEmbed

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLEmbed

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLEmbed

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLEmbed

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLEmbed

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLEmbed

	// Sets the height of the element, measured in pixels.
	Height(v int) HTMLEmbed

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLEmbed

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLEmbed

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLEmbed

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLEmbed

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLEmbed

	// Provides the URL source of embedded content or media. Uses the given format and values.
	Src(format string, v ...any) HTMLEmbed

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLEmbed

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLEmbed

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLEmbed

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLEmbed

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLEmbed

	// Sets the width of the element.
	Width(v int) HTMLEmbed

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler when media loading is aborted.
	OnAbort(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler when media has buffered sufficiently to begin playback.
	OnCanPlay(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler when media can be played through without buffering interruptions.
	OnCanPlayThrough(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler upon cue changes within a track element.
	OnCueChange(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler when the media's duration changes.
	OnDurationChange(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler when media unexpectedly becomes unavailable.
	OnEmptied(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler when media playback reaches the end.
	OnEnded(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the given handler when an error is encountered.
	OnError(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler when media loading commences.
	OnLoadStart(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler as media data finishes loading.
	OnLoadedData(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler when metadata (like duration and dimensions) are fully loaded.
	OnLoadedMetaData(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler when media playback is paused.
	OnPause(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler when media starts its playback.
	OnPlay(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler once the media has initiated playback.
	OnPlaying(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler while the browser fetches media data.
	OnProgress(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler when playback rate changes (e.g., slow motion or fast forward).
	OnRateChange(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler post seeking completion.
	OnSeeked(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler during the seeking process.
	OnSeeking(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler when media data fetching stalls.
	OnStalled(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler when media data fetching is suspended.
	OnSuspend(h EventHandler, options ...EventOption) HTMLEmbed

	// Executes the handler when the media's playback position changes.
	OnTimeUpdate(h EventHandler, options ...EventOption) HTMLEmbed

	// Invokes the handler upon volume changes or muting.
	OnVolumeChange(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the handler when media pauses, awaiting further buffering.
	OnWaiting(h EventHandler, options ...EventOption) HTMLEmbed

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLEmbed
}

The interface that represents a "embed" HTML element.

func Embed

func Embed() HTMLEmbed

Returns an HTML element that offers a container for integrating non-HTML content or applications.

type HTMLFieldSet

type HTMLFieldSet interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLFieldSet

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLFieldSet

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLFieldSet

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLFieldSet

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLFieldSet

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLFieldSet

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLFieldSet

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLFieldSet

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLFieldSet

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLFieldSet

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLFieldSet

	// Deactivates an element, rendering it uninteractive and visually distinct.
	Disabled(v bool) HTMLFieldSet

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLFieldSet

	// Identifies the form to which the element belongs.
	Form(format string, v ...any) HTMLFieldSet

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLFieldSet

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLFieldSet

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLFieldSet

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLFieldSet

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLFieldSet

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLFieldSet

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLFieldSet

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLFieldSet

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLFieldSet

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLFieldSet

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLFieldSet

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLFieldSet

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLFieldSet

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLFieldSet
}

The interface that represents a "fieldset" HTML element.

func FieldSet

func FieldSet() HTMLFieldSet

Returns an HTML element that clusters related input controls and labels within a form.

type HTMLFigCaption

type HTMLFigCaption interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLFigCaption

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLFigCaption

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLFigCaption

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLFigCaption

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLFigCaption

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLFigCaption

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLFigCaption

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLFigCaption

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLFigCaption

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLFigCaption

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLFigCaption

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLFigCaption

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLFigCaption

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLFigCaption

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLFigCaption

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLFigCaption

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLFigCaption

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLFigCaption

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLFigCaption

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLFigCaption

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLFigCaption

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLFigCaption

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLFigCaption

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLFigCaption

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLFigCaption
}

The interface that represents a "figcaption" HTML element.

func FigCaption

func FigCaption() HTMLFigCaption

Returns an HTML element that supplies a caption or explanation for content within the <figure> element.

type HTMLFigure

type HTMLFigure interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLFigure

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLFigure

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLFigure

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLFigure

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLFigure

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLFigure

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLFigure

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLFigure

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLFigure

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLFigure

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLFigure

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLFigure

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLFigure

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLFigure

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLFigure

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLFigure

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLFigure

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLFigure

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLFigure

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLFigure

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLFigure

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLFigure

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLFigure

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLFigure

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLFigure

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLFigure
}

The interface that represents a "figure" HTML element.

func Figure

func Figure() HTMLFigure

Returns an HTML element that encapsulates media content or illustrations with an optional caption.

type HTMLFooter

type HTMLFooter interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLFooter

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLFooter

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLFooter

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLFooter

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLFooter

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLFooter

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLFooter

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLFooter

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLFooter

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLFooter

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLFooter

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLFooter

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLFooter

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLFooter

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLFooter

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLFooter

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLFooter

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLFooter

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLFooter

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLFooter

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLFooter

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLFooter

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLFooter

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLFooter

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLFooter

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLFooter
}

The interface that represents a "footer" HTML element.

func Footer() HTMLFooter

Returns an HTML element that denotes the footer of a section or the whole document, often containing metadata or author info.

type HTMLForm

type HTMLForm interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLForm

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLForm

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLForm

	// Restricts the character encodings accepted for form submission, ensuring compatibility.
	AcceptCharset(format string, v ...any) HTMLForm

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLForm

	// Specifies the server endpoint to which form-data should be sent upon submission.
	Action(format string, v ...any) HTMLForm

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLForm

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLForm

	// Toggles the browser's autocomplete feature, assisting users with common input values.
	AutoComplete(v bool) HTMLForm

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLForm

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLForm

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLForm

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLForm

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLForm

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLForm

	// Describes how form data should be encoded upon submission, especially vital for forms submitting file uploads.
	EncType(format string, v ...any) HTMLForm

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLForm

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLForm

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLForm

	// Determines the HTTP method for sending form data.
	Method(format string, v ...any) HTMLForm

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLForm

	// Indicates that the form should bypass validation upon submission.
	NoValidate(v bool) HTMLForm

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLForm

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLForm

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLForm

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLForm

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLForm

	// Indicates where to display the linked URL or where to submit the form. Can be called with various predefined values.
	Target(format string, v ...any) HTMLForm

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLForm

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLForm

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLForm

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLForm

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLForm

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLForm

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLForm

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLForm

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLForm

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLForm

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLForm

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLForm

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLForm

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLForm

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLForm

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLForm
}

The interface that represents a "form" HTML element.

func Form

func Form() HTMLForm

Returns an HTML element that constructs a user input form, allowing for various control elements and submission options.

type HTMLH1

type HTMLH1 interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLH1

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLH1

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLH1

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLH1

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLH1

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLH1

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLH1

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLH1

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLH1

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLH1

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLH1

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLH1

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLH1

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLH1

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLH1

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLH1

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLH1

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLH1

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLH1

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLH1

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLH1

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLH1

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLH1

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLH1

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLH1

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLH1

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLH1

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLH1

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLH1

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLH1

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLH1

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLH1

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLH1

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLH1

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLH1

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLH1
}

The interface that represents a "h1" HTML element.

func H1

func H1() HTMLH1

Returns an HTML element that defines a level 1 HTML heading, indicating the most important topic or section.

type HTMLH2

type HTMLH2 interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLH2

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLH2

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLH2

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLH2

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLH2

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLH2

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLH2

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLH2

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLH2

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLH2

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLH2

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLH2

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLH2

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLH2

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLH2

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLH2

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLH2

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLH2

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLH2

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLH2

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLH2

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLH2

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLH2

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLH2

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLH2

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLH2

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLH2

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLH2

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLH2

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLH2

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLH2

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLH2

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLH2

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLH2

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLH2

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLH2
}

The interface that represents a "h2" HTML element.

func H2

func H2() HTMLH2

Returns an HTML element that defines a level 2 HTML heading, indicating a main subsection under H1.

type HTMLH3

type HTMLH3 interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLH3

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLH3

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLH3

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLH3

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLH3

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLH3

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLH3

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLH3

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLH3

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLH3

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLH3

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLH3

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLH3

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLH3

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLH3

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLH3

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLH3

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLH3

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLH3

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLH3

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLH3

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLH3

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLH3

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLH3

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLH3

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLH3

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLH3

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLH3

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLH3

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLH3

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLH3

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLH3

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLH3

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLH3

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLH3

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLH3
}

The interface that represents a "h3" HTML element.

func H3

func H3() HTMLH3

Returns an HTML element that defines a level 3 HTML heading, indicating a subsection under H2.

type HTMLH4

type HTMLH4 interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLH4

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLH4

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLH4

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLH4

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLH4

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLH4

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLH4

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLH4

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLH4

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLH4

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLH4

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLH4

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLH4

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLH4

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLH4

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLH4

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLH4

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLH4

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLH4

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLH4

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLH4

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLH4

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLH4

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLH4

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLH4

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLH4

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLH4

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLH4

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLH4

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLH4

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLH4

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLH4

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLH4

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLH4

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLH4

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLH4
}

The interface that represents a "h4" HTML element.

func H4

func H4() HTMLH4

Returns an HTML element that defines a level 4 HTML heading, indicating topics that fall under the H3 section.

type HTMLH5

type HTMLH5 interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLH5

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLH5

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLH5

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLH5

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLH5

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLH5

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLH5

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLH5

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLH5

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLH5

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLH5

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLH5

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLH5

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLH5

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLH5

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLH5

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLH5

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLH5

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLH5

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLH5

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLH5

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLH5

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLH5

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLH5

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLH5

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLH5

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLH5

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLH5

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLH5

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLH5

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLH5

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLH5

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLH5

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLH5

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLH5

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLH5
}

The interface that represents a "h5" HTML element.

func H5

func H5() HTMLH5

Returns an HTML element that defines a level 5 HTML heading, typically used for finer details under an H4 section.

type HTMLH6

type HTMLH6 interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLH6

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLH6

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLH6

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLH6

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLH6

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLH6

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLH6

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLH6

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLH6

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLH6

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLH6

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLH6

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLH6

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLH6

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLH6

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLH6

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLH6

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLH6

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLH6

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLH6

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLH6

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLH6

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLH6

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLH6

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLH6

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLH6

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLH6

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLH6

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLH6

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLH6

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLH6

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLH6

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLH6

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLH6

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLH6

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLH6
}

The interface that represents a "h6" HTML element.

func H6

func H6() HTMLH6

Returns an HTML element that defines a level 6 HTML heading, used for the smallest granularity of topics or details.

type HTMLHead

type HTMLHead interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLHead

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLHead

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLHead

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLHead

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLHead

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLHead

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLHead

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLHead

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLHead

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLHead

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLHead

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLHead

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLHead

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLHead

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLHead

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLHead

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLHead

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLHead

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLHead

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLHead

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLHead

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLHead
}

The interface that represents a "head" HTML element.

func Head() HTMLHead

Returns an HTML element that defines information about the document.

type HTMLHeader

type HTMLHeader interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLHeader

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLHeader

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLHeader

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLHeader

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLHeader

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLHeader

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLHeader

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLHeader

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLHeader

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLHeader

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLHeader

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLHeader

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLHeader

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLHeader

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLHeader

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLHeader

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLHeader

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLHeader

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLHeader

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLHeader

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLHeader

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLHeader

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLHeader

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLHeader

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLHeader

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLHeader
}

The interface that represents a "header" HTML element.

func Header() HTMLHeader

Returns an HTML element that defines a header for a document or section.

type HTMLHr

type HTMLHr interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLHr

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLHr

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLHr

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLHr

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLHr

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLHr

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLHr

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLHr

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLHr

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLHr

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLHr

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLHr

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLHr

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLHr

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLHr

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLHr

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLHr

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLHr

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLHr

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLHr

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLHr

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLHr

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLHr

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLHr

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLHr

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLHr

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLHr

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLHr

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLHr

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLHr

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLHr

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLHr

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLHr
}

The interface that represents a "hr" HTML element.

func Hr

func Hr() HTMLHr

Returns an HTML element that defines a thematic change in the content.

type HTMLHtml

type HTMLHtml interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLHtml

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLHtml

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLHtml

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLHtml

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLHtml

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLHtml

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLHtml

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLHtml

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLHtml

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLHtml

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLHtml

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLHtml

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLHtml

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLHtml

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLHtml

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLHtml

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLHtml

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLHtml

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLHtml
	// contains filtered or unexported methods
}

The interface that represents a "html" HTML element.

func Html

func Html() HTMLHtml

Returns an HTML element that defines the root of an HTML document.

type HTMLI

type HTMLI interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLI

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLI

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLI

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLI

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLI

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLI

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLI

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLI

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLI

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLI

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLI

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLI

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLI

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLI

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLI

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLI

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLI

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLI

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLI

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLI

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLI

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLI

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLI

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLI

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLI

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLI

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLI

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLI

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLI

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLI

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLI

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLI

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLI

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLI

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLI

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLI

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLI

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLI

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLI

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLI

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLI

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLI

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLI

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLI

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLI

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLI

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLI

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLI

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLI

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLI

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLI

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLI

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLI

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLI

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLI

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLI
}

The interface that represents a "i" HTML element.

func I

func I() HTMLI

Returns an HTML element that defines a part of text in an alternate voice or mood.

type HTMLIFrame

type HTMLIFrame interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLIFrame

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLIFrame

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLIFrame

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLIFrame

	// Sets a feature policy, enhancing security by controlling certain browser features. Allows multiple policies.
	Allow(format string, v ...any) HTMLIFrame

	// Grants an iframe the capability to request fullscreen mode.
	AllowFullscreen(v bool) HTMLIFrame

	// Grants an iframe the permission to use the Payment Request API for smoother online transactions.
	AllowPaymentRequest(v bool) HTMLIFrame

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLIFrame

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLIFrame

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLIFrame

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLIFrame

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLIFrame

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLIFrame

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLIFrame

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLIFrame

	// Sets the height of the element, measured in pixels.
	Height(v int) HTMLIFrame

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLIFrame

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLIFrame

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLIFrame

	// Determines the browser's loading behavior ('eager' or 'lazy').
	Loading(format string, v ...any) HTMLIFrame

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLIFrame

	// Determines the amount of referrer information sent when processing iframe attributes.
	ReferrerPolicy(format string, v ...any) HTMLIFrame

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLIFrame

	// Applies extra security restrictions to content within an iframe.
	Sandbox(format string, v ...any) HTMLIFrame

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLIFrame

	// Provides the URL source of embedded content or media. Uses the given format and values.
	Src(format string, v ...any) HTMLIFrame

	// Defines the HTML content to be displayed within an iframe. Uses the given format and values.
	SrcDoc(format string, v ...any) HTMLIFrame

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLIFrame

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLIFrame

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLIFrame

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLIFrame

	// Sets the width of the element.
	Width(v int) HTMLIFrame

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the specified handler once the element has completely loaded.
	OnLoad(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLIFrame

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLIFrame

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLIFrame

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLIFrame
}

The interface that represents a "iframe" HTML element.

func IFrame

func IFrame() HTMLIFrame

Returns an HTML element that defines an inline frame.

type HTMLImg

type HTMLImg interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLImg

	// Provides a text alternative for elements (often images) ensuring content is accessible when visuals can't be rendered.
	Alt(format string, v ...any) HTMLImg

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLImg

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLImg

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLImg

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLImg

	// Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins.
	CrossOrigin(format string, v ...any) HTMLImg

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLImg

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLImg

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLImg

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLImg

	// Provides a hint to the browser about how it should prioritize the fetch of the image in relation to other images.
	FetchPriority(format string, v ...any) HTMLImg

	// Sets the height of the element, measured in pixels.
	Height(v int) HTMLImg

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLImg

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLImg

	// Marks an image as a server-side image-map.
	IsMap(v bool) HTMLImg

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLImg

	// Determines the browser's loading behavior ('eager' or 'lazy').
	Loading(format string, v ...any) HTMLImg

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLImg

	// Specifies sizes of icons and images for different page or screen scenarios. Uses the given format and values.
	Sizes(format string, v ...any) HTMLImg

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLImg

	// Provides the URL source of embedded content or media. Uses the given format and values.
	Src(format string, v ...any) HTMLImg

	// Provides URLs of images to display in varied resolutions or viewport conditions. Uses the given format and values.
	SrcSet(format string, v ...any) HTMLImg

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLImg

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLImg

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLImg

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLImg

	// Associates the element with a client-side image map. Can be called with the designated format and values.
	UseMap(format string, v ...any) HTMLImg

	// Sets the width of the element.
	Width(v int) HTMLImg

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler when media loading is aborted.
	OnAbort(h EventHandler, options ...EventOption) HTMLImg

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler when media has buffered sufficiently to begin playback.
	OnCanPlay(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler when media can be played through without buffering interruptions.
	OnCanPlayThrough(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler upon cue changes within a track element.
	OnCueChange(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLImg

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler when the media's duration changes.
	OnDurationChange(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler when media unexpectedly becomes unavailable.
	OnEmptied(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler when media playback reaches the end.
	OnEnded(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the given handler when an error is encountered.
	OnError(h EventHandler, options ...EventOption) HTMLImg

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLImg

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLImg

	// Executes the specified handler once the element has completely loaded.
	OnLoad(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler when media loading commences.
	OnLoadStart(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler as media data finishes loading.
	OnLoadedData(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler when metadata (like duration and dimensions) are fully loaded.
	OnLoadedMetaData(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLImg

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLImg

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler when media playback is paused.
	OnPause(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler when media starts its playback.
	OnPlay(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler once the media has initiated playback.
	OnPlaying(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler while the browser fetches media data.
	OnProgress(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler when playback rate changes (e.g., slow motion or fast forward).
	OnRateChange(h EventHandler, options ...EventOption) HTMLImg

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler post seeking completion.
	OnSeeked(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler during the seeking process.
	OnSeeking(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler when media data fetching stalls.
	OnStalled(h EventHandler, options ...EventOption) HTMLImg

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler when media data fetching is suspended.
	OnSuspend(h EventHandler, options ...EventOption) HTMLImg

	// Executes the handler when the media's playback position changes.
	OnTimeUpdate(h EventHandler, options ...EventOption) HTMLImg

	// Invokes the handler upon volume changes or muting.
	OnVolumeChange(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the handler when media pauses, awaiting further buffering.
	OnWaiting(h EventHandler, options ...EventOption) HTMLImg

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLImg
}

The interface that represents a "img" HTML element.

func Img

func Img() HTMLImg

Returns an HTML element that defines an image.

type HTMLInput

type HTMLInput interface {
	HTML

	// Restricts file types the server accepts, especially used for file input elements.
	Accept(format string, v ...any) HTMLInput

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLInput

	// Provides a text alternative for elements (often images) ensuring content is accessible when visuals can't be rendered.
	Alt(format string, v ...any) HTMLInput

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLInput

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLInput

	// Toggles the browser's autocomplete feature, assisting users with common input values.
	AutoComplete(v bool) HTMLInput

	// Instructs the browser to focus this element automatically when the page loads.
	AutoFocus(v bool) HTMLInput

	// Directs how media capture for file uploads should be handled, such as using the device's camera or microphone.
	Capture(format string, v ...any) HTMLInput

	// Indicates that an input element (checkbox or radio) should start in a selected state upon page load.
	Checked(v bool) HTMLInput

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLInput

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLInput

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLInput

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLInput

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLInput

	// Instructs the browser to also submit the text direction of a form field when the form is submitted.
	DirName(format string, v ...any) HTMLInput

	// Deactivates an element, rendering it uninteractive and visually distinct.
	Disabled(v bool) HTMLInput

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLInput

	// Identifies the form to which the element belongs.
	Form(format string, v ...any) HTMLInput

	// Defines the URL to which form data should be sent upon submission. Applicable only to 'submit' type inputs.
	FormAction(format string, v ...any) HTMLInput

	// Dictates the encoding method for form data prior to its submission to a server. Applicable only to 'submit' type inputs.
	FormEncType(format string, v ...any) HTMLInput

	// Determines the HTTP method for sending form data. Applicable only to 'submit' type inputs.
	FormMethod(format string, v ...any) HTMLInput

	// Indicates that the form data should bypass validation upon submission. Applicable only to 'submit' type inputs.
	FormNoValidate(v bool) HTMLInput

	// Specifies where the server's response will be displayed after form submission. Applicable only to 'submit' type inputs.
	FormTarget(format string, v ...any) HTMLInput

	// Sets the height of the element, measured in pixels.
	Height(v int) HTMLInput

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLInput

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLInput

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLInput

	// Links to a datalist element offering predefined options for an input element.
	List(format string, v ...any) HTMLInput

	// Establishes the maximum permissible value.
	Max(v any) HTMLInput

	// Defines the maximum number of characters permissible in an element.
	MaxLength(v int) HTMLInput

	// Establishes the minimum permissible value.
	Min(v any) HTMLInput

	// Allows users to input multiple values.
	Multiple(v bool) HTMLInput

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLInput

	// Establishes a regular expression against which an input element's value is validated.
	Pattern(format string, v ...any) HTMLInput

	// Provides a brief hint describing the expected value of the element.
	Placeholder(format string, v ...any) HTMLInput

	// Indicates that the element's value cannot be edited by the user.
	ReadOnly(v bool) HTMLInput

	// Indicates that the element must contain a value before form submission.
	Required(v bool) HTMLInput

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLInput

	// Indicates the width of the element, usually in characters for input elements.
	Size(v int) HTMLInput

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLInput

	// Provides the URL source of embedded content or media. Uses the given format and values.
	Src(format string, v ...any) HTMLInput

	// Specifies the interval between permissible values for an input field.
	Step(v float64) HTMLInput

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLInput

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLInput

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLInput

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLInput

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLInput

	// Assigns a value to the element.
	Value(v any) HTMLInput

	// Sets the width of the element.
	Width(v int) HTMLInput

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLInput

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLInput

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLInput

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLInput

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLInput

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLInput

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLInput

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLInput

	// Executes the specified handler once the element has completely loaded.
	OnLoad(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLInput

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLInput

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLInput

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLInput

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLInput

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLInput

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLInput

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLInput
}

The interface that represents a "input" HTML element.

func Input

func Input() HTMLInput

Returns an HTML element that defines an input control.

type HTMLIns

type HTMLIns interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLIns

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLIns

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLIns

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLIns

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLIns

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLIns

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLIns

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLIns

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLIns

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLIns

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLIns

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLIns

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLIns

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLIns

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLIns

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLIns

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLIns

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLIns

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLIns

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLIns

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLIns

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLIns

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLIns

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLIns

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLIns

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLIns

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLIns

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLIns

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLIns

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLIns

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLIns

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLIns

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLIns

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLIns

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLIns

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLIns
}

The interface that represents a "ins" HTML element.

func Ins

func Ins() HTMLIns

Returns an HTML element that defines text that has been inserted into a document.

type HTMLKbd

type HTMLKbd interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLKbd

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLKbd

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLKbd

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLKbd

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLKbd

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLKbd

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLKbd

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLKbd

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLKbd

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLKbd

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLKbd

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLKbd

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLKbd

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLKbd

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLKbd

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLKbd

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLKbd

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLKbd

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLKbd

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLKbd

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLKbd

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLKbd

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLKbd

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLKbd

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLKbd

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLKbd
}

The interface that represents a "kbd" HTML element.

func Kbd

func Kbd() HTMLKbd

Returns an HTML element that represents keyboard input.

type HTMLLabel

type HTMLLabel interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLLabel

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLLabel

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLLabel

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLLabel

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLLabel

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLLabel

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLLabel

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLLabel

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLLabel

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLLabel

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLLabel

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLLabel

	// Associates a label or calculation with specific form element(s).
	For(format string, v ...any) HTMLLabel

	// Identifies the form to which the element belongs.
	Form(format string, v ...any) HTMLLabel

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLLabel

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLLabel

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLLabel

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLLabel

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLLabel

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLLabel

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLLabel

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLLabel

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLLabel

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLLabel

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLLabel

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLLabel

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLLabel

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLLabel
}

The interface that represents a "label" HTML element.

func Label

func Label() HTMLLabel

Returns an HTML element that represents a label for an input element.

type HTMLLegend

type HTMLLegend interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLLegend

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLLegend

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLLegend

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLLegend

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLLegend

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLLegend

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLLegend

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLLegend

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLLegend

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLLegend

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLLegend

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLLegend

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLLegend

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLLegend

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLLegend

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLLegend

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLLegend

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLLegend

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLLegend

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLLegend

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLLegend

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLLegend

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLLegend

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLLegend

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLLegend

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLLegend
}

The interface that represents a "legend" HTML element.

func Legend

func Legend() HTMLLegend

Returns an HTML element that represents a caption for a fieldset element.

type HTMLLi

type HTMLLi interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLLi

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLLi

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLLi

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLLi

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLLi

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLLi

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLLi

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLLi

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLLi

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLLi

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLLi

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLLi

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLLi

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLLi

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLLi

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLLi

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLLi

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLLi

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLLi

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLLi

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLLi

	// Assigns a value to the element.
	Value(v any) HTMLLi

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLLi

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLLi

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLLi

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLLi

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLLi

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLLi

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLLi

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLLi

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLLi

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLLi

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLLi

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLLi

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLLi

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLLi

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLLi
}

The interface that represents a "li" HTML element.

func Li

func Li() HTMLLi

Returns an HTML element that represents a list item.

type HTMLLink interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLLink

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLLink

	// Hints the type of content to preload, optimizing loading for certain resources.
	As(format string, v ...any) HTMLLink

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLLink

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLLink

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLLink

	// Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins.
	CrossOrigin(format string, v ...any) HTMLLink

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLLink

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLLink

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLLink

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLLink

	// Provides a hint to the browser about how it should prioritize the fetch of the image in relation to other images.
	FetchPriority(format string, v ...any) HTMLLink

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLLink

	// Points to the URL of the destination when the link is clicked.
	Href(format string, v ...any) HTMLLink

	// Declares the language of the linked document's content.
	HrefLang(format string, v ...any) HTMLLink

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLLink

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLLink

	// Indicates the intended media or device for the linked document.
	Media(format string, v ...any) HTMLLink

	// Describes the relationship between the current and linked documents.
	Rel(format string, v ...any) HTMLLink

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLLink

	// Specifies sizes of icons and images for different page or screen scenarios. Uses the given format and values.
	Sizes(format string, v ...any) HTMLLink

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLLink

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLLink

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLLink

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLLink

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLLink

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLLink

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLLink

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLLink

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLLink

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLLink

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLLink

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLLink

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLLink

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLLink

	// Executes the specified handler once the element has completely loaded.
	OnLoad(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLLink

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLLink

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLLink

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLLink

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLLink

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLLink

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLLink

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLLink
}

The interface that represents a "link" HTML element.

func Link() HTMLLink

Returns an HTML element that describes the relationship between a document and an external resource (most commonly used to link to style sheets).

type HTMLMain

type HTMLMain interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLMain

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLMain

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLMain

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLMain

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLMain

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLMain

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLMain

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLMain

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLMain

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLMain

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLMain

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLMain

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLMain

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLMain

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLMain

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLMain

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLMain

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLMain

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLMain

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLMain

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLMain

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLMain

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLMain

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLMain

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLMain

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLMain

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLMain

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLMain

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLMain

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLMain

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLMain

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLMain

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLMain

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLMain

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLMain

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLMain
}

The interface that represents a "main" HTML element.

func Main

func Main() HTMLMain

Returns an HTML element that specifies the main content of a document.

type HTMLMap

type HTMLMap interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLMap

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLMap

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLMap

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLMap

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLMap

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLMap

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLMap

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLMap

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLMap

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLMap

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLMap

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLMap

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLMap

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLMap

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLMap

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLMap

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLMap

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLMap

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLMap

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLMap

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLMap

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLMap

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLMap

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLMap

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLMap

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLMap

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLMap

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLMap

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLMap

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLMap

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLMap

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLMap

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLMap

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLMap

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLMap

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLMap

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLMap
}

The interface that represents a "map" HTML element.

func Map

func Map() HTMLMap

Returns an HTML element that represents a client-side image-map.

type HTMLMark

type HTMLMark interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLMark

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLMark

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLMark

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLMark

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLMark

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLMark

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLMark

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLMark

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLMark

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLMark

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLMark

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLMark

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLMark

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLMark

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLMark

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLMark

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLMark

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLMark

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLMark

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLMark

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLMark

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLMark

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLMark

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLMark

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLMark

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLMark

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLMark

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLMark

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLMark

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLMark

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLMark

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLMark

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLMark

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLMark

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLMark

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLMark
}

The interface that represents a "mark" HTML element.

func Mark

func Mark() HTMLMark

Returns an HTML element that represents marked/highlighted text.

type HTMLMeta

type HTMLMeta interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLMeta

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLMeta

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLMeta

	// Specifies the character encoding for the linked document or external resource.
	Charset(format string, v ...any) HTMLMeta

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLMeta

	// Specifies metadata content for the `http-equiv` or `name` attributes, often used in meta tags.
	Content(format string, v ...any) HTMLMeta

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLMeta

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLMeta

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLMeta

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLMeta

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLMeta

	// Supplies an HTTP header for the content attribute, often used for refresh rates or setting a default charset.
	HTTPEquiv(format string, v ...any) HTMLMeta

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLMeta

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLMeta

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLMeta

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLMeta

	// Defines the property name of the element.
	Property(format string, v ...any) HTMLMeta

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLMeta

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLMeta

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLMeta

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLMeta

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLMeta

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLMeta

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLMeta
}

The interface that represents a "meta" HTML element.

func Meta

func Meta() HTMLMeta

Returns an HTML element that provides metadata about the HTML document.

type HTMLMeter

type HTMLMeter interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLMeter

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLMeter

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLMeter

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLMeter

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLMeter

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLMeter

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLMeter

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLMeter

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLMeter

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLMeter

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLMeter

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLMeter

	// Identifies the form to which the element belongs.
	Form(format string, v ...any) HTMLMeter

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLMeter

	// Defines the value threshold considered as 'high' in a range context.
	High(v float64) HTMLMeter

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLMeter

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLMeter

	// Sets the value threshold regarded as 'low' in a range context.
	Low(v float64) HTMLMeter

	// Establishes the maximum permissible value.
	Max(v any) HTMLMeter

	// Establishes the minimum permissible value.
	Min(v any) HTMLMeter

	// Sets the optimal numeric value for a gauge element.
	Optimum(v float64) HTMLMeter

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLMeter

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLMeter

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLMeter

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLMeter

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLMeter

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLMeter

	// Assigns a value to the element.
	Value(v any) HTMLMeter

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLMeter

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLMeter

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLMeter

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLMeter

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLMeter
}

The interface that represents a "meter" HTML element.

func Meter

func Meter() HTMLMeter

Returns an HTML element that represents a scalar measurement within a known range (like a gauge).

type HTMLNav

type HTMLNav interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLNav

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLNav

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLNav

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLNav

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLNav

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLNav

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLNav

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLNav

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLNav

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLNav

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLNav

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLNav

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLNav

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLNav

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLNav

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLNav

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLNav

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLNav

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLNav

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLNav

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLNav

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLNav

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLNav

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLNav

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLNav

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLNav

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLNav

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLNav

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLNav

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLNav

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLNav

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLNav

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLNav

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLNav

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLNav

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLNav
}

The interface that represents a "nav" HTML element.

func Nav() HTMLNav

Returns an HTML element that represents navigation links.

type HTMLNoScript

type HTMLNoScript interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLNoScript

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLNoScript

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLNoScript

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLNoScript

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLNoScript

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLNoScript

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLNoScript

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLNoScript

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLNoScript

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLNoScript

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLNoScript

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLNoScript

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLNoScript

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLNoScript

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLNoScript

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLNoScript

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLNoScript

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLNoScript

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLNoScript

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLNoScript

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLNoScript

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLNoScript
}

The interface that represents a "noscript" HTML element.

func NoScript

func NoScript() HTMLNoScript

Returns an HTML element that provides alternate content for users who do not support client-side scripts.

type HTMLObject

type HTMLObject interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLObject

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLObject

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLObject

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLObject

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLObject

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLObject

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLObject

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLObject

	// Specifies the URL of a resource associated with an embedded object, such as media or data.
	Data(format string, v ...any) HTMLObject

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLObject

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLObject

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLObject

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLObject

	// Identifies the form to which the element belongs.
	Form(format string, v ...any) HTMLObject

	// Sets the height of the element, measured in pixels.
	Height(v int) HTMLObject

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLObject

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLObject

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLObject

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLObject

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLObject

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLObject

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLObject

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLObject

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLObject

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLObject

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLObject

	// Associates the element with a client-side image map. Can be called with the designated format and values.
	UseMap(format string, v ...any) HTMLObject

	// Sets the width of the element.
	Width(v int) HTMLObject

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler when media loading is aborted.
	OnAbort(h EventHandler, options ...EventOption) HTMLObject

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler when media has buffered sufficiently to begin playback.
	OnCanPlay(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler when media can be played through without buffering interruptions.
	OnCanPlayThrough(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler upon cue changes within a track element.
	OnCueChange(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLObject

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler when the media's duration changes.
	OnDurationChange(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler when media unexpectedly becomes unavailable.
	OnEmptied(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler when media playback reaches the end.
	OnEnded(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the given handler when an error is encountered.
	OnError(h EventHandler, options ...EventOption) HTMLObject

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLObject

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler when media loading commences.
	OnLoadStart(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler as media data finishes loading.
	OnLoadedData(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler when metadata (like duration and dimensions) are fully loaded.
	OnLoadedMetaData(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLObject

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLObject

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler when media playback is paused.
	OnPause(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler when media starts its playback.
	OnPlay(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler once the media has initiated playback.
	OnPlaying(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler while the browser fetches media data.
	OnProgress(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler when playback rate changes (e.g., slow motion or fast forward).
	OnRateChange(h EventHandler, options ...EventOption) HTMLObject

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler post seeking completion.
	OnSeeked(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler during the seeking process.
	OnSeeking(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler when media data fetching stalls.
	OnStalled(h EventHandler, options ...EventOption) HTMLObject

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler when media data fetching is suspended.
	OnSuspend(h EventHandler, options ...EventOption) HTMLObject

	// Executes the handler when the media's playback position changes.
	OnTimeUpdate(h EventHandler, options ...EventOption) HTMLObject

	// Invokes the handler upon volume changes or muting.
	OnVolumeChange(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the handler when media pauses, awaiting further buffering.
	OnWaiting(h EventHandler, options ...EventOption) HTMLObject

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLObject
}

The interface that represents a "object" HTML element.

func Object

func Object() HTMLObject

Returns an HTML element that embeds an object within the document.

type HTMLOl

type HTMLOl interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLOl

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLOl

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLOl

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLOl

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLOl

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLOl

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLOl

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLOl

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLOl

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLOl

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLOl

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLOl

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLOl

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLOl

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLOl

	// States that the list items should be displayed in descending order.
	Reversed(v bool) HTMLOl

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLOl

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLOl

	// Determines the starting number for an ordered list.
	Start(v int) HTMLOl

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLOl

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLOl

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLOl

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLOl

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLOl

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLOl

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLOl

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLOl

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLOl

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLOl

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLOl

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLOl

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLOl

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLOl

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLOl

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLOl

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLOl

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLOl

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLOl

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLOl
}

The interface that represents a "ol" HTML element.

func Ol

func Ol() HTMLOl

Returns an HTML element that represents an ordered list.

type HTMLOptGroup

type HTMLOptGroup interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLOptGroup

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLOptGroup

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLOptGroup

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLOptGroup

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLOptGroup

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLOptGroup

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLOptGroup

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLOptGroup

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLOptGroup

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLOptGroup

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLOptGroup

	// Deactivates an element, rendering it uninteractive and visually distinct.
	Disabled(v bool) HTMLOptGroup

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLOptGroup

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLOptGroup

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLOptGroup

	// Provides a concise label for an option element.
	Label(format string, v ...any) HTMLOptGroup

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLOptGroup

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLOptGroup

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLOptGroup

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLOptGroup

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLOptGroup

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLOptGroup

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLOptGroup

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLOptGroup

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLOptGroup

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLOptGroup

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLOptGroup
}

The interface that represents a "optgroup" HTML element.

func OptGroup

func OptGroup() HTMLOptGroup

Returns an HTML element that groups related options in a drop-down list.

type HTMLOption

type HTMLOption interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLOption

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLOption

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLOption

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLOption

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLOption

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLOption

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLOption

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLOption

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLOption

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLOption

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLOption

	// Deactivates an element, rendering it uninteractive and visually distinct.
	Disabled(v bool) HTMLOption

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLOption

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLOption

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLOption

	// Provides a concise label for an option element.
	Label(format string, v ...any) HTMLOption

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLOption

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLOption

	// Indicates that an option should be pre-selected when the page loads.
	Selected(v bool) HTMLOption

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLOption

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLOption

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLOption

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLOption

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLOption

	// Assigns a value to the element.
	Value(v any) HTMLOption

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLOption

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLOption

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLOption

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLOption

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLOption

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLOption

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLOption

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLOption

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLOption

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLOption

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLOption

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLOption

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLOption

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLOption

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLOption
}

The interface that represents a "option" HTML element.

func Option

func Option() HTMLOption

Returns an HTML element that represents an option in a drop-down list.

type HTMLOutput

type HTMLOutput interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLOutput

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLOutput

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLOutput

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLOutput

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLOutput

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLOutput

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLOutput

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLOutput

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLOutput

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLOutput

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLOutput

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLOutput

	// Associates a label or calculation with specific form element(s).
	For(format string, v ...any) HTMLOutput

	// Identifies the form to which the element belongs.
	Form(format string, v ...any) HTMLOutput

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLOutput

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLOutput

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLOutput

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLOutput

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLOutput

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLOutput

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLOutput

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLOutput

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLOutput

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLOutput

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLOutput

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLOutput

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLOutput

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLOutput

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLOutput
}

The interface that represents a "output" HTML element.

func Output

func Output() HTMLOutput

Returns an HTML element that displays the result of a calculation or user action.

type HTMLP

type HTMLP interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLP

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLP

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLP

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLP

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLP

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLP

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLP

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLP

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLP

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLP

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLP

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLP

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLP

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLP

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLP

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLP

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLP

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLP

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLP

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLP

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLP

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLP

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLP

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLP

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLP

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLP

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLP

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLP

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLP

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLP

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLP

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLP

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLP

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLP

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLP

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLP

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLP

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLP

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLP

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLP

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLP

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLP

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLP

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLP

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLP

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLP

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLP

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLP

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLP

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLP

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLP

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLP

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLP

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLP

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLP

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLP
}

The interface that represents a "p" HTML element.

func P

func P() HTMLP

Returns an HTML element that represents a paragraph.

type HTMLParam

type HTMLParam interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLParam

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLParam

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLParam

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLParam

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLParam

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLParam

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLParam

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLParam

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLParam

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLParam

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLParam

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLParam

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLParam

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLParam

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLParam

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLParam

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLParam

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLParam

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLParam

	// Assigns a value to the element.
	Value(v any) HTMLParam

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLParam

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLParam

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLParam

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLParam

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLParam

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLParam

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLParam

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLParam

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLParam

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLParam

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLParam

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLParam

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLParam

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLParam

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLParam
}

The interface that represents a "param" HTML element.

func Param

func Param() HTMLParam

Returns an HTML element that defines a parameter for an embedded object.

type HTMLPicture

type HTMLPicture interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLPicture

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLPicture

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLPicture

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLPicture

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLPicture

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLPicture

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLPicture

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLPicture

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLPicture

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLPicture

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLPicture

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLPicture

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLPicture

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLPicture

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLPicture

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLPicture

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLPicture

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLPicture

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLPicture

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLPicture

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLPicture

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLPicture

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLPicture

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLPicture

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLPicture

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLPicture
}

The interface that represents a "picture" HTML element.

func Picture

func Picture() HTMLPicture

Returns an HTML element that provides a container for multiple image sources.

type HTMLPre

type HTMLPre interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLPre

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLPre

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLPre

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLPre

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLPre

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLPre

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLPre

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLPre

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLPre

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLPre

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLPre

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLPre

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLPre

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLPre

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLPre

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLPre

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLPre

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLPre

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLPre

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLPre

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLPre

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLPre

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLPre

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLPre

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLPre

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLPre

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLPre

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLPre

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLPre

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLPre

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLPre

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLPre

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLPre

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLPre

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLPre

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLPre
}

The interface that represents a "pre" HTML element.

func Pre

func Pre() HTMLPre

Returns an HTML element that displays preformatted text.

type HTMLProgress

type HTMLProgress interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLProgress

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLProgress

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLProgress

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLProgress

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLProgress

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLProgress

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLProgress

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLProgress

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLProgress

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLProgress

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLProgress

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLProgress

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLProgress

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLProgress

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLProgress

	// Establishes the maximum permissible value.
	Max(v any) HTMLProgress

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLProgress

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLProgress

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLProgress

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLProgress

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLProgress

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLProgress

	// Assigns a value to the element.
	Value(v any) HTMLProgress

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLProgress

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLProgress

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLProgress

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLProgress

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLProgress
}

The interface that represents a "progress" HTML element.

func Progress

func Progress() HTMLProgress

Returns an HTML element that visualizes the progress of a task.

type HTMLQ

type HTMLQ interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLQ

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLQ

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLQ

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLQ

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLQ

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLQ

	// Provides a reference or link to a source explaining quoted or modified content in the element.
	Cite(format string, v ...any) HTMLQ

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLQ

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLQ

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLQ

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLQ

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLQ

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLQ

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLQ

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLQ

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLQ

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLQ

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLQ

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLQ

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLQ

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLQ

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLQ

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLQ

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLQ

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLQ

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLQ

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLQ

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLQ

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLQ

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLQ

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLQ

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLQ

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLQ

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLQ

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLQ

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLQ

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLQ
}

The interface that represents a "q" HTML element.

func Q

func Q() HTMLQ

Returns an HTML element that represents a short quotation.

type HTMLRp

type HTMLRp interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLRp

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLRp

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLRp

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLRp

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLRp

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLRp

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLRp

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLRp

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLRp

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLRp

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLRp

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLRp

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLRp

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLRp

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLRp

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLRp

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLRp

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLRp

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLRp

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLRp

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLRp

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLRp

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLRp

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLRp

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLRp

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLRp

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLRp

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLRp

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLRp

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLRp

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLRp

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLRp

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLRp

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLRp

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLRp

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLRp
}

The interface that represents a "rp" HTML element.

func Rp

func Rp() HTMLRp

Returns an HTML element that indicates text for browsers not supporting ruby annotations.

type HTMLRt

type HTMLRt interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLRt

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLRt

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLRt

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLRt

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLRt

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLRt

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLRt

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLRt

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLRt

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLRt

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLRt

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLRt

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLRt

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLRt

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLRt

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLRt

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLRt

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLRt

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLRt

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLRt

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLRt

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLRt

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLRt

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLRt

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLRt

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLRt

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLRt

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLRt

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLRt

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLRt

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLRt

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLRt

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLRt

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLRt

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLRt

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLRt
}

The interface that represents a "rt" HTML element.

func Rt

func Rt() HTMLRt

Returns an HTML element that provides explanation or pronunciation of characters (used in East Asian typography).

type HTMLRuby

type HTMLRuby interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLRuby

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLRuby

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLRuby

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLRuby

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLRuby

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLRuby

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLRuby

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLRuby

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLRuby

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLRuby

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLRuby

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLRuby

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLRuby

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLRuby

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLRuby

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLRuby

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLRuby

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLRuby

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLRuby

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLRuby

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLRuby

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLRuby

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLRuby

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLRuby

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLRuby

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLRuby
}

The interface that represents a "ruby" HTML element.

func Ruby

func Ruby() HTMLRuby

Returns an HTML element that marks a ruby annotation (used for East Asian typography).

type HTMLS

type HTMLS interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLS

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLS

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLS

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLS

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLS

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLS

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLS

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLS

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLS

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLS

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLS

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLS

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLS

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLS

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLS

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLS

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLS

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLS

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLS

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLS

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLS

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLS

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLS

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLS

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLS

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLS

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLS

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLS

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLS

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLS

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLS

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLS

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLS

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLS

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLS

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLS

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLS

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLS

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLS

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLS

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLS

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLS

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLS

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLS

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLS

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLS

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLS

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLS

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLS

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLS

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLS

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLS

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLS

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLS

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLS

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLS
}

The interface that represents a "s" HTML element.

func S

func S() HTMLS

Returns an HTML element that represents text which is no longer correct or relevant.

type HTMLSamp

type HTMLSamp interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLSamp

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLSamp

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLSamp

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLSamp

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLSamp

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLSamp

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLSamp

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLSamp

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLSamp

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLSamp

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLSamp

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLSamp

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLSamp

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLSamp

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLSamp

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLSamp

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLSamp

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLSamp

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLSamp

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLSamp

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLSamp

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLSamp

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLSamp

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLSamp

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLSamp

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLSamp
}

The interface that represents a "samp" HTML element.

func Samp

func Samp() HTMLSamp

Returns an HTML element that displays sample output from a computer program.

type HTMLScript

type HTMLScript interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLScript

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLScript

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLScript

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLScript

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLScript

	// Specifies that external scripts are executed asynchronously, preventing blocking of page rendering.
	Async(v bool) HTMLScript

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLScript

	// Specifies the character encoding for the linked document or external resource.
	Charset(format string, v ...any) HTMLScript

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLScript

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLScript

	// Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins.
	CrossOrigin(format string, v ...any) HTMLScript

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLScript

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLScript

	// Delays the execution of a script until after the document is parsed, typically applied to external scripts.
	Defer(v bool) HTMLScript

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLScript

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLScript

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLScript

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLScript

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLScript

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLScript

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLScript

	// Provides the URL source of embedded content or media. Uses the given format and values.
	Src(format string, v ...any) HTMLScript

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLScript

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLScript

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLScript

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLScript

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLScript

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLScript

	// Executes the specified handler once the element has completely loaded.
	OnLoad(h EventHandler, options ...EventOption) HTMLScript
}

The interface that represents a "script" HTML element.

func Script

func Script() HTMLScript

Returns an HTML element that embeds or references a client-side script.

type HTMLSection

type HTMLSection interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLSection

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLSection

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLSection

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLSection

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLSection

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLSection

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLSection

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLSection

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLSection

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLSection

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLSection

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLSection

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLSection

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLSection

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLSection

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLSection

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLSection

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLSection

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLSection

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLSection

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLSection

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLSection

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLSection

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLSection

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLSection

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLSection

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLSection

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLSection

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLSection

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLSection

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLSection

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLSection

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLSection

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLSection

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLSection

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLSection
}

The interface that represents a "section" HTML element.

func Section

func Section() HTMLSection

Returns an HTML element that represents a standalone section in a document.

type HTMLSelect

type HTMLSelect interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLSelect

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLSelect

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLSelect

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLSelect

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLSelect

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLSelect

	// Instructs the browser to focus this element automatically when the page loads.
	AutoFocus(v bool) HTMLSelect

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLSelect

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLSelect

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLSelect

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLSelect

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLSelect

	// Deactivates an element, rendering it uninteractive and visually distinct.
	Disabled(v bool) HTMLSelect

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLSelect

	// Identifies the form to which the element belongs.
	Form(format string, v ...any) HTMLSelect

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLSelect

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLSelect

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLSelect

	// Allows users to input multiple values.
	Multiple(v bool) HTMLSelect

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLSelect

	// Indicates that the element must contain a value before form submission.
	Required(v bool) HTMLSelect

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLSelect

	// Indicates the width of the element, usually in characters for input elements.
	Size(v int) HTMLSelect

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLSelect

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLSelect

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLSelect

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLSelect

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLSelect

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLSelect

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLSelect

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLSelect

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLSelect

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLSelect
}

The interface that represents a "select" HTML element.

func Select

func Select() HTMLSelect

Returns an HTML element that creates a drop-down list or list box for form input.

type HTMLSmall

type HTMLSmall interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLSmall

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLSmall

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLSmall

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLSmall

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLSmall

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLSmall

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLSmall

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLSmall

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLSmall

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLSmall

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLSmall

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLSmall

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLSmall

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLSmall

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLSmall

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLSmall

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLSmall

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLSmall

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLSmall

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLSmall

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLSmall

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLSmall

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLSmall

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLSmall

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLSmall

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLSmall
}

The interface that represents a "small" HTML element.

func Small

func Small() HTMLSmall

Returns an HTML element that displays text in a smaller font, typically for side comments or legal disclaimers.

type HTMLSource

type HTMLSource interface {
	HTML

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLSource

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLSource

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLSource

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLSource

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLSource

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLSource

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLSource

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLSource

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLSource

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLSource

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLSource

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLSource

	// Indicates the intended media or device for the linked document.
	Media(format string, v ...any) HTMLSource

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLSource

	// Specifies sizes of icons and images for different page or screen scenarios. Uses the given format and values.
	Sizes(format string, v ...any) HTMLSource

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLSource

	// Provides the URL source of embedded content or media. Uses the given format and values.
	Src(format string, v ...any) HTMLSource

	// Provides URLs of images to display in varied resolutions or viewport conditions. Uses the given format and values.
	SrcSet(format string, v ...any) HTMLSource

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLSource

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLSource

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLSource

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLSource

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLSource

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLSource

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLSource

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLSource

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLSource

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLSource

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLSource

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLSource

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLSource

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLSource

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLSource

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLSource

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLSource

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLSource

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLSource

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLSource
}

The interface that represents a "source" HTML element.

func Source

func Source() HTMLSource

Returns an HTML element that specifies multiple media resources for elements like <picture>, <audio>, and <video>.

type HTMLSpan

type HTMLSpan interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLSpan

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLSpan

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLSpan

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLSpan

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLSpan

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLSpan

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLSpan

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLSpan

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLSpan

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLSpan

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLSpan

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLSpan

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLSpan

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLSpan

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLSpan

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLSpan

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLSpan

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLSpan

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLSpan

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLSpan

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLSpan

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLSpan

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLSpan

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLSpan

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLSpan

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLSpan
}

The interface that represents a "span" HTML element.

func Span

func Span() HTMLSpan

Returns an HTML element that provides a way to style a specific part of the text or to group inline-elements.

type HTMLStrong

type HTMLStrong interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLStrong

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLStrong

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLStrong

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLStrong

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLStrong

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLStrong

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLStrong

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLStrong

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLStrong

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLStrong

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLStrong

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLStrong

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLStrong

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLStrong

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLStrong

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLStrong

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLStrong

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLStrong

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLStrong

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLStrong

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLStrong

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLStrong

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLStrong

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLStrong

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLStrong

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLStrong
}

The interface that represents a "strong" HTML element.

func Strong

func Strong() HTMLStrong

Returns an HTML element that emphasizes text as important, typically displayed as bold.

type HTMLStyle

type HTMLStyle interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLStyle

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLStyle

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLStyle

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLStyle

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLStyle

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLStyle

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLStyle

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLStyle

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLStyle

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLStyle

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLStyle

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLStyle

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLStyle

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLStyle

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLStyle

	// Indicates the intended media or device for the linked document.
	Media(format string, v ...any) HTMLStyle

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLStyle

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLStyle

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLStyle

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLStyle

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLStyle

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLStyle

	// Designates the type of the element or its content. Can be called with specific format and values.
	Type(format string, v ...any) HTMLStyle

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLStyle

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the specified handler once the element has completely loaded.
	OnLoad(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLStyle

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLStyle

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLStyle

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLStyle
}

The interface that represents a "style" HTML element.

func Style

func Style() HTMLStyle

Returns an HTML element that contains style information or references for a document.

type HTMLSub

type HTMLSub interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLSub

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLSub

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLSub

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLSub

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLSub

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLSub

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLSub

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLSub

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLSub

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLSub

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLSub

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLSub

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLSub

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLSub

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLSub

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLSub

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLSub

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLSub

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLSub

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLSub

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLSub

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLSub

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLSub

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLSub

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLSub

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLSub

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLSub

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLSub

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLSub

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLSub

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLSub

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLSub

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLSub

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLSub

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLSub

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLSub
}

The interface that represents a "sub" HTML element.

func Sub

func Sub() HTMLSub

Returns an HTML element that represents subscripted text, typically displayed lower and smaller than the main text.

type HTMLSummary

type HTMLSummary interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLSummary

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLSummary

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLSummary

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLSummary

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLSummary

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLSummary

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLSummary

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLSummary

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLSummary

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLSummary

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLSummary

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLSummary

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLSummary

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLSummary

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLSummary

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLSummary

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLSummary

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLSummary

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLSummary

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLSummary

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLSummary

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLSummary

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLSummary

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLSummary

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLSummary

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLSummary
}

The interface that represents a "summary" HTML element.

func Summary

func Summary() HTMLSummary

Returns an HTML element that provides a visible heading or label for a <details> element's content.

type HTMLSup

type HTMLSup interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLSup

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLSup

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLSup

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLSup

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLSup

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLSup

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLSup

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLSup

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLSup

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLSup

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLSup

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLSup

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLSup

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLSup

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLSup

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLSup

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLSup

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLSup

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLSup

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLSup

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLSup

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLSup

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLSup

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLSup

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLSup

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLSup

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLSup

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLSup

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLSup

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLSup

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLSup

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLSup

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLSup

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLSup

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLSup

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLSup
}

The interface that represents a "sup" HTML element.

func Sup

func Sup() HTMLSup

Returns an HTML element that represents superscripted text, typically displayed higher and smaller than the main text.

type HTMLTBody

type HTMLTBody interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTBody

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTBody

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTBody

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTBody

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTBody

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTBody

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTBody

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTBody

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTBody

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTBody

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTBody

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTBody

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTBody

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTBody

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTBody

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTBody

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTBody

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTBody

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTBody

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTBody

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTBody

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTBody

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLTBody

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLTBody

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLTBody

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLTBody
}

The interface that represents a "tbody" HTML element.

func TBody

func TBody() HTMLTBody

Returns an HTML element that groups the main content rows in a table.

type HTMLTFoot

type HTMLTFoot interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTFoot

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTFoot

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTFoot

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTFoot

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTFoot

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTFoot

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTFoot

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTFoot

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTFoot

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTFoot

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTFoot

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTFoot

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTFoot

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTFoot

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTFoot

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTFoot

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTFoot

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTFoot

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTFoot

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTFoot

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTFoot

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLTFoot

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLTFoot

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLTFoot

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLTFoot
}

The interface that represents a "tfoot" HTML element.

func TFoot

func TFoot() HTMLTFoot

Returns an HTML element that groups the footer rows in a table.

type HTMLTHead

type HTMLTHead interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTHead

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTHead

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTHead

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTHead

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTHead

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTHead

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTHead

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTHead

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTHead

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTHead

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTHead

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTHead

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTHead

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTHead

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTHead

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTHead

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTHead

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTHead

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTHead

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTHead

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTHead

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTHead

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLTHead

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLTHead

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLTHead

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLTHead
}

The interface that represents a "thead" HTML element.

func THead

func THead() HTMLTHead

Returns an HTML element that groups the header rows in a table.

type HTMLTable

type HTMLTable interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTable

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTable

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTable

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTable

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTable

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTable

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTable

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTable

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTable

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTable

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTable

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTable

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTable

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTable

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTable

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTable

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTable

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTable

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTable

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTable

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTable

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTable

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLTable

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLTable

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLTable

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLTable

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLTable

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLTable

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLTable

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLTable

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLTable

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLTable

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLTable

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLTable

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLTable

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLTable
}

The interface that represents a "table" HTML element.

func Table

func Table() HTMLTable

Returns an HTML element that represents a table structure.

type HTMLTd

type HTMLTd interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTd

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTd

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTd

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTd

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTd

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTd

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTd

	// Denotes how many columns a table cell should span across, allowing cells to occupy space of multiple columns.
	ColSpan(v int) HTMLTd

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTd

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTd

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTd

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTd

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTd

	// Designates one or more header cells to which a table cell is related.
	Headers(format string, v ...any) HTMLTd

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTd

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTd

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTd

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTd

	// Determines how many rows a table cell will span vertically.
	Rowspan(v int) HTMLTd

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTd

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTd

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTd

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTd

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTd

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTd

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLTd

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLTd

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLTd

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLTd

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLTd

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLTd

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLTd

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLTd

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLTd

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLTd

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLTd

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLTd

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLTd

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLTd
}

The interface that represents a "td" HTML element.

func Td

func Td() HTMLTd

Returns an HTML element that represents a data cell in a table.

type HTMLTemplate

type HTMLTemplate interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTemplate

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTemplate

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTemplate

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTemplate

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTemplate

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTemplate

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTemplate

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTemplate

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTemplate

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTemplate

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTemplate

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTemplate

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTemplate

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTemplate

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTemplate

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTemplate

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTemplate

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTemplate

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTemplate

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTemplate

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTemplate

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTemplate
}

The interface that represents a "template" HTML element.

func Template

func Template() HTMLTemplate

Returns an HTML element that holds client-side content templates for dynamic rendering.

type HTMLTextarea

type HTMLTextarea interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTextarea

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTextarea

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTextarea

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTextarea

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTextarea

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTextarea

	// Instructs the browser to focus this element automatically when the page loads.
	AutoFocus(v bool) HTMLTextarea

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTextarea

	// Defines the visible width, in character widths, of a text area element.
	Cols(v int) HTMLTextarea

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTextarea

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTextarea

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTextarea

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTextarea

	// Instructs the browser to also submit the text direction of a form field when the form is submitted.
	DirName(format string, v ...any) HTMLTextarea

	// Deactivates an element, rendering it uninteractive and visually distinct.
	Disabled(v bool) HTMLTextarea

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTextarea

	// Identifies the form to which the element belongs.
	Form(format string, v ...any) HTMLTextarea

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTextarea

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTextarea

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTextarea

	// Defines the maximum number of characters permissible in an element.
	MaxLength(v int) HTMLTextarea

	// Assigns a name to the element.
	Name(format string, v ...any) HTMLTextarea

	// Provides a brief hint describing the expected value of the element.
	Placeholder(format string, v ...any) HTMLTextarea

	// Indicates that the element's value cannot be edited by the user.
	ReadOnly(v bool) HTMLTextarea

	// Indicates that the element must contain a value before form submission.
	Required(v bool) HTMLTextarea

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTextarea

	// Sets the number of visible lines in a textarea element.
	Rows(v int) HTMLTextarea

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTextarea

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTextarea

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTextarea

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTextarea

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTextarea

	// Determines how the text inside a text area is wrapped when submitted in a form. Can be called with specific format and values.
	Wrap(format string, v ...any) HTMLTextarea

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLTextarea

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLTextarea

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLTextarea

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLTextarea
}

The interface that represents a "textarea" HTML element.

func Textarea

func Textarea() HTMLTextarea

Returns an HTML element that provides a multiline text input control.

type HTMLTh

type HTMLTh interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTh

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTh

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTh

	// Denotes abbreviated content for header cells to provide clarity on shortened terms.
	Abbr(format string, v ...any) HTMLTh

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTh

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTh

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTh

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTh

	// Denotes how many columns a table cell should span across, allowing cells to occupy space of multiple columns.
	ColSpan(v int) HTMLTh

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTh

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTh

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTh

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTh

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTh

	// Designates one or more header cells to which a table cell is related.
	Headers(format string, v ...any) HTMLTh

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTh

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTh

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTh

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTh

	// Determines how many rows a table cell will span vertically.
	Rowspan(v int) HTMLTh

	// Defines the set of cells a header cell provides header information for. Uses the given format and values.
	Scope(format string, v ...any) HTMLTh

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTh

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTh

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTh

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTh

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTh

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTh

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLTh

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLTh

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLTh

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLTh

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLTh

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLTh

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLTh

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLTh

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLTh

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLTh

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLTh

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLTh

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLTh

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLTh
}

The interface that represents a "th" HTML element.

func Th

func Th() HTMLTh

Returns an HTML element that represents a header cell in a table.

type HTMLTime

type HTMLTime interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTime

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTime

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTime

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTime

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTime

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTime

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTime

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTime

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTime

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTime

	// Represents the date and time, often used in context with machine-readable equivalents of time-related content.
	DateTime(format string, v ...any) HTMLTime

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTime

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTime

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTime

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTime

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTime

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTime

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTime

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTime

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTime

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTime

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTime

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTime

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLTime

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLTime

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLTime

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLTime

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLTime

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLTime

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLTime

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLTime

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLTime

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLTime

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLTime

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLTime

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLTime

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLTime
}

The interface that represents a "time" HTML element.

func Time

func Time() HTMLTime

Returns an HTML element that represents a specific period or a single point in time.

type HTMLTitle

type HTMLTitle interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTitle

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTitle

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTitle

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTitle

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTitle

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTitle

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTitle

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTitle

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTitle

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTitle

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTitle

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTitle

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTitle

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTitle

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTitle

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTitle

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTitle

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTitle

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTitle

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTitle

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTitle

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTitle
}

The interface that represents a "title" HTML element.

func Title

func Title() HTMLTitle

Returns an HTML element that specifies the title of the document, shown in the browser's title bar or tab.

type HTMLTr

type HTMLTr interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLTr

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLTr

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLTr

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLTr

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLTr

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLTr

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLTr

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLTr

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLTr

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLTr

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLTr

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLTr

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLTr

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLTr

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLTr

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLTr

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLTr

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLTr

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLTr

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLTr

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLTr

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLTr

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLTr

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLTr

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLTr

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLTr

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLTr

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLTr

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLTr

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLTr

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLTr

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLTr

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLTr

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLTr

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLTr

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLTr
}

The interface that represents a "tr" HTML element.

func Tr

func Tr() HTMLTr

Returns an HTML element that represents a row of cells in a table.

type HTMLU

type HTMLU interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLU

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLU

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLU

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLU

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLU

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLU

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLU

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLU

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLU

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLU

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLU

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLU

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLU

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLU

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLU

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLU

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLU

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLU

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLU

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLU

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLU

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLU

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLU

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLU

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLU

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLU

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLU

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLU

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLU

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLU

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLU

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLU

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLU

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLU

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLU

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLU

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLU

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLU

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLU

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLU

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLU

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLU

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLU

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLU

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLU

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLU

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLU

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLU

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLU

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLU

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLU

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLU

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLU

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLU

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLU

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLU
}

The interface that represents a "u" HTML element.

func U

func U() HTMLU

Returns an HTML element that renders text with an underline, typically indicating misspelled text or proper names in Chinese text.

type HTMLUl

type HTMLUl interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLUl

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLUl

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLUl

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLUl

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLUl

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLUl

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLUl

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLUl

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLUl

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLUl

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLUl

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLUl

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLUl

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLUl

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLUl

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLUl

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLUl

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLUl

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLUl

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLUl

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLUl

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLUl

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLUl

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLUl

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLUl

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLUl

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLUl

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLUl

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLUl

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLUl

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLUl

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLUl

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLUl

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLUl

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLUl

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLUl
}

The interface that represents a "ul" HTML element.

func Ul

func Ul() HTMLUl

Returns an HTML element that represents an unordered list of items.

type HTMLVar

type HTMLVar interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLVar

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLVar

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLVar

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLVar

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLVar

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLVar

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLVar

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLVar

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLVar

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLVar

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLVar

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLVar

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLVar

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLVar

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLVar

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLVar

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLVar

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLVar

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLVar

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLVar

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLVar

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLVar

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLVar

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLVar

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLVar

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLVar

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLVar

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLVar

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLVar

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLVar

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLVar

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLVar

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLVar

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLVar

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLVar

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLVar
}

The interface that represents a "var" HTML element.

func Var

func Var() HTMLVar

Returns an HTML element that displays a name of a variable, typically shown in an italic typeface.

type HTMLVideo

type HTMLVideo interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLVideo

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLVideo

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLVideo

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLVideo

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLVideo

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLVideo

	// Automatically plays audio or video elements once they're ready, enhancing media responsiveness.
	AutoPlay(v bool) HTMLVideo

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLVideo

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLVideo

	// Indicates the presence of user interface controls for audio or video elements, such as play or pause buttons.
	Controls(v bool) HTMLVideo

	// Controls how cross-origin requests are managed for the element, supporting secure content integration from different origins.
	CrossOrigin(format string, v ...any) HTMLVideo

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLVideo

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLVideo

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLVideo

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLVideo

	// Sets the height of the element, measured in pixels.
	Height(v int) HTMLVideo

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLVideo

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLVideo

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLVideo

	// Indicates that the audio or video should replay from the beginning upon reaching its end.
	Loop(v bool) HTMLVideo

	// Ensures that the video's audio playback is muted.
	Muted(v bool) HTMLVideo

	// Sets an image displayed before a video starts playing or while it's loading.
	Poster(format string, v ...any) HTMLVideo

	// Indicates the preferred loading method for audio/video upon page load.
	Preload(format string, v ...any) HTMLVideo

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLVideo

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLVideo

	// Provides the URL source of embedded content or media. Uses the given format and values.
	Src(format string, v ...any) HTMLVideo

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLVideo

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLVideo

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLVideo

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLVideo

	// Sets the width of the element.
	Width(v int) HTMLVideo

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler when media loading is aborted.
	OnAbort(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler when media has buffered sufficiently to begin playback.
	OnCanPlay(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler when media can be played through without buffering interruptions.
	OnCanPlayThrough(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler upon cue changes within a track element.
	OnCueChange(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler when the media's duration changes.
	OnDurationChange(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler when media unexpectedly becomes unavailable.
	OnEmptied(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler when media playback reaches the end.
	OnEnded(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the given handler when an error is encountered.
	OnError(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler when media loading commences.
	OnLoadStart(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler as media data finishes loading.
	OnLoadedData(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler when metadata (like duration and dimensions) are fully loaded.
	OnLoadedMetaData(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler when media playback is paused.
	OnPause(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler when media starts its playback.
	OnPlay(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler once the media has initiated playback.
	OnPlaying(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler while the browser fetches media data.
	OnProgress(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler when playback rate changes (e.g., slow motion or fast forward).
	OnRateChange(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler post seeking completion.
	OnSeeked(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler during the seeking process.
	OnSeeking(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler when media data fetching stalls.
	OnStalled(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler when media data fetching is suspended.
	OnSuspend(h EventHandler, options ...EventOption) HTMLVideo

	// Executes the handler when the media's playback position changes.
	OnTimeUpdate(h EventHandler, options ...EventOption) HTMLVideo

	// Invokes the handler upon volume changes or muting.
	OnVolumeChange(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the handler when media pauses, awaiting further buffering.
	OnWaiting(h EventHandler, options ...EventOption) HTMLVideo

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLVideo
}

The interface that represents a "video" HTML element.

func Video

func Video() HTMLVideo

Returns an HTML element that embeds video content, allowing for playback of video files or streams.

type HTMLWbr

type HTMLWbr interface {
	HTML

	// Sets the content of the element.
	Body(elems ...UI) HTMLWbr

	// Sets the content of the element with a text node containing the stringified given value.
	Text(v any) HTMLWbr

	// Sets the content of the element with a text node formatted according to a format specifier.
	Textf(format string, v ...any) HTMLWbr

	// Assigns a keyboard shortcut for quick element activation or focus, enhancing user experience.
	AccessKey(format string, v ...any) HTMLWbr

	// Allocates ARIA roles and properties to the element to enhance accessibility for users with disabilities. Can be called multiple times to assign various roles and properties.
	Aria(k string, v any) HTMLWbr

	// Sets an attribute with its associated value, allowing for flexible HTML customization.
	Attr(n string, v any) HTMLWbr

	// Assigns one or more classnames to an element, linking it to styles defined in a stylesheet. Can be called multiple times to assign multiple classnames.
	Class(v ...string) HTMLWbr

	// Determines if the content of an element is editable by the user, allowing for in-page content modification.
	ContentEditable(v bool) HTMLWbr

	// Allows for storage of custom data specific to individual elements. Can be called multiple times to store multiple sets of data, often used for scripting purposes.
	DataSet(k string, v any) HTMLWbr

	// Denotes datasets linked to an element and can store multiple sets of data.
	DataSets(ds map[string]any) HTMLWbr

	// Defines the text direction for the content within an element, such as 'ltr' (left-to-right) or 'rtl' (right-to-left).
	Dir(format string, v ...any) HTMLWbr

	// Specifies if an element can be dragged by the user, supporting drag-and-drop operations.
	Draggable(v bool) HTMLWbr

	// Marks an element as currently irrelevant or not yet relevant.
	Hidden(v bool) HTMLWbr

	// Assigns a unique identifier to an element.
	ID(format string, v ...any) HTMLWbr

	// Declares the language of the element's content.
	Lang(format string, v ...any) HTMLWbr

	// Communicates the intended function or meaning of an element to assistive technologies.
	Role(format string, v ...any) HTMLWbr

	// Indicates whether the element's content is subject to spell and grammar checks.
	Spellcheck(v bool) HTMLWbr

	// Assigns inline CSS styling to an element. Can be called multiple times to set multiple CSS styles.
	Style(k, format string, v ...any) HTMLWbr

	// Allocates multiple CSS styles to an element. Accepts multiple styling definitions.
	Styles(s map[string]string) HTMLWbr

	// Determines the tabbing sequence of an element within the document navigation.
	TabIndex(v int) HTMLWbr

	// Provides additional information about an element, typically displayed as a tooltip. Can be called with the desired title format and content.
	Title(format string, v ...any) HTMLWbr

	// Invokes the specified handler when the corresponding event is triggered.
	On(event string, h EventHandler, options ...EventOption) HTMLWbr

	// Executes the given handler when the element loses focus.
	OnBlur(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the specified handler when the element's value changes.
	OnChange(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the specified handler upon a mouse click on the element.
	OnClick(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the provided handler upon activation of a context menu.
	OnContextMenu(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the handler when content of an element is copied by the user.
	OnCopy(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the handler when the user cuts content from an element.
	OnCut(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the provided handler when the element is double-clicked by the mouse.
	OnDblClick(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the handler as an element is being dragged.
	OnDrag(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the handler at the conclusion of a drag operation.
	OnDragEnd(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the handler when an element is dragged onto a valid drop target.
	OnDragEnter(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the handler when an element exits a valid drop target.
	OnDragLeave(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the handler as an element is dragged over a valid drop target.
	OnDragOver(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the handler at the initiation of a drag operation.
	OnDragStart(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the handler when a dragged element is released onto a drop target.
	OnDrop(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the given handler when the element receives focus.
	OnFocus(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the specified handler when the element receives user input.
	OnInput(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the provided handler when the element is determined to be invalid.
	OnInvalid(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the specified handler when a user starts pressing a key.
	OnKeyDown(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the provided handler as a key is pressed by the user.
	OnKeyPress(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the given handler when a user releases a key.
	OnKeyUp(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the given handler as a mouse button is pressed on the element.
	OnMouseDown(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the specified handler when the mouse pointer first enters the element's boundaries.
	OnMouseEnter(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the provided handler when the mouse pointer leaves the element and its descendants.
	OnMouseLeave(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the given handler as the mouse pointer moves across the element.
	OnMouseMove(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the specified handler when the mouse pointer exits the element.
	OnMouseOut(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the provided handler as the mouse pointer hovers over the element.
	OnMouseOver(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the given handler when a mouse button is released above the element.
	OnMouseUp(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the handler as content is pasted into an element by the user.
	OnPaste(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the given handler upon clicking the Reset button within a form.
	OnReset(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the handler as an element's scrollbar is scrolled.
	OnScroll(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the specified handler when input is provided in a search field.
	OnSearch(h EventHandler, options ...EventOption) HTMLWbr

	// Invokes the provided handler after text within the element is selected.
	OnSelect(h EventHandler, options ...EventOption) HTMLWbr

	// Executes the given handler when the form undergoes submission.
	OnSubmit(h EventHandler, options ...EventOption) HTMLWbr

	// Triggers the specified handler as the mouse wheel scrolls over the element.
	OnWheel(h EventHandler, options ...EventOption) HTMLWbr
}

The interface that represents a "wbr" HTML element.

func Wbr

func Wbr() HTMLWbr

Returns an HTML element that suggests an optimal position for a line break within text.

type Handler

type Handler struct {
	// Name specifies the display name of the web app, used where space permits.
	Name string

	// ShortName is an abbreviated app name for limited display areas.
	ShortName string

	// Icon represents the app icon used for PWA, favicon, and the default
	// "not found" component. Attributes like crossorigin can be appended after
	// a space.
	Icon Icon

	// BackgroundColor sets a placeholder background color for the app page
	// before stylesheets load. Defaults to "#2d2c2c".
	BackgroundColor string

	// ThemeColor specifies the app's theme color, affecting OS-level UI elements
	// like the PWA title bar. Defaults to "#2d2c2c".
	ThemeColor string

	// LoadingLabel shows text during page load, with "{progress}" for progress.
	// Defaults to "{progress}%".
	LoadingLabel string

	// Lang defines the primary language of the app page. Defaults to "en".
	Lang string

	// Libraries are custom libraries to load with the page.
	Libraries []Library

	// Title sets the title of the app page.
	Title string

	// Description provides a summary of the page's content, used as default
	// meta description and og:description.
	Description string

	// Domain specifies the domain name for resolving page metadata like
	// 'og:url'.
	Domain string

	// Author lists the authors of the page.
	Author string

	// Keywords are words or phrases associated with the page.
	Keywords []string

	// Image specifies the default image path used by social networks.
	// Attributes like crossorigin can be appended after a space.
	Image string

	// Styles lists CSS files for the page, supporting local and external
	// resources. Attributes like crossorigin can be appended after a space.
	Styles []string

	// Fonts lists font files to preload, improving performance and visual
	// readiness. Attributes like crossorigin can be appended after a space.
	Fonts []string

	// Scripts lists JavaScript files for the page. Attributes like crossorigin,
	// async, and defer can be appended, separated with a space.
	Scripts []string

	// CacheableResources specifies extra static resources to cache for offline
	// access. Icon, Styles and Scripts are already cached by default.
	// Attributes like crossorigin can be appended after a space.
	CacheableResources []string

	// RawHeaders contains extra HTML headers for the page's <head> section.
	RawHeaders []string

	// HTML returns the page's HTML element. Defaults to app.Html().
	HTML func() HTMLHtml

	// Body returns the page's body element. Defaults to app.Body().
	Body func() HTMLBody

	// Env passes environment variables to the PWA. Note: Reserved keys
	// (GOAPP_VERSION, GOAPP_GOAPP_STATIC_RESOURCES_URL) cannot be
	// overridden and are used for internal configuration.
	Env map[string]string

	// InternalURLs lists URLs to open within the app, overriding default behavior
	// for external domains.
	InternalURLs []string

	// Preconnect specifies origins to preconnect to, speeding up future loads.
	// Attributes like crossorigin can be appended after a space.
	Preconnect []string

	// ProxyResources maps custom paths to static resources. /robots.txt,
	// /sitemap.xml, and /ads.txt, which are proxied by default.
	ProxyResources []ProxyResource

	// Resources resolves paths for static resources, specifically handling
	// paths prefixed with "/web/". Defaults to app.LocalDir("").
	Resources ResourceResolver

	// Version defines the app's version. It's crucial for determining if an
	// update is available. Must be set in live environments to avoid recurring
	// updates. Auto-generated by default for local development updates.
	Version string

	// WasmContentLength indicates the byte length of the WASM file for progress
	// calculation. Falls back to WasmContentLengthHeader if unset.
	WasmContentLength string

	// WasmContentLengthHeader specifies the HTTP header for the WASM file's
	// content length. Defaults to "Content-Length".
	WasmContentLengthHeader string

	// ServiceWorkerTemplate defines the app-worker.js template, defaulting
	// to DefaultAppWorkerJS. Modifications are discouraged to avoid potential
	// issues with go-app functionality.
	ServiceWorkerTemplate string
	// contains filtered or unexported fields
}

Handler configures an HTTP handler to serve HTML pages that initialize a Go WebAssembly (WASM) application along with its resources. It includes configurations for PWA features, offline support, auto-update, and more.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Icon

type Icon struct {
	// Default specifies the path or URL to a square image/png file with a
	// dimension of 192x192 pixels. Represents the standard application icon.
	Default string

	// Large indicates the path or URL to a larger square image/png file,
	// required to be 512x512 pixels. Used for high-resolution displays.
	Large string

	// SVG specifies the path or URL to an SVG file, providing vector-based
	// imagery for scalable application icons. Ideal for responsive design.
	SVG string

	// Maskable specifies the path or URL to an adaptive icon designed for various
	// operating system shapes. This icon must be a PNG image with 192x192 pixels.
	//
	// Used in PWA manifests and as meta tags for Apple browsers, these icons adapt
	// to device or browser shape requirements, avoiding unsightly cropping.
	//
	// To convert existing icons to a maskable format, visit
	// https://maskable.app/editor. This tool simplifies creating icons that meet
	// maskable specifications.
	//
	// If not specified, Icon.Default is used as a fallback. Specifying a maskable
	// icon enhances user experience on platforms supporting adaptive icons.
	Maskable string
}

Icon represents a square image utilized in various contexts, such as the application icon, favicon, and loading icon. Paths specified for icons are relative to the root directory unless stated otherwise.

type Initializer

type Initializer interface {
	// OnInit is invoked before the component is mounted.
	OnInit()
}

Initializer describes a component that requires initialization instructions to be executed before it is mounted.

type Library

type Library interface {
	// Returns the styles and its path. The styles must be a standard
	// CSS code.
	Styles() (path, styles string)
}

The interface that describes a library that contains custom components.

type Mounter

type Mounter interface {
	// OnMount is triggered right after the component is embedded into the DOM.
	// Use this hook to perform any post-render configurations or
	// initializations.
	// This method operates within the UI goroutine.
	OnMount(Context)
}

Mounter represents components that require initialization or setup actions when they are integrated into the DOM. By implementing the Mounter interface, components gain the ability to define specific behaviors that occur right after they are visually rendered or integrated into the DOM hierarchy.

type Navigator interface {
	// OnNav is invoked when the component becomes the navigation target.
	// Use this method to handle actions or setups related to navigation events.
	// This function is always executed within the UI goroutine.
	OnNav(Context)
}

Navigator characterizes components that need to perform specific actions or initializations when they become the target of navigation. By adopting the Navigator interface, components can specify behaviors to be executed when they are navigated to within the application.

type Notification

type Notification struct {
	// The title displayed prominently at the top of the notification.
	Title string `json:"title"`

	// Path is the URL to navigate to upon clicking the notification.
	Path string `json:"path"`

	// Lang specifies the notification's language, using ISO 2-letter codes.
	// See: https://www.sitepoint.com/iso-2-letter-language-codes
	Lang string `json:"lang,omitempty"`

	// Badge is the URL of an image to represent the notification when space
	// is limited.
	Badge string `json:"badge,omitempty"`

	// Body is the main content, displayed below the title.
	Body string `json:"body,omitempty"`

	// Tag provides a unique identifier for the notification.
	Tag string `json:"tag,omitempty"`

	// Icon is the URL of an icon shown in the notification.
	Icon string `json:"icon,omitempty"`

	// Image is the URL of an image displayed in the notification.
	Image string `json:"image,omitempty"`

	// Data contains arbitrary data associated with the notification.
	// Note: "goapp" key is reserved for go-app data.
	Data map[string]any `json:"data"`

	// Renotify determines if the user should be notified when a new
	// notification replaces an existing one.
	Renotify bool `json:"renotify,omitempty"`

	// RequireInteraction ensures the notification remains active until
	// the user acts on it, not closing automatically.
	RequireInteraction bool `json:"requireInteraction,omitempty"`

	// Silent specifies if the notification should be silent, suppressing
	// all sounds and vibrations, regardless of device settings.
	Silent bool `json:"silent,omitempty"`

	// Vibrate defines a vibration pattern for the device upon notification.
	// See: https://developer.mozilla.org/en-US/docs/Web/API/Vibration_API
	Vibrate []int `json:"vibrate,omitempty"`

	// Actions lists the available actions displayed within the notification.
	Actions []NotificationAction `json:"actions,omitempty"`
}

Notification represents a user notification.

type NotificationAction

type NotificationAction struct {
	// Action is the unique ID associated with the user's action on
	// the notification.
	Action string `json:"action"`

	// Title is the descriptive text shown alongside the action.
	Title string `json:"title"`

	// Icon is the URL of an image to represent the action.
	Icon string `json:"icon,omitempty"`

	// Path is the URL to navigate to upon clicking the action.
	Path string `json:"path"`
}

NotificationAction represents an actionable item within a notification.

type NotificationPermission

type NotificationPermission string

NotificationPermission represents permission levels for displaying notifications to users.

const (
	// NotificationDefault indicates the user's choice for notifications is
	// unknown, prompting the browser to treat it as "denied".
	NotificationDefault NotificationPermission = "default"

	// NotificationGranted means the user has allowed notifications.
	NotificationGranted NotificationPermission = "granted"

	// NotificationDenied means the user has declined notifications.
	NotificationDenied NotificationPermission = "denied"

	// NotificationNotSupported indicates that the browser doesn't support
	// notifications.
	NotificationNotSupported NotificationPermission = "unsupported"
)

type NotificationService

type NotificationService struct{}

NotificationService provides functionalities related to user notifications.

func (NotificationService) New

New creates and displays a notification to the user.

func (NotificationService) Permission

Permission retrieves the current notification permission status.

func (NotificationService) RequestPermission

func (s NotificationService) RequestPermission() NotificationPermission

RequestPermission prompts the user for permission to display notifications.

func (NotificationService) Subscribe

func (s NotificationService) Subscribe(vapIDPublicKey string) (NotificationSubscription, error)

Subscribe retrieves a notification subscription using the provided VAPID public key. If the key is empty or push notifications aren't supported, an error is returned.

type NotificationSubscription

type NotificationSubscription struct {
	// Endpoint is the push service endpoint URL.
	Endpoint string `json:"endpoint"`

	// Keys contains cryptographic keys used for the subscription.
	Keys struct {
		// Auth is the authentication secret.
		Auth string `json:"auth"`

		// P256dh is the user's public key, associated with the push
		// subscription.
		P256dh string `json:"p256dh"`
	} `json:"keys"`
}

NotificationSubscription encapsulates a PushSubscription from the Push API.

type Observer

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

Observer represents a mechanism to monitor and react to changes in a state.

func (Observer) OnChange

func (o Observer) OnChange(h func()) Observer

OnChange sets a callback function to be executed each time the observer detects a change in the associated state value.

func (Observer) While

func (o Observer) While(condition func() bool) Observer

While sets a condition for the observer, determining whether it observes a state. The condition is periodically checked. Observation stops when the condition returns false.

func (Observer) WithBroadcast

func (o Observer) WithBroadcast() Observer

WithBroadcast enables the observer to listen to state changes that are broadcasted by other browser tabs or windows. This is useful for s ynchronizing state across multiple open instances of a web application within the same browser.

Calling WithBroadcast creates a BroadcastChannel, which prevents the page from being cached. This may impact the Chrome Lighthouse performance score due to the additional resources required to manage the broadcast channel.

type 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)
}

Page is the interface that describes a web page.

type PreRenderer

type PreRenderer interface {
	// OnPreRender is called during the server-side rendering process of the
	// component.
	OnPreRender(Context)
}

PreRenderer is the interface that describes a component that performs additional instructions during server-side rendering.

Implementing OnPreRender within a component can enhance SEO by allowing server-side preparations for rendering.

type Preload

type Preload struct {
	Type          string
	As            string
	Href          string
	FetchPriority string
}

type ProxyResource

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
}

ProxyResource is a proxy descriptor that maps a given resource to an URL path.

type RangeLoop

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
	// contains filtered or unexported methods
}

RangeLoop represents a control structure that iterates within a slice, an array or a map.

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

type Resizer interface {
	// OnResize is called whenever the application experiences a change in size.
	// Components can use this method to make appropriate adjustments,
	// recalculations, or layout shifts in response to the modified dimensions.
	// Note: This method operates exclusively within the UI goroutine context.
	OnResize(Context)
}

Resizer identifies components that respond to size alterations within the application. These components can dynamically adjust to diverse size scenarios, ensuring they maintain both a visually appealing and functional display.

type ResourceResolver

type ResourceResolver interface {
	// Resolve takes a resource path and returns its resolved URL or file path.
	Resolve(string) string
}

ResourceResolver is an interface that defines the method to resolve resources from /web/ path to its full URL or file location.

func GitHubPages

func GitHubPages(repositoryName string) ResourceResolver

GitHubPages returns a ResourceResolver tailored for serving resources from a GitHub Pages site. It creates a resolver with a prefix matching the given repository name. This is particularly useful when hosting a go-app project on GitHub Pages, where resources need to be served from a repository-specific subpath.

For example, if the repository name is "myapp", the resources will be served from paths starting with "/myapp/web/".

func LocalDir

func LocalDir(directory string) ResourceResolver

LocalDir returns a ResourceResolver for local resources. It resolves paths starting with /web/ to their full file path based on the specified local directory. This resolver is suitable for handling resources stored in the local filesystem.

func PrefixedLocation

func PrefixedLocation(prefix string) ResourceResolver

PrefixedLocation returns a ResourceResolver that resolves resources with a specified prefix. This resolver prepends the given prefix to resource paths, which is particularly useful when serving resources from a specific directory or URL path.

The prefix is added to the beginning of the resource path, effectively modifying the path from which the resources are served.

For example, if the prefix is "/assets", a resource path like "/web/main.css" will be resolved as "/assets/web/main.css".

func RemoteBucket

func RemoteBucket(url string) ResourceResolver

RemoteBucket returns a ResourceResolver for remote resources. It resolves paths starting with /web/ to their full URL based on the specified remote URL, such as a cloud storage bucket. This resolver is ideal for resources hosted remotely.

type State

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

State represents a state with additional features such as expiration, persistence, and broadcasting capabilities.

func (State) Broadcast

func (s State) Broadcast() State

Broadcast signals that changes to the state will be broadcasted to other browser tabs and windows sharing the same origin when it is supported.

Using Broadcast creates a BroadcastChannel, which prevents the page from being cached. This may impact the Chrome Lighthouse performance score due to the additional resources required to manage the broadcast channel.

func (State) ExpiresAt

func (s State) ExpiresAt(v time.Time) State

ExpiresAt sets the exact expiration time for the state.

func (State) ExpiresIn

func (s State) ExpiresIn(v time.Duration) State

ExpiresIn sets the expiration time for the state by specifying a duration from the current time.

func (State) Persist

func (s State) Persist() State

Persist ensures the state is persisted into the local storage.

func (State) PersistWithEncryption

func (s State) PersistWithEncryption() State

PersistWithEncryption ensures the state is persisted into the local storage with encryption.

type Tag

type Tag struct {
	Name  string
	Value string
}

Tag is a key-value pair that adds context to an action.

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

type Tagger interface {
	// Returns a collection of tags.
	Tags() Tags
}

Tagger is the interface that describes a collection of tags that gives context to something.

type Tags

type Tags map[string]string

Tags represent key-value pairs that give context to what they are used with.

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 TestEngine

type TestEngine interface {
	// Load initializes the test engine with the specified component, preparing it
	// for unit testing. It returns an error if the component cannot be
	// integrated or if the engine fails to initialize properly.
	Load(Composer) error

	// ConsumeNext advances the test engine's state by processing the next
	// operation in the dispatch queue. It allows for fine-grained control over
	// the sequence of operations during unit testing.
	ConsumeNext()

	// ConsumeAll advances the test engine's state by executing all pending
	// dispatched, deferred, and asynchronous operations. This ensures that the
	// component's state is fully updated, allowing for accurate assertions and
	// verifications in test scenarios.
	ConsumeAll()
}

TestEngine encapsulates the methods required to load components and manage asynchronous events within a unit test environment. It simulates the UI engine's behavior, enabling comprehensive unit testing of UI components.

func NewTestEngine

func NewTestEngine() TestEngine

NewTestEngine creates and returns a new instance of test engine configured for unit testing.

type TestUIDescriptor

type TestUIDescriptor struct {
	// Path represents the sequence of child indices to navigate through the UI
	// tree to reach the element to be tested. An empty path implies the root.
	Path []int

	// Expected is the UI element that is expected to be found at the location
	// specified by Path. The comparison behavior varies depending on the type
	// of element; simple text elements are compared by text value, HTML
	// elements by attributes and event handlers, and components by the values
	// of their exported fields.
	Expected UI
}

TestUIDescriptor describes a UI element and its hierarchical location relative to parent elements for the purpose of testing.

type TwitterCard

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
}

A Twitter card: https://developer.twitter.com/en/docs/twitter-for-websites/cards

type Type

type Type int

Type represents the JavaScript type of a Value.

const (
	TypeUndefined Type = iota
	TypeNull
	TypeBoolean
	TypeNumber
	TypeString
	TypeSymbol
	TypeObject
	TypeFunction
)

Constants that enumerates the JavaScript types.

func (Type) String

func (t Type) String() string

type UI

type UI interface {
	// JSValue returns the javascript value linked to the element.
	JSValue() Value

	// Reports whether the element is mounted.
	Mounted() bool
	// contains filtered or unexported methods
}

UI is the interface that describes a user interface element such as components and HTML elements.

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 processes and returns a filtered list of the provided UI elements.

Specifically, it: - Interprets and removes selector elements such as Condition and RangeLoop. - Eliminates nil elements and nil pointers. - Flattens and includes the children of recognized selector elements.

This function is primarily intended for components that accept ui elements as variadic arguments or slice, such as the Body method of HTML elements.

func Raw

func Raw(v string) UI

Raw creates a UI element from the given raw HTML string. The raw HTML must have a single root element. If the root tag cannot be determined, it defaults to a div element.

Using Raw can be risky since there's no validation of the provided string content. Ensure that the content is safe and sanitized before use.

func Text

func Text(v any) UI

Text returns a UI element representing plain text, converting the provided value to its string representation.

func Textf

func Textf(format string, v ...any) UI

Textf returns a UI element representing formatted text. The format and values follow the conventions of fmt.Sprintf.

type Updater

type Updater interface {
	// OnUpdate is triggered whenever an exported field of the component gets
	// modified by its immediate parent component. This method is an opportunity
	// to handle related reactions or recalculations.
	// This function always runs within the UI goroutine context.
	OnUpdate(Context)
}

Updater encapsulates components that require specific behaviors or reactions when one of their exported fields is updated by the closest parent component. Implementing the Updater interface allows components to define responsive actions that should be executed whenever they are modified by a parent.

type Value

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
}

Value is the interface that represents a JavaScript value. On wasm architecture, it wraps the Value from https://golang.org/pkg/syscall/js/ package.

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

type Wrapper interface {
	JSValue() Value
}

Wrapper is implemented by types that are backed by a JavaScript value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL