html

package
v0.0.0-...-494aa7f Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: 0BSD Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Value

func Value(node Node) fmt.Formatter

Value returns a fmt.Formatter for the given element.

Types

type Abbreviation

type Abbreviation struct {
	ID   ID[Abbreviation] `html:" id=%q"`
	With Attributes       `html:"%v"`
	Tree Nodes            `html:">%v</abbr>"`
	// contains filtered or unexported fields
}

Abbreviation is the <abbr> HTML element. Use the [Attributes.Tooltip] to specify the full text for the abbreviation.

type Address

type Address struct {
	ID   ID[Address] `html:" id=%q"`
	With Attributes  `html:"%v"`
	Tree Nodes       `html:">%v</address>"`
	// contains filtered or unexported fields
}

Address is the <address> HTML element.

type Anchor

type Anchor struct {
	ID   ID[Anchor] `html:" id=%q"`
	With Attributes `html:"%v"`

	Link           url.String     `html:" href=%q"`
	LinkLanguage   string         `html:" hreflang=%q"`
	Ping           []url.String   `html:" ping=%q"`
	Download       string         `html:" download=%q"`
	ReferrerPolicy ReferrerPolicy `html:" referrerpolicy=%q"`
	Relationship   Relationship   `html:" rel=%q"`
	Target         Target         `html:" target=%q"`
	Type           media.Type     `html:" type=%q"`

	Tree Nodes `html:">%v</a>"`
	// contains filtered or unexported fields
}

Anchor is the <a> HTML element.

type Annotation

type Annotation struct {
	ID   ID[Annotation] `html:" id=%q"`
	With Attributes     `html:"%v"`
	Tree Nodes          `html:">%v</u>"`
	// contains filtered or unexported fields
}

Annotation is the <u> HTML element.

type Article

type Article struct {
	ID   ID[Article] `html:" id=%q"`
	With Attributes  `html:"%v"`
	Tree Nodes       `html:">%v</article>"`
	// contains filtered or unexported fields
}

Article is the <article> HTML element.

type Aside

type Aside struct {
	ID   ID[Aside]  `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</aside>"`
	// contains filtered or unexported fields
}

Aside is the <aside> HTML element.

type Attributes

type Attributes struct {
	AccessKey        []string           `html:" accesskey=%q"`
	AutoCapitalize   AutoCapitalization `html:" autocapitalize=%q"`
	AutoFocus        bool               `html:" autofocus"`
	Class            []Class            `html:" class=%q"`
	ContentEditable  Editablility       `html:" contenteditable=%q"`
	ContextMenu      ID[Menu]           `html:" contextmenu=%q"`
	Directionality   Directionality     `html:" dir=%q"`
	Draggable        Bool               `html:" draggable=%q"`
	EnterKeyHint     string             `html:" enterkeyhint=%q"`
	Hidden           bool               `html:" hidden"`
	HiddenUntilFound bool               `html:" hidden=\"untilfound\""`

	Inert     bool          `html:" inert"`
	InputMode InputMode     `html:" inputmode=%q"`
	Is        CustomElement `html:" is=%q"`

	ItemID       ItemID       `html:" itemid=%q"`
	ItemProperty ItemProperty `html:" itemprop=%q"`
	ItemRef      []ItemID     `html:" itemref=%q"`
	ItemScope    bool         `html:" itemscope"`
	ItemType     url.String   `html:" itemtype=%q"`

	Language string `html:" lang=%q"`
	Nonce    string `html:" nonce=%q"`
	Part     []Part `html:" part=%q"`

	Popover    bool     `html:" popover"`
	Slot       SlotName `html:" slot=%q"`
	SpellCheck Bool     `html:" spellcheck"`

	Style css.String `html:" style=%q"`

	TabIndex              int    `html:" tabindex=\"%d\""`
	Tooltip               string `html:" title=%q"`
	Translate             YesNo  `html:" translate=%q"`
	VirtualKeyboardPolicy string `html:" virtualkeyboardpolicy=%q"`

	Extra string `html:" %s"`
	// contains filtered or unexported fields
}

Attributes common to all elements.

type Audio

type Audio struct {
	ID   ID[Audio]  `html:" id=%q"`
	With Attributes `html:"%v"`

	Source      url.String  `html:" src=%q"`
	Autoplay    bool        `html:" autoplay"`
	Controls    bool        `html:" controls"`
	CrossOrigin CrossOrigin `html:" crossorigin=%q"`
	Loop        bool        `html:" loop"`
	Muted       bool        `html:" muted"`
	Preload     Preload     `html:" preload=%q"`

	Tree Nodes `html:">%v</audio>"`
	// contains filtered or unexported fields
}

Audio is the <audio> HTML element.

type AutoCapitalization

type AutoCapitalization string
const (
	AutoCapitalizationOn  AutoCapitalization = "on"
	AutoCapitalizationOff AutoCapitalization = "off"

	AutoCapitalizeNothing    AutoCapitalization = "none"
	AutoCapitalizeWords      AutoCapitalization = "words"
	AutoCapitalizeSentences  AutoCapitalization = "sentences"
	AutoCapitalizeCharacters AutoCapitalization = "characters"
)

type Base

type Base struct {
	ID   ID[Base]   `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</base>"`
	// contains filtered or unexported fields
}

Base is the <base> HTML element.

type BidirectionalIsolate

type BidirectionalIsolate struct {
	ID   ID[BidirectionalIsolate] `html:" id=%q"`
	With Attributes               `html:"%v"`
	Tree Nodes                    `html:">%v</bdi>"`
	// contains filtered or unexported fields
}

BidirectionalIsolate is the <bdi> HTML element.

type BidirectionalTextOverride

type BidirectionalTextOverride struct {
	ID   ID[BidirectionalTextOverride] `html:" id=%q"`
	With Attributes                    `html:"%v"`
	Tree Nodes                         `html:">%v</bdo>"`
	// contains filtered or unexported fields
}

BidirectionalTextOverride is the <bdo> HTML element.

type Blockquote

type Blockquote struct {
	ID   ID[Blockquote] `html:" id=%q"`
	With Attributes     `html:"%v"`
	Cite url.String     `html:" cite=%q"`
	Tree Nodes          `html:">%v</blockquote>"`
	// contains filtered or unexported fields
}

Blockquote is the <blockquote> HTML element.

type Body

