html

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Overview

Package html - Go package for HTML elements and attributes

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A

func A(contents ...any) aitch.Node

A declares an <a> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

func Abbr

func Abbr(contents ...any) aitch.Node

Abbr declares an <abbr> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr

func Accept

func Accept(value ...any) aitch.Node

Accept declares an HTML "accept" attribute

only applies to Input <input> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

func AccessKey added in v1.2.3

func AccessKey(value ...any) aitch.Node

AccessKey declares an HTML "accesskey" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey

func Action

func Action(value ...any) aitch.Node

Action declares an HTML "action" attribute

only applies to Form <form> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form

func Address

func Address(contents ...any) aitch.Node

Address declares an <address> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address

func AllowFullScreen

func AllowFullScreen() aitch.Node

AllowFullScreen declares an HTML "allowfullscreen" boolean attribute

only applies to IFrame <iframe> element

func Alt

func Alt(value ...any) aitch.Node

Alt declares an HTML "alt" attribute

only applies to Img <img>, Area <area> & Input <input type="image"> elements

func Area

func Area(contents ...any) aitch.Node

Area declares an <area> HTML element

As <area> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area

func Aria

func Aria(name string, value ...any) aitch.Node

Aria declares a custom HTML "aria-*" attribute using the provided name and value

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes

func AriaAtomic

func AriaAtomic(value ...any) aitch.Node

AriaAtomic declares an HTML "aria-atomic" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-atomic

func AriaBusy

func AriaBusy(value ...any) aitch.Node

AriaBusy declares an HTML "aria-busy" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-busy

func AriaChecked

func AriaChecked(value ...any) aitch.Node

AriaChecked declares an HTML "aria-checked" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-checked

func AriaControls

func AriaControls(value ...any) aitch.Node

AriaControls declares an HTML "aria-controls" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-controls

func AriaDescribedBy

func AriaDescribedBy(value ...any) aitch.Node

AriaDescribedBy declares an HTML "aria-describedby" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-describedby

func AriaDisabled

func AriaDisabled(value ...any) aitch.Node

AriaDisabled declares an HTML "aria-disabled" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-disabled

func AriaExpanded

func AriaExpanded(value ...any) aitch.Node

AriaExpanded declares an HTML "aria-expanded" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-expanded

func AriaFlowTo

func AriaFlowTo(value ...any) aitch.Node

AriaFlowTo declares an HTML "aria-flowto" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-flowto

func AriaHidden

func AriaHidden(value ...any) aitch.Node

AriaHidden declares an HTML "aria-hidden" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-hidden

func AriaInvalid

func AriaInvalid(value ...any) aitch.Node

AriaInvalid declares an HTML "aria-invalid" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-invalid

func AriaLabel

func AriaLabel(value ...any) aitch.Node

AriaLabel declares an HTML "aria-label" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label

func AriaLabelledBy

func AriaLabelledBy(value ...any) aitch.Node

AriaLabelledBy declares an HTML "aria-labelledby" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-labelledby

func AriaLive

func AriaLive(value ...any) aitch.Node

AriaLive declares an HTML "aria-live" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-live

func AriaOwns

func AriaOwns(value ...any) aitch.Node

AriaOwns declares an HTML "aria-owns" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-owns

func AriaPlaceholder

func AriaPlaceholder(value ...any) aitch.Node

AriaPlaceholder declares an HTML "aria-placeholder" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-placeholder

func AriaPosInSet

func AriaPosInSet(value ...any) aitch.Node

AriaPosInSet declares an HTML "aria-posinset" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-posinset

func AriaPressed

func AriaPressed(value ...any) aitch.Node

AriaPressed declares an HTML "aria-pressed" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-pressed

func AriaReadonly

func AriaReadonly(value ...any) aitch.Node

AriaReadonly declares an HTML "aria-readonly" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-readonly

func AriaRelevant

func AriaRelevant(value ...any) aitch.Node

AriaRelevant declares an HTML "aria-relevant" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-relevant

func AriaRequired

func AriaRequired(value ...any) aitch.Node

AriaRequired declares an HTML "aria-required" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-required

func AriaSelected

func AriaSelected(value ...any) aitch.Node

AriaSelected declares an HTML "aria-selected" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-selected

func AriaSetSize

func AriaSetSize(value ...any) aitch.Node

AriaSetSize declares an HTML "aria-setsize" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-setsize

func AriaValueMax

func AriaValueMax(value ...any) aitch.Node

AriaValueMax declares an HTML "aria-valuemax" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-valuemax

func AriaValueMin

func AriaValueMin(value ...any) aitch.Node

AriaValueMin declares an HTML "aria-valuemin" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-valuemin

func AriaValueNow

func AriaValueNow(value ...any) aitch.Node

AriaValueNow declares an HTML "aria-valuenow" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-valuenow

func AriaValueText

func AriaValueText(value ...any) aitch.Node

AriaValueText declares an HTML "aria-valuetext" attribute

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-valuetext

func Article

func Article(contents ...any) aitch.Node

Article declares an <article> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article

func As

func As(value ...any) aitch.Node

As declares an HTML "as" attribute

only applies to Link <link> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link

func Aside