type Body struct {
	ID   ID[Body]   `html:" id=%q"`
	With Attributes `html:"%v"`

	OnAfterPrint     js.Source `html:" onafterprint=%q"`
	OnBeforePrint    js.Source `html:" onbeforeprint=%q"`
	OnBeforeUnload   js.Source `html:" onbeforeunload=%q"`
	OnBlur           js.Source `html:" onblur=%q"`
	OnError          js.Source `html:" onerror=%q"`
	OnFocus          js.Source `html:" onfocus=%q"`
	OnHashChange     js.Source `html:" onhashchange=%q"`
	OnLanguageChange js.Source `html:" onlanguagechange=%q"`
	OnLoad           js.Source `html:" onload=%q"`
	OnMessage        js.Source `html:" onmessage=%q"`
	OnOffline        js.Source `html:" onoffline=%q"`
	OnOnline         js.Source `html:" ononline=%q"`
	OnPopState       js.Source `html:" onpopstate=%q"`
	OnRedo           js.Source `html:" onredo=%q"`
	OnResize         js.Source `html:" onresize=%q"`
	OnStorage        js.Source `html:" onstorage=%q"`
	OnUndo           js.Source `html:" onundo=%q"`
	OnUnload         js.Source `html:" onunload=%q"`

	Tree Nodes `html:">%v</body>"`
	// contains filtered or unexported fields
}

Body is the <body> HTML element.

type Bool

type Bool string
const (
	True  Bool = "true"
	False Bool = "false"
)

type BringAttentionTo

type BringAttentionTo struct {
	ID   ID[BringAttentionTo] `html:" id=%q"`
	With Attributes           `html:"%v"`
	Tree Nodes                `html:">%v</b>"`
	// contains filtered or unexported fields
}

BringAttentionTo is the <b> HTML element.

type Button

type Button struct {
	ID                  ID[Button]          `html:" id=%q"`
	With                Attributes          `html:"%v"`
	AutoFocus           bool                `html:" autofocus"`
	Disabled            bool                `html:" disabled"`
	Form                ID[Form]            `html:" form=%q"`
	FormAction          url.String          `html:" formaction=%q"`
	FormEncodingType    media.Type          `html:" formenctype=%q"`
	FormMethod          FormMethod          `html:" formmethod=%q"`
	FormNoValidate      bool                `html:" formnovalidate"`
	FormTarget          Target              `html:" formtarget=%q"`
	Name                string              `html:" name=%q"`
	PopoverTarget       ID[Node]            `html:" popovertarget=%q"`
	PopoverTargetAction PopoverTargetAction `html:" popovertargetaction=%q"`
	Type                ButtonType          `html:" type=%q"`
	Value               string              `html:" value=%q"`
	Tree                Nodes               `html:">%v</button>"`
	// contains filtered or unexported fields
}

Button is the <button> HTML element.

type ButtonType

type ButtonType string
const (
	ButtonSubmit ButtonType = "submit"
	ButtonReset  ButtonType = "reset"
	ButtonScript ButtonType = "button"
)

type Canvas

type Canvas struct {
	ID     ID[Canvas] `html:" id=%q"`
	With   Attributes `html:"%v"`
	Height css.Pixels `html:" height=%q"`
	Width  css.Pixels `html:" width=%q"`
	Tree   Nodes      `html:">%v</canvas>"`
	// contains filtered or unexported fields
}

Canvas is the <canvas> HTML element.

type Caption

type Caption struct {
	ID   ID[Caption] `html:" id=%q"`
	With Attributes  `html:"%v"`
	Tree Nodes       `html:">%v</caption>"`
	// contains filtered or unexported fields
}

Caption is the <caption> HTML element.

type CharacterSet

type CharacterSet string
const (
	UTF8 CharacterSet = "utf-8"
)

type Cite

type Cite struct {
	ID   ID[Cite]   `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</cite>"`
	// contains filtered or unexported fields
}

Cite is the <cite> HTML element.

type Class

type Class string

Class name.

type Column

type Column struct {
	ID   ID[Column] `html:" id=%q"`
	With Attributes `html:"%v"`
	Span uint       `html:" span=\"%d\""`
	Tree Nodes      `html:">"`
	// contains filtered or unexported fields
}

Column is the <col> HTML element.

type ColumnGroup

type ColumnGroup struct {
	ID   ID[ColumnGroup] `html:" id=%q"`
	With Attributes      `html:"%v"`
	Span uint            `html:" span=\"%d\""`
	Tree Nodes           `html:">%v</colgroup>"`
	// contains filtered or unexported fields
}

ColumnGroup is the <colgroup> HTML element.

type Container

type Container struct {
	ID   ID[Container] `html:" id=%q"`
	With Attributes    `html:"%v"`
	Tree Nodes         `html:">%v</div>"`
	// contains filtered or unexported fields
}

Container is the <div> HTML element.

type CrossOrigin

type CrossOrigin string
const (
	CrossOriginAnonymous      CrossOrigin = "anonymous"
	CrossOriginUseCredentials CrossOrigin = "use-credentials"
)

type CustomElement

type CustomElement string

CustomElement name.

type Definition

type Definition struct {
	ID   ID[Definition] `html:" id=%q"`
	With Attributes     `html:"%v"`
	Tree Nodes          `html:">%v</dfn>"`
	// contains filtered or unexported fields
}

Definition is the <dfn> HTML element. Use the [Attributes.Tooltip] to specify the full text for the definition.

type DeletedText

type DeletedText struct {
	ID   ID[DeletedText] `html:" id=%q"`
	With Attributes      `html:"%v"`
	Tree Nodes           `html:">%v</del>"`
	// contains filtered or unexported fields
}

DeletedText is the <del> HTML element.

type DescriptionDetails

type DescriptionDetails struct {
	ID   ID[DescriptionDetails] `html:" id=%q"`
	With Attributes             `html:"%v"`
	Tree Nodes                  `html:">%v</dd>"`
	// contains filtered or unexported fields
}

DescriptionDetails is the <dd> HTML element.

type DescriptionList

type DescriptionList struct {
	ID   ID[DescriptionList] `html:" id=%q"`
	With Attributes          `html:"%v"`
	Tree Nodes               `html:">%v</dl>"`
	// contains filtered or unexported fields
}

DescriptionList is the <dl> HTML element.

type DescriptionTerm

type DescriptionTerm struct {
	ID   ID[DescriptionTerm] `html:" id=%q"`
	With Attributes          `html:"%v"`
	Tree Nodes               `html:">%v</dt>"`
	// contains filtered or unexported fields
}

DescriptionTerm is the <dt> HTML element.

type Details

type Details struct {
	ID   ID[Details] `html:" id=%q"`
	With Attributes  `html:"%v"`
	Open bool        `html:" open"`
	Tree Nodes       `html:">%v</details>"`
	// contains filtered or unexported fields
}

Details is the <details> HTML element.

type Dialog

type Dialog struct {
	ID   ID[Dialog] `html:" id=%q"`
	With Attributes `html:"%v"`
	Open bool       `html:" open"`
	Tree Nodes      `html:">%v</dialog>"`
	// contains filtered or unexported fields
}