func Aside(contents ...any) aitch.Node

Aside declares an <aside> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside

func Async

func Async() aitch.Node

Async declares an HTML "async" boolean attribute

only applies to Script <script> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

func Audio

func Audio(contents ...any) aitch.Node

Audio declares an <audio> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio

func AutoCapitalize added in v1.2.3

func AutoCapitalize(value ...any) aitch.Node

AutoCapitalize declares an HTML "autocapitalize" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocapitalize

func AutoComplete

func AutoComplete(value ...any) aitch.Node

AutoComplete declares an HTML "autocomplete" attribute

only applies to Form <form>, Input <input>, Select <select> & Textarea <textarea> elements

func AutoCorrect added in v1.2.3

func AutoCorrect(value ...any) aitch.Node

AutoCorrect declares an HTML "autocorrect" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autocorrect

func AutoFocus

func AutoFocus() aitch.Node

AutoFocus declares an HTML "autofocus" boolean attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus

func AutoPlay

func AutoPlay() aitch.Node

AutoPlay declares an HTML "autoplay" boolean attribute

only applies to Audio <audio> and Video <video> elements

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio & https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func B

func B(contents ...any) aitch.Node

B declares a <b> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b

func Base

func Base(contents ...any) aitch.Node

Base declares a <base> HTML element

As <base> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base

func Bdi added in v1.2.3

func Bdi(contents ...any) aitch.Node

Bdi declares a <bdi> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdi

func Bdo added in v1.2.3

func Bdo(contents ...any) aitch.Node

Bdo declares a <bdo> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bdo

func BlockQuote

func BlockQuote(contents ...any) aitch.Node

BlockQuote declares a <blockquote> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote

func Body

func Body(contents ...any) aitch.Node

Body declares a <body> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body

func Br

func Br(contents ...any) aitch.Node

Br declares a <br> HTML element

As <br> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br

func Button

func Button(contents ...any) aitch.Node

Button declares a <button> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button

func Canvas

func Canvas(contents ...any) aitch.Node

Canvas declares a <canvas> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas

func Caption

func Caption(contents ...any) aitch.Node

Caption declares a <caption> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption

func Charset

func Charset(value ...any) aitch.Node

Charset declares an HTML "charset" attribute

only applies to Meta <meta> & Script <script> elements

func Checked

func Checked() aitch.Node

Checked declares an HTML "checked" boolean attribute

only applies to Input <input> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

func Cite

func Cite(contents ...any) aitch.Node

Cite declares a <cite> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite

func CiteAttr

func CiteAttr(value ...any) aitch.Node

CiteAttr declares an HTML "cite" attribute

only applies to BlockQuote <blockquote>, Q <q>, Del <del> & Ins <ins> elements

func Class

func Class(value ...any) aitch.Node

Class declares an HTML "class" attribute

Use multiple Class() declarations on a single element - the values are joined into one "class" attribute delimited with " " (space)

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class

func Code

func Code(contents ...any) aitch.Node

Code declares a <code> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code

func Col

func Col(contents ...any) aitch.Node

Col declares a <col> HTML element

As <col> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/col

func ColGroup

func ColGroup(contents ...any) aitch.Node

ColGroup declares a <colgroup> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/colgroup

func ColSpan

func ColSpan(value ...any) aitch.Node

ColSpan declares an HTML "colspan" attribute

only applies to Td <td> & Th <th> elements

func Cols

func Cols(value ...any) aitch.Node

Cols declares an HTML "cols" attribute

only applies to Textarea <textarea> element

func Comment

func Comment(contents ...any) aitch.Node

Comment creates a new comment Node

func Content

func Content(value ...any) aitch.Node

Content declares an HTML "content" attribute

only applies to Meta <meta> element

func ContentEditable

func ContentEditable(value ...any) aitch.Node

ContentEditable declares an HTML "contenteditable" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/contenteditable

func Controls

func Controls() aitch.Node

Controls declares an HTML "controls" boolean attribute

only applies to Audio <audio> and Video <video> elements

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio & https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func CrossOrigin

func CrossOrigin(value ...any) aitch.Node

CrossOrigin declares an HTML "crossorigin" attribute

only applies to Img <img>, Script <script>, Link <link>, Audio <audio>, Video <video>, IFrame <iframe> & svg.Use <use> elements

func Data

func Data(name string, value ...any) aitch.Node

Data declares an HTML data attribute prefixed with "data-".

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/data-*

func DataElement

func DataElement(contents ...any) aitch.Node

DataElement declares a <data> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data

func DataList

func DataList(contents ...any) aitch.Node

DataList declares a <datalist> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist

func DateTime

func DateTime(value ...any) aitch.Node

DateTime declares an HTML "datetime" attribute

only applies to Time <time> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time

func Dd

func Dd(contents ...any) aitch.Node

Dd declares a <dd> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd

func Default

func Default() aitch.Node

Default declares an HTML "default" boolean attribute

only applies to Option <option> & Track <track> elements

func Defer

func Defer() aitch.Node

Defer declares an HTML "defer" boolean attribute

only applies to Script <script> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

func Del

func Del(contents ...any) aitch.Node

Del declares a <del> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del

func Details

func Details(contents ...any) aitch.Node

Details declares a <details> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

func Dfn

func Dfn(contents ...any) aitch.Node

Dfn declares a <dfn> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dfn

func Dialog

func Dialog(contents ...any) aitch.Node

Dialog declares a <dialog> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog

func Dir

func Dir(value ...any) aitch.Node

Dir declares an HTML "dir" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir

func Disabled

func Disabled() aitch.Node

Disabled declares an HTML "disabled" boolean attribute

only applies to Button <button>, Input <input>, Select <select>, Textarea <textarea>, Option <option>, OptGroup <optgroup>, FieldSet <fieldset> & Form <form> elements

func Div

func Div(contents ...any) aitch.Node

Div declares a <div> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div

func Dl

func Dl(contents ...any) aitch.Node

Dl declares a <dl> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl

func Document

func Document(lang any, head []any, body []any) aitch.Node

Document creates a new HTML document Node

func Download

func Download(value ...any) aitch.Node

Download declares an HTML "download" attribute

only applies to A <a> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

func Draggable

func Draggable(value ...any) aitch.Node

Draggable declares an HTML "draggable" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/draggable

func Dt

func Dt(contents ...any) aitch.Node

Dt declares a <dt> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dt

func Em

func Em(contents ...any) aitch.Node

Em declares an <em> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em

func Embed

func Embed(contents ...any) aitch.Node

Embed declares an <embed> HTML element

As <embed> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed

func EncType

func EncType(value ...any) aitch.Node

EncType declares an HTML "enctype" attribute

only applies to Form <form> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form

func EnterKeyHint added in v1.2.3

func EnterKeyHint(value ...any) aitch.Node

EnterKeyHint declares an HTML "enterkeyhint" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint

func ExportParts added in v1.2.3

func ExportParts(value ...any) aitch.Node

ExportParts declares an HTML "exportparts" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts

func FieldSet

func FieldSet(contents ...any) aitch.Node

FieldSet declares a <fieldset> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset

func FigCaption

func FigCaption(contents ...any) aitch.Node

FigCaption declares a <figcaption> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption

func Figure

func Figure(contents ...any) aitch.Node

Figure declares a <figure> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure

func Footer(contents ...any) aitch.Node

Footer declares a <footer> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer

func For

func For(value ...any) aitch.Node

For declares an HTML "for" attribute

only applies to Label <label> & Output <output> elements

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

func Form

func Form(contents ...any) aitch.Node

Form declares a <form> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form

func FormAttr

func FormAttr(value ...any) aitch.Node

FormAttr declares an HTML "form" attribute

only applies to Input <input>, Button <button>, Select <select>, Textarea <textarea>, Output <output>, FieldSet <fieldset>, Label <label> & Object <object> elements

func FormNoValidate

func FormNoValidate() aitch.Node

FormNoValidate declares an HTML "formnovalidate" boolean attribute

only applies to Button <button> & Input <input> elements

func GenerateCode

func GenerateCode(r io.Reader, w io.Writer) error

GenerateCode reads HTML and writes fluent HTML code

func H1

func H1(contents ...any) aitch.Node

H1 declares a <h1> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements

func H2

func H2(contents ...any) aitch.Node

H2 declares a <h2> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements

func H3

func H3(contents ...any) aitch.Node

H3 declares a <h3> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements

func H4

func H4(contents ...any) aitch.Node

H4 declares a <h4> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements

func H5

func H5(contents ...any) aitch.Node

H5 declares a <h5> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements

func H6

func H6(contents ...any) aitch.Node

H6 declares a <h6> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Heading_Elements

func HGroup

func HGroup(contents ...any) aitch.Node

HGroup declares a <hgroup> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup

func Head(contents ...any) aitch.Node

Head declares a <head> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head

func Header(contents ...any) aitch.Node

Header declares a <header> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header

func Height

func Height(value ...any) aitch.Node

Height declares an HTML "height" attribute

only applies to Img <img>, Video <video>, Canvas <canvas>, IFrame <iframe>, Object <object>, Embed <embed> & Input <input type="image"> elements

func Hidden

func Hidden() aitch.Node

Hidden declares an HTML "hidden" boolean attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/hidden

func Hr

func Hr(contents ...any) aitch.Node

Hr declares a <hr> HTML element

As <hr> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr

func Href

func Href(value ...any) aitch.Node

Href declares an HTML "href" attribute

only applies to A <a>, Area <area>, Base <base> & Link <link> elements

func Html

func Html(contents ...any) aitch.Node

Html declares a <html> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html

func I

func I(contents ...any) aitch.Node

I declares an <i> HTML element (idiomatic text)

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i

func IFrame

func IFrame(contents ...any) aitch.Node

IFrame declares an <iframe> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe

func Id

func Id(value ...any) aitch.Node

Id declares an HTML "id" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id

func Img

func Img(contents ...any) aitch.Node

Img declares an <img> HTML element

As <img> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img

func Inert

func Inert() aitch.Node

Inert declares an HTML "inert" boolean attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inert

func Input

func Input(contents ...any) aitch.Node

Input declares an <input> HTML element

As <input> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