Dialog is the <dialog> HTML element.

type Directionality

type Directionality string
const (
	LeftToRight        Directionality = "ltr"
	RightToLeft        Directionality = "rtl"
	AutomaticDirection Directionality = "auto"
)

type Document

type Document struct {
	ID   ID[Document] `html:" id=%q"`
	With Attributes   `html:"%v"`

	Namespace string `html:" xmlns=%q"`

	Tree node `html:">%v</html>"`
	// contains filtered or unexported fields
}

Document is the root <html> element.

type Editablility

type Editablility string
const (
	Editable            Editablility = "true"
	NotEditable         Editablility = "false"
	EditAsPlainTextOnly Editablility = "plaintext-only"
)

type Embed

type Embed struct {
	ID     ID[Embed]  `html:" id=%q"`
	With   Attributes `html:"%v"`
	Source url.String `html:" src=%q"`
	Height css.Pixels `html:" height=%q"`
	Width  css.Pixels `html:" width=%q"`
	Type   media.Type `html:" type=%q"`
	Tree   Nodes      `html:">"`
	// contains filtered or unexported fields
}

Embed is the <embed> HTML element.

type Emphasis

type Emphasis struct {
	ID   ID[Emphasis] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</em>"`
	// contains filtered or unexported fields
}

Emphasis is the <em> HTML element.

type FieldSet

type FieldSet struct {
	ID       ID[FieldSet] `html:" id=%q"`
	With     Attributes   `html:"%v"`
	Disabled bool         `html:" disabled"`
	Form     ID[Form]     `html:" form=%q"`
	Name     string       `html:" name=%q"`
	Tree     Nodes        `html:">%v</fieldset>"`
	// contains filtered or unexported fields
}

FieldSet is the <fieldset> HTML element.

type Figure

type Figure struct {
	ID   ID[Figure] `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</figure>"`
	// contains filtered or unexported fields
}

Figure is the <figure> HTML element.

type FigureCaption

type FigureCaption struct {
	ID   ID[FigureCaption] `html:" id=%q"`
	With Attributes        `html:"%v"`
	Tree Nodes             `html:">%v</figcaption>"`
	// contains filtered or unexported fields
}

FigureCaption is the <figcaption> HTML element.

type Fineprint

type Fineprint struct {
	ID   ID[Fineprint] `html:" id=%q"`
	With Attributes
	Tree Nodes `html:">%v</small>"`
	// contains filtered or unexported fields
}

Fineprint is the <small> HTML element.

type Footer struct {
	ID   ID[Footer] `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</footer>"`
	// contains filtered or unexported fields
}

Footer is the <footer> HTML element.

type Form

type Form struct {
	ID                 ID[Form]     `html:" id=%q"`
	With               Attributes   `html:"%v"`
	AcceptCharacterSet CharacterSet `html:" accept-charset=%q"`
	AutoComplete       OnOff        `html:" autocomplete=%q"`
	Name               string       `html:" name=%q"`
	Relationship       Relationship `html:" rel=%q"`
	Action             url.String   `html:" action=%q"`
	EncodingType       media.Type   `html:" enctype=%q"`
	Method             FormMethod   `html:" method=%q"`
	NoValidate         bool         `html:" novalidate"`
	Target             Target       `html:" target=%q"`
	Tree               Nodes        `html:">%v</form>"`
	// contains filtered or unexported fields
}

Form is the <form> HTML element.

type FormMethod

type FormMethod string
const (
	FormShouldGet         FormMethod = "get"
	FormShouldPost        FormMethod = "post"
	FormShouldCloseDialog FormMethod = "dialog"
)
type Head struct {
	ID   ID[Head]   `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</head>"`
	// contains filtered or unexported fields
}

Head is the <head> HTML element.

type Header struct {
	ID   ID[Header] `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</header>"`
	// contains filtered or unexported fields
}

Header is the <header> HTML element.

type Heading1

type Heading1 struct {
	ID   ID[Heading1] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</h1>"`
	// contains filtered or unexported fields
}

Heading1 is the <h1> HTML element.

type Heading2

type Heading2 struct {
	ID   ID[Heading2] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</h2>"`
	// contains filtered or unexported fields
}

Heading2 is the <h2> HTML element.

type Heading3

type Heading3 struct {
	ID   ID[Heading2] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</h3>"`
	// contains filtered or unexported fields
}

Heading3 is the <h3> HTML element.

type Heading4

type Heading4 struct {
	ID   ID[Heading2] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</h4>"`
	// contains filtered or unexported fields
}

Heading4 is the <h4> HTML element.

type Heading5

type Heading5 struct {
	ID   ID[Heading2] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</h5>"`
	// contains filtered or unexported fields
}

Heading5 is the <h5> HTML element.

type Heading6

type Heading6 struct {
	ID   ID[Heading2] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</h6>"`
	// contains filtered or unexported fields
}

Heading6 is the <h6> HTML element.

type HeadingGroup

type HeadingGroup struct {
	ID   ID[HeadingGroup] `html:" id=%q"`
	With Attributes       `html:"%v"`
	Tree Nodes            `html:">%v</hgroup>"`
	// contains filtered or unexported fields
}

HeadingGroup is the <hgroup> HTML element.

type Highlight

type Highlight struct {
	ID   ID[Highlight] `html:" id=%q"`
	With Attributes    `html:"%v"`
	Tree Nodes         `html:">%v</mark>"`
	// contains filtered or unexported fields
}

Highlight is the <mark> HTML element.

type ID

type ID[T node] string

ID name.

type IdiomaticText

type IdiomaticText struct {
	ID   ID[IdiomaticText] `html:" id=%q"`
	With Attributes        `html:"%v"`
	Tree Nodes             `html:">%v</i>"`
	// contains filtered or unexported fields
}

IdiomaticText is the <i> HTML element.

type Image

type Image struct {
	ID             ID[Image]             `html:" id=%q"`
	Source         url.String            `html:" src=%q"`
	SourceSet      []string              `html:" srcset=%q"`
	With           Attributes            `html:"%v"`
	Alternative    human.Readable        `html:" alt=%q"`
	CrossOrigin    CrossOrigin           `html:" crossorigin=%q"`
	Decoding       ImageDecodingStrategy `html:" decoding=%q"`
	ElementTiming  bool                  `html:" elementtiming"`
	Width          css.Pixels            `html:" width=%q"`
	Height         css.Pixels            `html:" height=%q"`
	IsMap          bool                  `html:" ismap"`
	UseMap         url.String            `html:" usemap=%q"`
	Loading        Loading               `html:" loading=%q"`
	ReferrerPolicy ReferrerPolicy        `html:" referrerpolicy=%q"`
	Sizes          []string              `html:" sizes=%q"`
	Tree           Nodes                 `html:">"`
	// contains filtered or unexported fields
}