func InputMode added in v1.2.3

func InputMode(value ...any) aitch.Node

InputMode declares an HTML "inputmode" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inputmode

func Ins

func Ins(contents ...any) aitch.Node

Ins declares an <ins> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins

func Integrity

func Integrity(value ...any) aitch.Node

Integrity declares an HTML "integrity" attribute

only applies to Link <link> & Script <script> elements

func Is added in v1.2.3

func Is(value ...any) aitch.Node

Is declares an HTML "is" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/is

func IsMap

func IsMap() aitch.Node

IsMap declares an HTML "ismap" boolean attribute

only applies to Img <img> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img

func ItemId added in v1.2.3

func ItemId(value ...any) aitch.Node

ItemId declares an HTML "itemid" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemid

func ItemProp added in v1.2.3

func ItemProp(value ...any) aitch.Node

ItemProp declares an HTML "itemprop" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemprop

func ItemRef added in v1.2.3

func ItemRef(value ...any) aitch.Node

ItemRef declares an HTML "itemref" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemref

func ItemScope

func ItemScope() aitch.Node

ItemScope declares an HTML "itemscope" boolean attribute

func ItemType added in v1.2.3

func ItemType(value ...any) aitch.Node

ItemType declares an HTML "itemtype" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/itemtype

func Kbd

func Kbd(contents ...any) aitch.Node

Kbd declares a <kbd> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd

func Label

func Label(contents ...any) aitch.Node

Label declares a <label> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label

func Lang

func Lang(value ...any) aitch.Node

Lang declares an HTML "lang" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang

func Legend

func Legend(contents ...any) aitch.Node

Legend declares a <legend> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend

func Li

func Li(contents ...any) aitch.Node

Li declares a <li> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li

func Link(contents ...any) aitch.Node

Link declares a <link> HTML element

As <link> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link

func List

func List(value ...any) aitch.Node

List declares an HTML "list" attribute

only applies to Input <input> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

func Loading

func Loading(value ...any) aitch.Node

Loading declares an HTML "loading" attribute

only applies to Img <img> & IFrame <iframe> elements

func Loop

func Loop() aitch.Node

Loop declares an HTML "loop" boolean attribute

only applies to Audio <audio> and Video <video> elements

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio & https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func Main

func Main(contents ...any) aitch.Node

Main declares a <main> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main

func Map added in v1.2.3

func Map(contents ...any) aitch.Node

Map declares a <map> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map

func Mark

func Mark(contents ...any) aitch.Node

Mark declares a <mark> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark

func Max

func Max(value ...any) aitch.Node

Max declares an HTML "max" attribute

only applies to Input <input> & Meter <meter> elements

func MaxLength

func MaxLength(value ...any) aitch.Node

MaxLength declares an HTML "maxlength" attribute

only applies to Input <input> & Textarea <textarea> elements

func Menu(contents ...any) aitch.Node

Menu declares a <menu> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu

func Meta

func Meta(contents ...any) aitch.Node

Meta declares a <meta> HTML element

As <meta> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta

func Meter

func Meter(contents ...any) aitch.Node

Meter declares a <meter> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter

func Method

func Method(value ...any) aitch.Node

Method declares an HTML "method" attribute

only applies to Form <form> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form

func Min

func Min(value ...any) aitch.Node

Min declares an HTML "min" attribute

only applies to Input <input> & Meter <meter> elements

func MinLength

func MinLength(value ...any) aitch.Node

MinLength declares an HTML "minlength" attribute

only applies to Input <input> & Textarea <textarea> elements

func Multiple

func Multiple() aitch.Node

Multiple declares an HTML "multiple" boolean attribute

only applies to Input <input> and Select <select> elements

func Muted

func Muted() aitch.Node

Muted declares an HTML "muted" boolean attribute

only applies to Audio <audio> and Video <video> elements

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio & https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func Name

func Name(value ...any) aitch.Node

Name declares an HTML "name" attribute

only applies to Input <input>, Textarea <textarea>, Select <select>, Button <button>, Form <form>, FieldSet <fieldset>, Object <object> & Output <output> elements

func Nav(contents ...any) aitch.Node

Nav declares a <nav> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav

func NoModule

func NoModule() aitch.Node

NoModule declares an HTML "nomodule" boolean attribute

only applies to Script <script> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

func NoScript

func NoScript(contents ...any) aitch.Node

NoScript declares a <noscript> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript

func NoValidate

func NoValidate() aitch.Node

NoValidate declares an HTML "novalidate" boolean attribute

only applies to Form <form> element

func Nonce added in v1.2.3

func Nonce(value ...any) aitch.Node

Nonce declares an HTML "nonce" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce

func Object

func Object(contents ...any) aitch.Node

Object declares an <object> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object

func Ol

func Ol(contents ...any) aitch.Node

Ol declares an <ol> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol

func OnAbort

func OnAbort(value ...any) aitch.Node

OnAbort declares an HTML "onabort" event attribute

func OnAnimationEnd added in v1.2.0

func OnAnimationEnd(value ...any) aitch.Node

OnAnimationEnd declares an HTML "onanimationend" event attribute

func OnAnimationIteration added in v1.2.0