Image is the <img> HTML element.

type ImageDecodingStrategy

type ImageDecodingStrategy string
const (
	DecodeImageSynchronously  ImageDecodingStrategy = "sync"
	DecodeImageAsynchronously ImageDecodingStrategy = "async"
	DecodeImageAutomatically  ImageDecodingStrategy = "auto"
)

type ImageMap

type ImageMap struct {
	ID    ID[ImageMap]   `html:" id=%q"`
	With  Attributes     `html:"%v"`
	Name  ImageMapName   `html:" name=%q"`
	Areas []ImageMapArea `html:">%v</map>"`
	Tree  Nodes          `html:">%v</map>"`
	// contains filtered or unexported fields
}

ImageMap is the <map> HTML element.

type ImageMapArea

type ImageMapArea struct {
	ID   ID[ImageMapArea] `html:" id=%q"`
	With Attributes       `html:"%v"`

	Alternative human.Readable `html:" alt=%q"`
	Coords      []float64      `html:" coords=%q"`

	Link           url.String     `html:" href=%q"`
	Download       string         `html:" download=%q"`
	Ping           []url.String   `html:" ping=%q"`
	ReferrerPolicy ReferrerPolicy `html:" referrerpolicy=%q"`
	Relationship   Relationship   `html:" rel=%q"`
	Shape          ImageMapShape  `html:" shape=%q"`
	Target         Target         `html:" target=%q"`

	Tree Nodes `html:">%v</area>"`
	// contains filtered or unexported fields
}

ImageMapArea is the <area> HTML element.

type ImageMapName

type ImageMapName string

ImageMapName for an ImageMap.

type ImageMapShape

type ImageMapShape string
const (
	ImageMapRect    ImageMapShape = "rect"
	ImageMapCircle  ImageMapShape = "circle"
	ImageMapPoly    ImageMapShape = "poly"
	ImageMapDefault ImageMapShape = "default"
)

type InlineFrame

type InlineFrame struct {
	ID             ID[InlineFrame]   `html:" id=%q"`
	Source         url.String        `html:" src=%q"`
	SourceDocument String            `html:" srcdoc=%q"`
	With           Attributes        `html:"%v"`
	Allow          PermissionsPolicy `html:" allow=%q"`
	Height         css.Pixels        `html:" height=%q"`
	Width          css.Pixels        `html:" width=%q"`
	Loading        Loading           `html:" loading=%q"`
	Name           Target            `html:" name=%q"`
	ReferrerPolicy ReferrerPolicy    `html:" referrerpolicy=%q"`
	Sandbox        []Sandbox         `html:" sandbox=%q"`
	Tree           Nodes             `html:">%v</iframe>"`
	// contains filtered or unexported fields
}

InlineFrame is the <iframe> HTML element.

type Input

type Input struct {
	ID                  ID[Input]           `html:" id=%q"`
	Type                InputType           `html:" type=%q"`
	Accept              media.Type          `html:" accept=%q"`
	Alternative         human.Readable      `html:" alt=%q"`
	AutoComplete        OnOff               `html:" autocomplete=%q"`
	Capture             string              `html:" capture=%q"`
	Checked             bool                `html:" checked"`
	DirectionName       string              `html:" dirname=%q"`
	Disabled            bool                `html:" disabled"`
	Form                ID[Form]            `html:" form=%q"`
	FormAction          url.String          `html:" formaction=%q"`
	FormEncodingType    media.Type          `html:" formenctype=%q"`
	FormMethod          FormMethod          `html:" formmethod=%q"`
	FormNoValidate      bool                `html:" formnovalidate"`
	FormTarget          Target              `html:" formtarget=%q"`
	Height              css.Pixels          `html:" height=%q"`
	List                ID[OptionList]      `html:" list=%q"`
	Max                 float64             `html:" max=%q"`
	MaxLength           uint                `html:" maxlength=\"%d\""`
	Min                 float64             `html:" min=%q"`
	MinLength           uint                `html:" minlength=\"%d\""`
	Multiple            bool                `html:" multiple"`
	Name                string              `html:" name=%q"`
	Pattern             string              `html:" pattern=%q"`
	Placeholder         string              `html:" placeholder=%q"`
	PopoverTarget       bool                `html:" popovertarget"`
	PopoverTargetAction PopoverTargetAction `html:" popovertargetaction=%q"`
	ReadOnly            bool                `html:" readonly"`
	Required            bool                `html:" required"`
	Size                css.Pixels          `html:" size=\"%d\""`
	Source              url.String          `html:" src=%q"`
	Value               string              `html:" value=%q"`
	Width               css.Pixels          `html:" width=%q"`
	With                Attributes          `html:"%v"`
	Tree                Nodes               `html:"%v"`
	// contains filtered or unexported fields
}

Input is the <input> HTML element.

type InputMode

type InputMode string
const (
	InputModeNone        InputMode = "none"
	InputModeText        InputMode = "text"
	InputModeDecimal     InputMode = "decimal"
	InputModeNumeric     InputMode = "numeric"
	InputModePhoneNumber InputMode = "tel"
	InputModeSearch      InputMode = "search"
	InputModeEmail       InputMode = "email"
	InputModeURL         InputMode = "url"
)

type InputType

type InputType string
const (
	InputButton        InputType = "button"
	InputCheckbox      InputType = "checkbox"
	InputColor         InputType = "color"
	InputDate          InputType = "date"
	InputDateTimeLocal InputType = "datetime-local"
	InputEmail         InputType = "email"
	InputFile          InputType = "file"
	InputHidden        InputType = "hidden"
	InputImage         InputType = "image"
	InputMonth         InputType = "month"
	InputNumber        InputType = "number"
	InputPassword      InputType = "password"
	InputRadio         InputType = "radio"
	InputRange         InputType = "range"
	InputReset         InputType = "reset"
	InputSearch        InputType = "search"
	InputSubmit        InputType = "submit"
	InputPhone         InputType = "tel"
	InputText          InputType = "text"
	InputTime          InputType = "time"
	InputURL           InputType = "url"
	InputWeek          InputType = "week"
)

type InsertedText

type InsertedText struct {
	ID       ID[InsertedText] `html:" id=%q"`
	With     Attributes       `html:"%v"`
	Cite     url.String       `html:" cite=%q"`
	DateTime time.Time        `html:" datetime=%q"`
	Tree     Nodes            `html:">%v</ins>"`
	// contains filtered or unexported fields
}

InsertedText is the <ins> HTML element.

type ItemID

type ItemID string