func OnAnimationIteration(value ...any) aitch.Node

OnAnimationIteration declares an HTML "onanimationiteration" event attribute

func OnAnimationStart added in v1.2.0

func OnAnimationStart(value ...any) aitch.Node

OnAnimationStart declares an HTML "onanimationstart" event attribute

func OnBeforeInput added in v1.2.0

func OnBeforeInput(value ...any) aitch.Node

OnBeforeInput declares an HTML "onbeforeinput" event attribute

func OnBeforeUnload

func OnBeforeUnload(value ...any) aitch.Node

OnBeforeUnload declares an HTML "onbeforeunload" event attribute

func OnBlur

func OnBlur(value ...any) aitch.Node

OnBlur declares an HTML "onblur" event attribute

func OnCanPlay

func OnCanPlay(value ...any) aitch.Node

OnCanPlay declares an HTML "oncanplay" event attribute

func OnCanPlayThrough

func OnCanPlayThrough(value ...any) aitch.Node

OnCanPlayThrough declares an HTML "oncanplaythrough" event attribute

func OnChange

func OnChange(value ...any) aitch.Node

OnChange declares an HTML "onchange" event attribute

func OnClick

func OnClick(value ...any) aitch.Node

OnClick declares an HTML "onclick" event attribute

func OnContextMenu

func OnContextMenu(value ...any) aitch.Node

OnContextMenu declares an HTML "oncontextmenu" event attribute

func OnCopy

func OnCopy(value ...any) aitch.Node

OnCopy declares an HTML "oncopy" event attribute

func OnCut

func OnCut(value ...any) aitch.Node

OnCut declares an HTML "oncut" event attribute

func OnDblClick

func OnDblClick(value ...any) aitch.Node

OnDblClick declares an HTML "ondblclick" event attribute

func OnDrag

func OnDrag(value ...any) aitch.Node

OnDrag declares an HTML "ondrag" event attribute

func OnDragEnd

func OnDragEnd(value ...any) aitch.Node

OnDragEnd declares an HTML "ondragend" event attribute

func OnDragEnter

func OnDragEnter(value ...any) aitch.Node

OnDragEnter declares an HTML "ondragenter" event attribute

func OnDragLeave

func OnDragLeave(value ...any) aitch.Node

OnDragLeave declares an HTML "ondragleave" event attribute

func OnDragOver

func OnDragOver(value ...any) aitch.Node

OnDragOver declares an HTML "ondragover" event attribute

func OnDragStart

func OnDragStart(value ...any) aitch.Node

OnDragStart declares an HTML "ondragstart" event attribute

func OnDrop

func OnDrop(value ...any) aitch.Node

OnDrop declares an HTML "ondrop" event attribute

func OnDurationChange

func OnDurationChange(value ...any) aitch.Node

OnDurationChange declares an HTML "ondurationchange" event attribute

func OnEnded

func OnEnded(value ...any) aitch.Node

OnEnded declares an HTML "onended" event attribute

func OnError

func OnError(value ...any) aitch.Node

OnError declares an HTML "onerror" event attribute

func OnFocus

func OnFocus(value ...any) aitch.Node

OnFocus declares an HTML "onfocus" event attribute

func OnFormData added in v1.2.0

func OnFormData(value ...any) aitch.Node

OnFormData declares an HTML "onformdata" event attribute

func OnHashChange

func OnHashChange(value ...any) aitch.Node

OnHashChange declares an HTML "onhashchange" event attribute

func OnInput

func OnInput(value ...any) aitch.Node

OnInput declares an HTML "oninput" event attribute

func OnInvalid

func OnInvalid(value ...any) aitch.Node

OnInvalid declares an HTML "oninvalid" event attribute

func OnKeyDown

func OnKeyDown(value ...any) aitch.Node

OnKeyDown declares an HTML "onkeydown" event attribute

func OnKeyPress

func OnKeyPress(value ...any) aitch.Node

OnKeyPress declares an HTML "onkeypress" event attribute

func OnKeyUp

func OnKeyUp(value ...any) aitch.Node

OnKeyUp declares an HTML "onkeyup" event attribute

func OnLoad

func OnLoad(value ...any) aitch.Node

OnLoad declares an HTML "onload" event attribute

func OnLoadedData

func OnLoadedData(value ...any) aitch.Node

OnLoadedData declares an HTML "onloadeddata" event attribute

func OnLoadedMetadata

func OnLoadedMetadata(value ...any) aitch.Node

OnLoadedMetadata declares an HTML "onloadedmetadata" event attribute

func OnMouseDown

func OnMouseDown(value ...any) aitch.Node

OnMouseDown declares an HTML "onmousedown" event attribute

func OnMouseEnter

func OnMouseEnter(value ...any) aitch.Node

OnMouseEnter declares an HTML "onmouseenter" event attribute

func OnMouseLeave

func OnMouseLeave(value ...any) aitch.Node

OnMouseLeave declares an HTML "onmouseleave" event attribute

func OnMouseMove

func OnMouseMove(value ...any) aitch.Node

OnMouseMove declares an HTML "onmousemove" event attribute

func OnMouseOut

func OnMouseOut(value ...any) aitch.Node