ItemID name.

type ItemProperty

type ItemProperty string

ItemProperty name.

type KeyboardInput

type KeyboardInput struct {
	ID   ID[KeyboardInput] `html:" id=%q"`
	With Attributes        `html:"%v"`
	Tree Nodes             `html:">%v</kbd>"`
	// contains filtered or unexported fields
}

KeyboardInput is the <kbd> HTML element.

type Label

type Label struct {
	ID   ID[Label]  `html:" id=%q"`
	With Attributes `html:"%v"`
	For  ID[Node]   `html:" for=%q"`
	Tree Nodes      `html:">%v</label>"`
	// contains filtered or unexported fields
}

Label is the <label> HTML element.

type Legend

type Legend struct {
	ID   ID[Legend] `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</legend>"`
	// contains filtered or unexported fields
}

Legend is the <legend> HTML element.

type LineBreak

type LineBreak struct {
	ID   ID[LineBreak] `html:" id=%q"`
	With Attributes    `html:"%v"`
	Tree Nodes         `html:">"`
	// contains filtered or unexported fields
}

LineBreak is the <br> HTML element.

type Link struct {
	ID               ID[Link]       `html:" id=%q"`
	With             Attributes     `html:"%v"`
	As               LinkType       `html:" as=%q"`
	CrossOrigin      CrossOrigin    `html:" crossorigin=%q"`
	Location         url.String     `html:" href=%q"`
	LocationLangauge string         `html:" hreflang=%q"`
	ImageSizes       []string       `html:" imagesizes=%q"`
	ImageSourceSet   []string       `html:" imagesrcset=%q"`
	Integrity        string         `html:" integrity=%q"`
	Media            media.Type     `html:" media=%q"`
	ReferrerPolicy   ReferrerPolicy `html:" referrerpolicy=%q"`
	Relationship     Relationship   `html:" rel=%q"`
	Type             media.Type     `html:" type=%q"`
	Tree             Nodes          `html:">"`
	// contains filtered or unexported fields
}

Link is the <link> HTML element.

type LinkType

type LinkType string
const (
	LinkedAudio    LinkType = "audio"
	LinkedDocument LinkType = "document"
	LinkedEmbed    LinkType = "embed"
	LinkedFetch    LinkType = "fetch"
	LinkedFont     LinkType = "font"
	LinkedImage    LinkType = "image"
	LinkedObject   LinkType = "object"
	LinkedScript   LinkType = "script"
	LinkedStyle    LinkType = "style"
	LinkedTrack    LinkType = "track"
	LinkedVideo    LinkType = "video"
	LinkedWorker   LinkType = "worker"
)

type ListItem

type ListItem struct {
	ID    ID[ListItem] `html:" id=%q"`
	With  Attributes   `html:"%v"`
	Value uint         `html:" value=\"%d\""`
	Tree  Nodes        `html:">%v</li>"`
	// contains filtered or unexported fields
}

ListItem is the <li> HTML element.

type Loading

type Loading string
const (
	Eager Loading = "eager"
	Lazy  Loading = "lazy"
)

type MachineReadable

type MachineReadable struct {
	ID    ID[MachineReadable] `html:" id=%q"`
	With  Attributes          `html:"%v"`
	Value string              `html:" value=%q"`
	Tree  Nodes               `html:">%v</data>"`
	// contains filtered or unexported fields
}

MachineReadable is the <data> HTML element.

type Main

type Main struct {
	ID   ID[Main]   `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</main>"`
	// contains filtered or unexported fields
}

Main is the <main> HTML element.

type MathematicalVariable

type MathematicalVariable struct {
	ID   ID[MathematicalVariable] `html:" id=%q"`
	With Attributes               `html:"%v"`
	Tree Nodes                    `html:">%v</var>"`
	// contains filtered or unexported fields
}

MathematicalVariable is the <var> HTML element.

type Menu struct {
	ID   ID[Menu]   `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</menu>"`
	// contains filtered or unexported fields
}

Menu is the <menu> HTML element.

type Metadata

type Metadata struct {
	CharacterSet     CharacterSet `html:" charset=%q"`
	HeaderEquivalent string       `html:" http-equiv=%q"`
	Name             string       `html:" name=%q"`
	Content          string       `html:" content=%q"`
}

Metadata is the <meta> HTML element.

type Meter

type Meter struct {
	ID   ID[Meter]  `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</meter>"`
	// contains filtered or unexported fields
}

Meter is the <meter> HTML element.

type Navigation struct {
	ID   ID[Navigation] `html:" id=%q"`
	With Attributes     `html:"%v"`
	Tree Nodes          `html:">%v</nav>"`
	// contains filtered or unexported fields
}

Navigation is the <nav> HTML element.

type Node

type Node interface{ HTML5() }

Element is an HTML5 element.

type Nodes

type Nodes []Node

func InnerText

func InnerText(text string) Nodes

func (Nodes) HTML5

func (e Nodes) HTML5()

type Object

type Object struct {
	ID     ID[Object] `html:" id=%q"`
	Name   string     `html:" name=%q"`
	Data   url.String `html:" data=%q"`
	With   Attributes `html:"%v"`
	Height css.Pixels `html:" height=%q"`
	Width  css.Pixels `html:" width=%q"`
	Type   media.Type `html:" type=%q"`
	UseMap url.String `html:" usemap=%q"`
	Tree   Nodes      `html:">%v</object>"`
	// contains filtered or unexported fields
}

Object is the <object> HTML element.

type OnOff

type OnOff string
const (
	On  OnOff = "on"
	Off OnOff = "off"
)

type Option

type Option struct {
	ID       ID[Option] `html:" id=%q"`
	Disabled bool       `html:" disabled"`
	Label    string     `html:" label=%q"`
	Selected bool       `html:" selected"`
	Value    string     `html:" value=%q"`
	With     Attributes `html:"%v"`
	Text     string     `html:">%v</option>"`
	// contains filtered or unexported fields
}

Option is the <option> HTML element.

type OptionGroup

type OptionGroup struct {
	ID       ID[OptionGroup] `html:" id=%q"`
	Disabled bool            `html:" disabled"`
	Label    string          `html:" label=%q"`
	With     Attributes      `html:"%v"`
	Tree     Nodes           `html:">%v</optgroup>"`
	// contains filtered or unexported fields
}

OptionGroup is the <optgroup> HTML element.

type OptionList

type OptionList struct {
	ID   ID[OptionList] `html:" id=%q"`
	With Attributes     `html:"%v"`
	Tree Nodes          `html:">%v</datalist>"`
	// contains filtered or unexported fields
}

OptionList is the <datalist> HTML element.

type OptionalLineBreak

type OptionalLineBreak struct {
	ID   ID[OptionalLineBreak] `html:" id=%q"`
	With Attributes            `html:"%v"`
	// contains filtered or unexported fields
}

OptionalLineBreak is the <wbr> HTML element.

type OrderedList

type OrderedList struct {
	ID       ID[OrderedList] `html:" id=%q"`
	Reversed bool            `html:" reversed"`
	Start    uint            `html:" start=\"%d\""`
	With     Attributes      `html:"%v"`
	Type     rune            `html:" type=%q"`
	Tree     Nodes           `html:">%v</ol>"`
	// contains filtered or unexported fields
}

OrderedList is the <ol> HTML element.

type Output

type Output struct {
	ID   ID[Output] `html:" id=%q"`
	For  []ID[Node] `html:" for=%q"`
	Form ID[Form]   `html:" form=%q"`
	Name string     `html:" name=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</output>"`
	// contains filtered or unexported fields
}

Output is the <output> HTML element.

type Paragraph

type Paragraph struct {
	ID   ID[Paragraph] `html:" id=%q"`
	With Attributes
	Tree Nodes `html:">%v</p>"`
	// contains filtered or unexported fields
}

Paragraph is the <p> HTML element.

type Part

type Part string

Part name.

type PermissionsPolicy

type PermissionsPolicy string

type Picture

type Picture struct {
	ID      ID[Picture] `html:" id=%q"`
	With    Attributes  `html:"%v"`
	Sources []Source    `html:">%v"`
	Images  []Image     `html:">%v</picture>"`
	// contains filtered or unexported fields
}

Picture is the <picture> HTML element.

type PopoverTargetAction

type PopoverTargetAction string
const (
	PopoverHide   PopoverTargetAction = "hide"
	PopoverShow   PopoverTargetAction = "show"
	PopoverToggle PopoverTargetAction = "toggle"
)

type PreformattedText

type PreformattedText struct {
	ID   ID[PreformattedText] `html:" id=%q"`
	With Attributes           `html:"%v"`
	Tree Nodes                `html:">%v</pre>"`
	// contains filtered or unexported fields
}

PreformattedText is the <pre> HTML element.

type Preload

type Preload string
const (
	PreloadNone     Preload = "none"
	PreloadMetadata Preload = "metadata"
	PreloadAuto     Preload = "auto"
)

type Progress

type Progress struct {
	ID    ID[Progress] `html:" id=%q"`
	With  Attributes   `html:"%v"`
	Value float64      `html:" value=%q"`
	Max   float64      `html:" max=%q"`
	Tree  Nodes        `html:">%v</progress>"`
	// contains filtered or unexported fields
}

Progress is the <progress> HTML element.

type Quotation

type Quotation struct {
	ID   ID[Quotation] `html:" id=%q"`
	With Attributes    `html:"%v"`
	Tree Nodes         `html:">%v</q>"`
	// contains filtered or unexported fields
}

Quotation is the <q> HTML element.

type ReferrerPolicy

type ReferrerPolicy string
const (
	NoReferrer                  ReferrerPolicy = "no-referrer"
	NoReferrerWhenDowngrade     ReferrerPolicy = "no-referrer-when-downgrade"
	Origin                      ReferrerPolicy = "origin"
	OriginWhenCrossOrigin       ReferrerPolicy = "origin-when-cross-origin"
	SameOrigin                  ReferrerPolicy = "same-origin"
	StrictOrigin                ReferrerPolicy = "strict-origin"
	StrictOriginWhenCrossOrigin ReferrerPolicy = "strict-origin-when-cross-origin"
	UnsafeURL                   ReferrerPolicy = "unsafe-url"
)

type Relationship

type Relationship string
const (
	RelationshipAlternate  Relationship = "alternate"
	RelationshipAuthor     Relationship = "author"
	RelationshipBookmark   Relationship = "bookmark"
	RelationshipExternal   Relationship = "external"
	RelationshipHelp       Relationship = "help"
	RelationshipLicense    Relationship = "license"
	RelationshipNext       Relationship = "next"
	RelationshipNoFollow   Relationship = "nofollow"
	RelationshipNoOpener   Relationship = "noopener"
	RelationshipNoReferrer Relationship = "noreferrer"
	RelationshipPrevious   Relationship = "prev"
	RelationshipSearch     Relationship = "search"
	RelationshipTag        Relationship = "tag"
)

type Ruby

type Ruby struct {
	ID   ID[Ruby] `html:" id=%q"`
	With Attributes
	Tree Nodes `html:">%v</ruby>"`
	// contains filtered or unexported fields
}

Ruby is the <ruby> HTML element.

type RubyFallback

type RubyFallback struct {
	ID   ID[RubyFallback] `html:" id=%q"`
	With Attributes       `html:"%v"`
	Tree Nodes            `html:">%v</rp>"`
	// contains filtered or unexported fields
}

RubyFallback is the <rp> HTML element.

type RubyText

type RubyText struct {
	ID   ID[RubyText] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</rt>"`
	// contains filtered or unexported fields
}

RubyText is the <rt> HTML element.

type SampleOutput

type SampleOutput struct {
	ID   ID[SampleOutput] `html:" id=%q"`
	With Attributes       `html:"%v"`
	Tree Nodes            `html:">%v</samp>"`
	// contains filtered or unexported fields
}

SampleOutput is the <samp> HTML element.

type Sandbox

type Sandbox string
const (
	AllowDownloads                      Sandbox = "allow-downloads"
	AllowDownloadsWithUserActivation    Sandbox = "allow-downloads-with-user-activation"
	AllowForms                          Sandbox = "allow-forms"
	AllowModals                         Sandbox = "allow-modals"
	AllowOrientationLock                Sandbox = "allow-orientation-lock"
	AllowPointerLock                    Sandbox = "allow-pointer-lock"
	AllowPopups                         Sandbox = "allow-popups"
	AllowPopupsToEscapeSandbox          Sandbox = "allow-popups-to-escape-sandbox"
	AllowPresentation                   Sandbox = "allow-presentation"
	AllowSameOrigin                     Sandbox = "allow-same-origin"
	AllowScripts                        Sandbox = "allow-scripts"
	AllowTopNavigation                  Sandbox = "allow-top-navigation"
	AllowTopNavigationByUserActivation  Sandbox = "allow-top-navigation-by-user-activation"
	AllowTopNavigationToCustomProtocols Sandbox = "allow-top-navigation-to-custom-protocols"
)

type Script