OnMouseOut declares an HTML "onmouseout" event attribute

func OnMouseOver

func OnMouseOver(value ...any) aitch.Node

OnMouseOver declares an HTML "onmouseover" event attribute

func OnMouseUp

func OnMouseUp(value ...any) aitch.Node

OnMouseUp declares an HTML "onmouseup" event attribute

func OnPageHide

func OnPageHide(value ...any) aitch.Node

OnPageHide declares an HTML "onpagehide" event attribute

func OnPageShow

func OnPageShow(value ...any) aitch.Node

OnPageShow declares an HTML "onpageshow" event attribute

func OnPaste

func OnPaste(value ...any) aitch.Node

OnPaste declares an HTML "onpaste" event attribute

func OnPause

func OnPause(value ...any) aitch.Node

OnPause declares an HTML "onpause" event attribute

func OnPlay

func OnPlay(value ...any) aitch.Node

OnPlay declares an HTML "onplay" event attribute

func OnPlaying

func OnPlaying(value ...any) aitch.Node

OnPlaying declares an HTML "onplaying" event attribute

func OnPointerCancel added in v1.2.0

func OnPointerCancel(value ...any) aitch.Node

OnPointerCancel declares an HTML "onpointercancel" event attribute

func OnPointerDown added in v1.2.0

func OnPointerDown(value ...any) aitch.Node

OnPointerDown declares an HTML "onpointerdown" event attribute

func OnPointerEnter added in v1.2.0

func OnPointerEnter(value ...any) aitch.Node

OnPointerEnter declares an HTML "onpointerenter" event attribute

func OnPointerLeave added in v1.2.0

func OnPointerLeave(value ...any) aitch.Node

OnPointerLeave declares an HTML "onpointerleave" event attribute

func OnPointerMove added in v1.2.0

func OnPointerMove(value ...any) aitch.Node

OnPointerMove declares an HTML "onpointermove" event attribute

func OnPointerOut added in v1.2.0

func OnPointerOut(value ...any) aitch.Node

OnPointerOut declares an HTML "onpointerout" event attribute

func OnPointerOver added in v1.2.0

func OnPointerOver(value ...any) aitch.Node

OnPointerOver declares an HTML "onpointerover" event attribute

func OnPointerUp added in v1.2.0

func OnPointerUp(value ...any) aitch.Node

OnPointerUp declares an HTML "onpointerup" event attribute

func OnPopState

func OnPopState(value ...any) aitch.Node

OnPopState declares an HTML "onpopstate" event attribute

func OnProgress

func OnProgress(value ...any) aitch.Node

OnProgress declares an HTML "onprogress" event attribute

func OnRateChange

func OnRateChange(value ...any) aitch.Node

OnRateChange declares an HTML "onratechange" event attribute

func OnReset

func OnReset(value ...any) aitch.Node

OnReset declares an HTML "onreset" event attribute

func OnResize

func OnResize(value ...any) aitch.Node

OnResize declares an HTML "onresize" event attribute

func OnScroll

func OnScroll(value ...any) aitch.Node

OnScroll declares an HTML "onscroll" event attribute

func OnSeeked

func OnSeeked(value ...any) aitch.Node

OnSeeked declares an HTML "onseeked" event attribute

func OnSeeking

func OnSeeking(value ...any) aitch.Node

OnSeeking declares an HTML "onseeking" event attribute

func OnSelect

func OnSelect(value ...any) aitch.Node

OnSelect declares an HTML "onselect" event attribute

func OnSlotChange added in v1.2.0

func OnSlotChange(value ...any) aitch.Node

OnSlotChange declares an HTML "onslotchange" event attribute

func OnStalled

func OnStalled(value ...any) aitch.Node

OnStalled declares an HTML "onstalled" event attribute

func OnSubmit

func OnSubmit(value ...any) aitch.Node

OnSubmit declares an HTML "onsubmit" event attribute

func OnSuspend

func OnSuspend(value ...any) aitch.Node

OnSuspend declares an HTML "onsuspend" event attribute

func OnTimeUpdate

func OnTimeUpdate(value ...any) aitch.Node

OnTimeUpdate declares an HTML "ontimeupdate" event attribute

func OnToggle

func OnToggle(value ...any) aitch.Node

OnToggle declares an HTML "ontoggle" event attribute

func OnTouchCancel added in v1.2.0

func OnTouchCancel(value ...any) aitch.Node

OnTouchCancel declares an HTML "ontouchcancel" event attribute

func OnTouchEnd added in v1.2.0

func OnTouchEnd(value ...any) aitch.Node

OnTouchEnd declares an HTML "ontouchend" event attribute

func OnTouchMove added in v1.2.0

func OnTouchMove(value ...any) aitch.Node

OnTouchMove declares an HTML "ontouchmove" event attribute

func OnTouchStart added in v1.2.0

func OnTouchStart(value ...any) aitch.Node

OnTouchStart declares an HTML "ontouchstart" event attribute

func OnTransitionEnd added in v1.2.0

func OnTransitionEnd(value ...any) aitch.Node

OnTransitionEnd declares an HTML "ontransitionend" event attribute

func OnUnload

func OnUnload(value ...any) aitch.Node

OnUnload declares an HTML "onunload" event attribute

func OnVolumeChange

func OnVolumeChange(value ...any) aitch.Node

OnVolumeChange declares an HTML "onvolumechange" event attribute

func OnWaiting

func OnWaiting(value ...any) aitch.Node

OnWaiting declares an HTML "onwaiting" event attribute

func Open

func Open() aitch.Node

Open declares an HTML "open" boolean attribute

only applies to Details <details> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

func OptGroup

func OptGroup(contents ...any) aitch.Node

OptGroup declares an <optgroup> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup

func Option

func Option(contents ...any) aitch.Node

Option declares an <option> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option

func Output added in v1.2.3

func Output(contents ...any) aitch.Node

Output declares a <output> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output

func P

func P(contents ...any) aitch.Node

P declares a <p> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p

func PI

func PI(name string, contents ...any) aitch.Node

PI creates a processing instruction Node

func Para

func Para(contents ...any) aitch.Node

Para declares a <p> HTML element (same as P)

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p

func Param

func Param(contents ...any) aitch.Node

Param declares a <param> HTML element

As <param> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/param

func Part added in v1.2.3

func Part(value ...any) aitch.Node

Part declares an HTML "part" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part

func Pattern

func Pattern(value ...any) aitch.Node

Pattern declares an HTML "pattern" attribute

only applies to Input <input> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

func Picture

func Picture(contents ...any) aitch.Node

Picture declares a <picture> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture

func Placeholder

func Placeholder(value ...any) aitch.Node

Placeholder declares an HTML "placeholder" attribute

only applies to Input <input> & Textarea <textarea> elements

func PlaysInline

func PlaysInline() aitch.Node

PlaysInline declares an HTML "playsinline" boolean attribute

only applies to Video <video> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func PopOver

func PopOver(value ...any) aitch.Node

PopOver declares an HTML "popover" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover

func PopOverTarget

func PopOverTarget(value ...any) aitch.Node

PopOverTarget declares an HTML "popovertarget" attribute

func PopOverTargetAction

func PopOverTargetAction(value ...any) aitch.Node

PopOverTargetAction declares an HTML "popovertargetaction" attribute

func Poster

func Poster(value ...any) aitch.Node

Poster declares an HTML "poster" attribute

only applies to Video <video> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func Pre

func Pre(contents ...any) aitch.Node

Pre declares a <pre> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre

func Preload

func Preload(value ...any) aitch.Node

Preload declares an HTML "preload" attribute

only applies to Audio <audio> and Video <video> elements

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio & https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func Progress

func Progress(contents ...any) aitch.Node

Progress declares a <progress> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress

func Q

func Q(contents ...any) aitch.Node

Q declares a <q> HTML element (inline quotation)

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q

func ReadOnly

func ReadOnly() aitch.Node

ReadOnly declares an HTML "readonly" boolean attribute

only applies to Input <input> and Textarea <textarea> elements

func ReferrerPolicy

func ReferrerPolicy(value ...any) aitch.Node

ReferrerPolicy declares an HTML "referrerpolicy" attribute

only applies to A <a>, Img <img>, IFrame <iframe>, Script <script> & Link <link> elements

func Rel

func Rel(value ...any) aitch.Node

Rel declares an HTML "rel" attribute

only applies to A <a>, Area <area>, Link <link> & Form <form> elements

func Required

func Required() aitch.Node

Required declares an HTML "required" boolean attribute

only applies to Input <input>, Select <select> and Textarea <textarea> elements

func Reversed

func Reversed() aitch.Node

Reversed declares an HTML "reversed" boolean attribute

only applies to Ol <ol> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol

func Role

func Role(value ...any) aitch.Node

Role declares an HTML "role" attribute

func RowSpan

func RowSpan(value ...any) aitch.Node

RowSpan declares an HTML "rowspan" attribute

only applies to Td <td> & Th <th> elements

func Rows

func Rows(value ...any) aitch.Node

Rows declares an HTML "rows" attribute

only applies to Textarea <textarea> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea

func Rp added in v1.2.3

func Rp(contents ...any) aitch.Node

Rp declares a <rp> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rp

func Rt added in v1.2.3

func Rt(contents ...any) aitch.Node

Rt declares a <rt> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/rt

func Ruby added in v1.2.3

func Ruby(contents ...any) aitch.Node

Ruby declares a <ruby> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby

func S

func S(contents ...any) aitch.Node

S declares an <s> HTML element (strikethrough)

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s

func Samp

func Samp(contents ...any) aitch.Node

Samp declares a <samp> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/samp

func Script

func Script(contents ...any) aitch.Node

Script declares a <script> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script

func Search(contents ...any) aitch.Node

Search declares a <search> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search

func Section

func Section(contents ...any) aitch.Node

Section declares a <section> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section

func Select

func Select(contents ...any) aitch.Node

Select declares a <select> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

func Selected

func Selected() aitch.Node

Selected declares an HTML "selected" boolean attribute

only applies to Option <option> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option

func Slot

func Slot(contents ...any) aitch.Node

Slot declares a <slot> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/slot

func SlotAttr

func SlotAttr(value ...any) aitch.Node