type Script struct {
	ID             ID[Script]     `html:" id=%q"`
	With           Attributes     `html:"%v"`
	Async          bool           `html:" async"`
	Defer          bool           `html:" defer"`
	Source         url.String     `html:" src=%q"`
	SourceText     String         `html:" srctext=%q"`
	Type           ScriptType     `html:" type=%q"`
	ReferrerPolicy ReferrerPolicy `html:" referrerpolicy=%q"`
	CrossOrigin    CrossOrigin    `html:" crossorigin=%q"`
	Integrity      string         `html:" integrity=%q"`
	NoModule       bool           `html:" nomodule"`
	Nonce          string         `html:" nonce=%q"`
	Tree           Nodes          `html:">%v</script>"`
	// contains filtered or unexported fields
}

Script is the <script> HTML element.

type ScriptType

type ScriptType string
const (
	ScriptIsImportMap ScriptType = "importmap"
	ScriptIsModule    ScriptType = "module"
)
type Search struct {
	ID   ID[Search] `html:" id=%q"`
	With Attributes
	Tree Nodes `html:">%v</search>"`
	// contains filtered or unexported fields
}

Search is the <script> HTML element.

type Section

type Section struct {
	ID   ID[Section] `html:" id=%q"`
	With Attributes  `html:"%v"`
	Tree Nodes       `html:">%v</section>"`
	// contains filtered or unexported fields
}

Section is the <section> HTML element.

type SelectFromOptionGroups

type SelectFromOptionGroups struct {
	ID           ID[SelectFromOptions] `html:" id=%q"`
	With         Attributes            `html:"%v"`
	AutoComplete OnOff                 `html:" autocomplete=%q"`
	AutoFocus    bool                  `html:" autofocus"`
	Disabled     bool                  `html:" disabled"`
	Form         ID[Form]              `html:" form=%q"`
	Multiple     bool                  `html:" multiple"`
	Name         string                `html:" name=%q"`
	Required     bool                  `html:" required"`
	Size         uint                  `html:" size=\"%d\""`
	Options      []OptionGroup         `html:">%v</select>"`
	// contains filtered or unexported fields
}

SelectFromOptionGroups is the <select> HTML element.

type SelectFromOptions

type SelectFromOptions struct {
	ID           ID[SelectFromOptions] `html:" id=%q"`
	With         Attributes            `html:"%v"`
	AutoComplete OnOff                 `html:" autocomplete=%q"`
	AutoFocus    bool                  `html:" autofocus"`
	Disabled     bool                  `html:" disabled"`
	Form         ID[Form]              `html:" form=%q"`
	Multiple     bool                  `html:" multiple"`
	Name         string                `html:" name=%q"`
	Required     bool                  `html:" required"`
	Size         uint                  `html:" size=\"%d\""`
	Options      []Option              `html:">%v</select>"`
	// contains filtered or unexported fields
}

SelectFromOptions is the <select> HTML element.

type Slot

type Slot struct {
	ID   ID[Slot] `html:" id=%q"`
	With Attributes
	Tree Nodes `html:">%v</slot>"`
	// contains filtered or unexported fields
}

Slot is the <slot> HTML element.

type SlotName

type SlotName string

SlotName string.

type Source

type Source struct {
	ID        ID[Source] `html:" id=%q"`
	Source    url.String `html:" src=%q"`
	With      Attributes `html:"%v"`
	SourceSet []string   `html:" srcset=%q"`
	Sizes     []string   `html:" sizes=%q"`
	Media     media.Type `html:" media=%q"`
	Height    css.Pixels `html:" height=%q"`
	Width     css.Pixels `html:" width=%q"`
	Type      media.Type `html:" type=%q"`
	// contains filtered or unexported fields
}

Source is the <source> HTML element.

type SourceCode

type SourceCode struct {
	ID   ID[SourceCode] `html:" id=%q"`
	With Attributes     `html:"%v"`
	Tree Nodes          `html:">%v</code>"`
	// contains filtered or unexported fields
}

SourceCode is the <code> HTML element.

type Span

type Span struct {
	ID   ID[Span]   `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</span>"`
	// contains filtered or unexported fields
}

Span is the <span> HTML element.

type Strikethrough

type Strikethrough struct {
	ID   ID[Strikethrough] `html:" id=%q"`
	With Attributes        `html:"%v"`
	Tree Nodes             `html:">%v</s>"`
	// contains filtered or unexported fields
}

Strikethrough is the <s> HTML element.

type String

type String string

String containing HTMLv5.

type Strong

type Strong struct {
	ID   ID[Strong] `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</strong>"`
	// contains filtered or unexported fields
}

Strong is the <strong> HTML element.

type Style

type Style struct {
	ID    ID[Style]  `html:" id=%q"`
	With  Attributes `html:"%v"`
	Media string     `html:" media=%q"`
	Nonce string     `html:" nonce=%q"`
	Text  css.String `html:">%v</style>"`
	// contains filtered or unexported fields
}

Style is the <style> HTML element.

type Subscript

type Subscript struct {
	ID   ID[Subscript] `html:" id=%q"`
	With Attributes    `html:"%v"`
	Tree Nodes         `html:">%v</sub>"`
	// contains filtered or unexported fields
}

Subscript is the <sub> HTML element.

type Summary

type Summary struct {
	ID   ID[Summary] `html:" id=%q"`
	With Attributes  `html:"%v"`
	Tree Nodes       `html:">%v</summary>"`
	// contains filtered or unexported fields
}

Summary is the <summary> HTML element.

type Superscript

type Superscript struct {
	ID   ID[Superscript] `html:" id=%q"`
	With Attributes      `html:"%v"`
	Tree Nodes           `html:">%v</sup>"`
	// contains filtered or unexported fields
}

Superscript is the <sup> HTML element.

type Table

type Table struct {
	ID   ID[Table]  `html:" id=%q"`
	With Attributes `html:"%v"`
	Tree Nodes      `html:">%v</table>"`
	// contains filtered or unexported fields
}

Table is the <table> HTML element.

type TableBody

type TableBody struct {
	ID   ID[TableBody] `html:" id=%q"`
	With Attributes    `html:"%v"`
	Tree Nodes         `html:">%v</tbody>"`
	// contains filtered or unexported fields
}

TableBody is the <tbody> HTML element.

type TableData

type TableData struct {
	ID         ID[TableData]      `html:" id=%q"`
	With       Attributes         `html:"%v"`
	RowSpan    uint               `html:" rowspan=\"%d\""`
	ColumnSpan uint               `html:" colspan=\"%d\""`
	Headings   []ID[TableHeading] `html:" headers=%q"`
	Tree       Nodes              `html:">%v</td>"`
	// contains filtered or unexported fields
}

TableData is the <td> HTML element.

type TableFooter

type TableFooter struct {
	ID   ID[TableFooter] `html:" id=%q"`
	With Attributes      `html:"%v"`
	Tree Nodes           `html:">%v</tfoot>"`
	// contains filtered or unexported fields
}