SlotAttr declares an HTML "slot" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/slot

func Small

func Small(contents ...any) aitch.Node

Small declares a <small> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small

func Source

func Source(contents ...any) aitch.Node

Source declares a <source> HTML element

As <source> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source

func Span

func Span(contents ...any) aitch.Node

Span declares a <span> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span

func Spellcheck

func Spellcheck() aitch.Node

Spellcheck declares an HTML "spellcheck" boolean attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck

func Src

func Src(value ...any) aitch.Node

Src declares an HTML "src" attribute

only applies to Img <img>, Audio <audio>, Video <video>, IFrame <iframe>, Script <script>, Source <source> & <frame> elements

func SrcSet

func SrcSet(value ...any) aitch.Node

SrcSet declares an HTML "srcset" attribute

only applies to Img <img> element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img

func Step

func Step(value ...any) aitch.Node

Step declares an HTML "step" attribute

only applies to Input <input type="number"> & <input type="range"> elements

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input

func Strong

func Strong(contents ...any) aitch.Node

Strong declares a <strong> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong

func Style

func Style(value ...any) aitch.Node

Style declares an HTML "style" attribute

Use multiple Style() declarations on a single element - the values are joined into one "style" attribute delimited with "; "

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/style

func StyleElement

func StyleElement(contents ...any) aitch.Node

StyleElement declares a <style> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style

func Sub

func Sub(contents ...any) aitch.Node

Sub declares a <sub> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub

func Summary

func Summary(contents ...any) aitch.Node

Summary declares a <summary> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary

func Sup

func Sup(contents ...any) aitch.Node

Sup declares a <sup> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup

func TBody

func TBody(contents ...any) aitch.Node

TBody declares a <tbody> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody

func TFoot

func TFoot(contents ...any) aitch.Node

TFoot declares a <tfoot> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot

func THead

func THead(contents ...any) aitch.Node

THead declares a <thead> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead

func TabIndex

func TabIndex(value ...any) aitch.Node

TabIndex declares an HTML "tabindex" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex

func Table

func Table(contents ...any) aitch.Node

Table declares a <table> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table

func Target

func Target(value ...any) aitch.Node

Target declares an HTML "target" attribute

only applies to A <a> & Form <form> elements

func Td

func Td(contents ...any) aitch.Node

Td declares a <td> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td

func Template

func Template(contents ...any) aitch.Node

Template declares a <template> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template

func Text

func Text(contents ...any) aitch.Node

Text creates a new text Node

func Textarea

func Textarea(contents ...any) aitch.Node

Textarea declares a <textarea> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea

func Th

func Th(contents ...any) aitch.Node

Th declares a <th> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th

func Time

func Time(contents ...any) aitch.Node

Time declares a <time> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time

func Title

func Title(value ...any) aitch.Node

Title declares an HTML "title" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/title

func TitleElement

func TitleElement(contents ...any) aitch.Node

TitleElement declares a <title> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title

func Tr

func Tr(contents ...any) aitch.Node

Tr declares a <tr> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr

func Track added in v1.2.3

func Track(contents ...any) aitch.Node

Track declares a <track> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track

func Translate

func Translate() aitch.Node

Translate declares an HTML "translate" boolean attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate

func Type

func Type(value ...any) aitch.Node

Type declares an HTML "type" attribute

only applies to Input <input>, Button <button>, Script <script>, Style <style>, Form <form> & Source <source> elements

func U

func U(contents ...any) aitch.Node

U declares a <u> HTML element (underline)

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u

func Ul

func Ul(contents ...any) aitch.Node

Ul declares a <ul> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul

func Value

func Value(value ...any) aitch.Node

Value declares an HTML "value" attribute

only applies to Input <input>, Option <option> & Button <button> elements

func Var

func Var(contents ...any) aitch.Node

Var declares a <var> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var

func Video

func Video(contents ...any) aitch.Node

Video declares a <video> HTML element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video

func Wbr

func Wbr(contents ...any) aitch.Node

Wbr declares a <wbr> HTML element

As <wbr> is a void element - any non-attribute contents are ignored

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr

func Width

func Width(value ...any) aitch.Node

Width declares an HTML "width" attribute

only applies to Img <img>, Video <video>, Canvas <canvas>, Table <table>, Input <input> & Textarea <textarea> elements

func WritingSuggestions added in v1.2.3

func WritingSuggestions(value ...any) aitch.Node

WritingSuggestions declares an HTML "writingsuggestions" attribute

global attribute - applies to any element

MDN Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/writingsuggestions

Types

type DynamicValueFunc

type DynamicValueFunc = aitch.DynamicValueFunc

DynamicValueFunc is a func that can be called to determine actual byte data to be written

A DynamicValueFunc is typically used as a content arg passed to an Attribute, Text, Comment, Fragment etc.

type DynamicValueKey

type DynamicValueKey = aitch.DynamicValueKey

DynamicValueKey is a key into the context.Context.Data and is used to provide a dynamic value that is read from the context

A DynamicValueKey is typically used as a content arg passed to an Attribute, Text, Comment, Fragment etc.

Jump to

Keyboard shortcuts

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