TableFooter is the <tfoot> HTML element.

type TableHeader

type TableHeader struct {
	ID   ID[TableHeader] `html:" id=%q"`
	With Attributes      `html:"%v"`
	Tree Nodes           `html:">%v</thead>"`
	// contains filtered or unexported fields
}

TableHeader is the <thead> HTML element.

type TableHeading

type TableHeading struct {
	ID           ID[TableHeading]   `html:" id=%q"`
	With         Attributes         `html:"%v"`
	Abbreviation string             `html:" abbr=%q"`
	RowSpan      uint               `html:" rowspan=\"%d\""`
	ColumnSpan   uint               `html:" colspan=\"%d\""`
	Headers      []ID[TableHeading] `html:" headers=%q"`
	Scope        TableScope         `html:" scope=%q"`
	Tree         Nodes              `html:">%v</th>"`
	// contains filtered or unexported fields
}

TableHeading is the <th> HTML element.

type TableRow

type TableRow struct {
	ID   ID[TableRow] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</tr>"`
	// contains filtered or unexported fields
}

TableRow is the <tr> HTML element.

type TableScope

type TableScope string
const (
	ScopeRow         TableScope = "row"
	ScopeColumn      TableScope = "col"
	ScopeRowGroup    TableScope = "rowgroup"
	ScopeColumnGroup TableScope = "colgroup"
)

type Target

type Target string
const (
	TargetBlank  Target = "_blank"
	TargetSelf   Target = "_self"
	TargetParent Target = "_parent"
	TargetTop    Target = "_top"
)

type Template

type Template struct {
	ID   ID[Template] `html:" id=%q"`
	With Attributes   `html:"%v"`
	Tree Nodes        `html:">%v</template>"`
	// contains filtered or unexported fields
}

Template is the <template> HTML element.

type Text

type Text string

func (Text) Format

func (t Text) Format(w fmt.State, verb rune)

func (Text) HTML5

func (Text) HTML5()

type TextArea

type TextArea struct {
	ID            ID[TextArea] `html:" id=%q"`
	With          Attributes   `html:"%v"`
	AutoComplete  OnOff        `html:" autocomplete=%q"`
	AutoFocus     bool         `html:" autofocus"`
	Columns       uint         `html:" cols=\"%d\""`
	DirectionName string       `html:" dirname=%q"`
	Disabled      bool         `html:" disabled"`
	Form          ID[Form]     `html:" form=%q"`
	MaxLength     uint         `html:" maxlength=\"%d\""`
	MinLength     uint         `html:" minlength=\"%d\""`
	Name          string       `html:" name=%q"`
	Placeholder   string       `html:" placeholder=%q"`
	ReadOnly      bool         `html:" readonly"`
	Required      bool         `html:" required"`
	Rows          uint         `html:" rows=\"%d\""`
	Spellcheck    Bool         `html:" spellcheck=%q"`
	Wrap          Wrap         `html:" wrap=%q"`
	Tree          Nodes        `html:">%v</textarea>"`
	// contains filtered or unexported fields
}

TextArea is the <textarea> HTML element.

type ThematicBreak

type ThematicBreak struct {
	ID   ID[ThematicBreak] `html:" id=%q"`
	With Attributes        `html:"%v"`
	Tree Nodes             `html:">"`
	// contains filtered or unexported fields
}

ThematicBreak is the <hr> HTML element.

type Time

type Time struct {
	ID       ID[Time]   `html:" id=%q"`
	With     Attributes `html:"%v"`
	DateTime time.Time  `html:" datetime=%q"`
	Tree     Nodes      `html:">%v</time>"`
	// contains filtered or unexported fields
}

Time is the <time> HTML element.

type Title

type Title struct {
	ID   ID[Title]  `html:" id=%q"`
	With Attributes `html:"%v"`
	Text string     `html:">%v</title>"`
	// contains filtered or unexported fields
}

Title is the <title> HTML element.

type Track

type Track struct {
	ID             ID[Track]  `html:" id=%q"`
	With           Attributes `html:"%v"`
	Source         url.String `html:" src=%q"`
	SourceLanguage string     `html:" srclang=%q"`
	Default        bool       `html:" default"`
	Kind           TrackKind  `html:" kind=%q"`
	Label          string     `html:" label=%q"`
	// contains filtered or unexported fields
}

Track is the <track> HTML element.

type TrackKind

type TrackKind string
const (
	TrackForSubtitles    TrackKind = "subtitles"
	TrackForCaptions     TrackKind = "captions"
	TrackForDescriptions TrackKind = "descriptions"
	TrackForChapters     TrackKind = "chapters"
	TrackForMetadata     TrackKind = "metadata"
)

type UnorderedList

type UnorderedList struct {
	ID   ID[UnorderedList] `html:" id=%q"`
	With Attributes        `html:"%v"`
	Tree Nodes             `html:">%v</ul>"`
	// contains filtered or unexported fields
}

UnorderedList is the <ul> HTML element.

type Video

type Video struct {
	ID          ID[Video]      `html:" id=%q"`
	Source      url.String     `html:" src=%q"`
	SourceSet   []string       `html:" srcset=%q"`
	With        Attributes     `html:"%v"`
	Alternative human.Readable `html:" alt=%q"`
	AutoPlay    bool           `html:" autoplay"`
	Controls    bool           `html:" controls"`
	CrossOrigin CrossOrigin    `html:" crossorigin=%q"`
	Height      css.Pixels     `html:" height=%q"`
	Loop        bool           `html:" loop"`
	Muted       bool           `html:" muted"`
	PlaysInline bool           `html:" playsinline"`
	Poster      url.String     `html:" poster=%q"`
	Preload     Preload        `html:" preload=%q"`
	Width       css.Pixels     `html:" width=%q"`
	// contains filtered or unexported fields
}

Video is the <video> HTML element.

type VirtualKeyboardPolicy

type VirtualKeyboardPolicy string
const (
	VirtualKeyboardAutomatic VirtualKeyboardPolicy = "auto"
	VirtualKeyboardManual    VirtualKeyboardPolicy = "manual"
)

type WhenScriptIsDisabled

type WhenScriptIsDisabled struct {
	ID   ID[WhenScriptIsDisabled] `html:" id=%q"`
	With Attributes               `html:"%v"`
	Tree Nodes                    `html:">%v</noscript>"`
	// contains filtered or unexported fields
}

WhenScriptIsDisabled is the <noscript> HTML element.

type Wrap

type Wrap string
const (
	WrapHard Wrap = "hard"
	WrapSoft Wrap = "soft"
)

type YesNo

type YesNo string
const (
	Yes YesNo = "yes"
	No  YesNo = "no"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL