package html
import "maragu.dev/gomponents/html"
Package html provides common HTML elements and attributes.
See https://developer.mozilla.org/en-US/docs/Web/HTML/Element for a list of elements.
See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes for a list of attributes.
Index ¶
- func A(children ...g.Node) g.Node
- func Abbr(children ...g.Node) g.Node
- func Accept(v string) g.Node
- func Action(v string) g.Node
- func Address(children ...g.Node) g.Node
- func Alt(v string) g.Node
- func Area(children ...g.Node) g.Node
- func Aria(name, v string) g.Node
- func Article(children ...g.Node) g.Node
- func As(v string) g.Node
- func Aside(children ...g.Node) g.Node
- func Async() g.Node
- func Audio(children ...g.Node) g.Node
- func AutoComplete(v string) g.Node
- func AutoFocus() g.Node
- func AutoPlay() g.Node
- func B(children ...g.Node) g.Node
- func Base(children ...g.Node) g.Node
- func BlockQuote(children ...g.Node) g.Node
- func Body(children ...g.Node) g.Node
- func Br(children ...g.Node) g.Node
- func Button(children ...g.Node) g.Node
- func Canvas(children ...g.Node) g.Node
- func Caption(children ...g.Node) g.Node
- func Charset(v string) g.Node
- func Checked() g.Node
- func Cite(children ...g.Node) g.Node
- func CiteAttr(v string) g.Node
- func CiteEl(children ...g.Node) g.Node
- func Class(v string) g.Node
- func Code(children ...g.Node) g.Node
- func Col(children ...g.Node) g.Node
- func ColGroup(children ...g.Node) g.Node
- func ColSpan(v string) g.Node
- func Cols(v string) g.Node
- func Content(v string) g.Node
- func Controls() g.Node
- func CrossOrigin(v string) g.Node
- func Data(name, v string) g.Node
- func DataAttr(name, v string) g.Node
- func DataEl(children ...g.Node) g.Node
- func DataList(children ...g.Node) g.Node
- func DateTime(v string) g.Node
- func Dd(children ...g.Node) g.Node
- func Defer() g.Node
- func Del(children ...g.Node) g.Node
- func Details(children ...g.Node) g.Node
- func Dfn(children ...g.Node) g.Node
- func Dialog(children ...g.Node) g.Node
- func Dir(v string) g.Node
- func Disabled() g.Node
- func Div(children ...g.Node) g.Node
- func Dl(children ...g.Node) g.Node
- func Doctype(sibling g.Node) g.Node
- func Draggable(v string) g.Node
- func Dt(children ...g.Node) g.Node
- func Em(children ...g.Node) g.Node
- func Embed(children ...g.Node) g.Node
- func EncType(v string) g.Node
- func FieldSet(children ...g.Node) g.Node
- func FigCaption(children ...g.Node) g.Node
- func Figure(children ...g.Node) g.Node
- func Footer(children ...g.Node) g.Node
- func For(v string) g.Node
- func Form(children ...g.Node) g.Node
- func FormAttr(v string) g.Node
- func FormEl(children ...g.Node) g.Node
- func H1(children ...g.Node) g.Node
- func H2(children ...g.Node) g.Node
- func H3(children ...g.Node) g.Node
- func H4(children ...g.Node) g.Node
- func H5(children ...g.Node) g.Node
- func H6(children ...g.Node) g.Node
- func HGroup(children ...g.Node) g.Node
- func HTML(children ...g.Node) g.Node
- func Head(children ...g.Node) g.Node
- func Header(children ...g.Node) g.Node
- func Height(v string) g.Node
- func Hidden(v string) g.Node
- func Hr(children ...g.Node) g.Node
- func Href(v string) g.Node
- func I(children ...g.Node) g.Node
- func ID(v string) g.Node
- func IFrame(children ...g.Node) g.Node
- func Img(children ...g.Node) g.Node
- func Input(children ...g.Node) g.Node
- func Ins(children ...g.Node) g.Node
- func Integrity(v string) g.Node
- func Kbd(children ...g.Node) g.Node
- func Label(children ...g.Node) g.Node
- func LabelAttr(v string) g.Node
- func LabelEl(children ...g.Node) g.Node
- func Lang(v string) g.Node
- func Legend(children ...g.Node) g.Node
- func Li(children ...g.Node) g.Node
- func Link(children ...g.Node) g.Node
- func List(v string) g.Node
- func Loading(v string) g.Node
- func Loop() g.Node
- func Main(children ...g.Node) g.Node
- func Mark(children ...g.Node) g.Node
- func Max(v string) g.Node
- func MaxLength(v string) g.Node
- func Menu(children ...g.Node) g.Node
- func Meta(children ...g.Node) g.Node
- func Meter(children ...g.Node) g.Node
- func Method(v string) g.Node
- func Min(v string) g.Node
- func MinLength(v string) g.Node
- func Multiple() g.Node
- func Muted() g.Node
- func Name(v string) g.Node
- func Nav(children ...g.Node) g.Node
- func NoScript(children ...g.Node) g.Node
- func Object(children ...g.Node) g.Node
- func Ol(children ...g.Node) g.Node
- func OptGroup(children ...g.Node) g.Node
- func Option(children ...g.Node) g.Node
- func P(children ...g.Node) g.Node
- func Param(children ...g.Node) g.Node
- func Pattern(v string) g.Node
- func Picture(children ...g.Node) g.Node
- func Placeholder(v string) g.Node
- func PlaysInline() g.Node
- func Poster(v string) g.Node
- func Pre(children ...g.Node) g.Node
- func Preload(v string) g.Node
- func Progress(children ...g.Node) g.Node
- func Q(children ...g.Node) g.Node
- func ReadOnly() g.Node
- func Rel(v string) g.Node
- func Required() g.Node
- func Role(v string) g.Node
- func RowSpan(v string) g.Node
- func Rows(v string) g.Node
- func S(children ...g.Node) g.Node
- func SVG(children ...g.Node) g.Node
- func Samp(children ...g.Node) g.Node
- func Script(children ...g.Node) g.Node
- func Section(children ...g.Node) g.Node
- func Select(children ...g.Node) g.Node
- func Selected() g.Node
- func Small(children ...g.Node) g.Node
- func Source(children ...g.Node) g.Node
- func Span(children ...g.Node) g.Node
- func Src(v string) g.Node
- func SrcSet(v string) g.Node
- func Step(v string) g.Node
- func Strong(children ...g.Node) g.Node
- func Style(v string) g.Node
- func StyleAttr(v string) g.Node
- func StyleEl(children ...g.Node) g.Node
- func Sub(children ...g.Node) g.Node
- func Summary(children ...g.Node) g.Node
- func Sup(children ...g.Node) g.Node
- func TBody(children ...g.Node) g.Node
- func TFoot(children ...g.Node) g.Node
- func THead(children ...g.Node) g.Node
- func TabIndex(v string) g.Node
- func Table(children ...g.Node) g.Node
- func Target(v string) g.Node
- func Td(children ...g.Node) g.Node
- func Textarea(children ...g.Node) g.Node
- func Th(children ...g.Node) g.Node
- func Time(children ...g.Node) g.Node
- func Title(v string) g.Node
- func TitleAttr(v string) g.Node
- func TitleEl(children ...g.Node) g.Node
- func Tr(children ...g.Node) g.Node
- func Type(v string) g.Node
- func U(children ...g.Node) g.Node
- func Ul(children ...g.Node) g.Node
- func Value(v string) g.Node
- func Var(children ...g.Node) g.Node
- func Video(children ...g.Node) g.Node
- func Wbr(children ...g.Node) g.Node
- func Width(v string) g.Node
Functions ¶
func A ¶
func Abbr ¶
func Accept ¶
func Action ¶
func Address ¶
func Alt ¶
func Area ¶
func Aria ¶
Aria attributes automatically have their name prefixed with "aria-".
func Article ¶
func As ¶
func Aside ¶
func Async ¶
func Audio ¶
func AutoComplete ¶
func AutoFocus ¶
func AutoPlay ¶
func B ¶
func Base ¶
func BlockQuote ¶
func Body ¶
func Br ¶
func Button ¶
func Canvas ¶
func Caption ¶
func Charset ¶
func Checked ¶
func Cite ¶
func CiteAttr ¶
func CiteEl ¶
Deprecated: Use Cite instead.
func Class ¶
func Code ¶
func Col ¶
func ColGroup ¶
func ColSpan ¶
func Cols ¶
func Content ¶
func Controls ¶
func CrossOrigin ¶
func Data ¶
Data attributes automatically have their name prefixed with "data-".
func DataAttr ¶
DataAttr attributes automatically have their name prefixed with "data-".
Deprecated: Use Data instead.
func DataEl ¶
func DataList ¶
func DateTime ¶
func Dd ¶
func Defer ¶
func Del ¶
func Details ¶
func Dfn ¶
func Dialog ¶
func Dir ¶
func Disabled ¶
func Div ¶
func Dl ¶
func Doctype ¶
Doctype returns a special kind of g.Node that prefixes its sibling with the string "<!doctype html>".
func Draggable ¶
func Dt ¶
func Em ¶
func Embed ¶
func EncType ¶
func FieldSet ¶
func FigCaption ¶
func Figure ¶
func Footer ¶
func For ¶
func Form ¶
func FormAttr ¶
func FormEl ¶
Deprecated: Use Form instead.
func H1 ¶
func H2 ¶
func H3 ¶
func H4 ¶
func H5 ¶
func H6 ¶
func HGroup ¶
func HTML ¶
func Head ¶
func Header ¶
func Height ¶
func Hidden ¶
func Hr ¶
func Href ¶
func I ¶
func ID ¶
func IFrame ¶
func Img ¶
func Input ¶
func Ins ¶
func Integrity ¶
func Kbd ¶
func Label ¶
func LabelAttr ¶
func LabelEl ¶
Deprecated: Use Label instead.
func Lang ¶
func Legend ¶
func Li ¶
func Link ¶
func List ¶
func Loading ¶
func Loop ¶
func Main ¶
func Mark ¶
func Max ¶
func MaxLength ¶
func Menu ¶
func Meta ¶
func Meter ¶
func Method ¶
func Min ¶
func MinLength ¶
func Multiple ¶
func Muted ¶
func Name ¶
func Nav ¶
func NoScript ¶
func Object ¶
func Ol ¶
func OptGroup ¶
func Option ¶
func P ¶
func Param ¶
func Pattern ¶
func Picture ¶
func Placeholder ¶
func PlaysInline ¶
func Poster ¶
func Pre ¶
func Preload ¶
func Progress ¶
func Q ¶
func ReadOnly ¶
func Rel ¶
func Required ¶
func Role ¶
func RowSpan ¶
func Rows ¶
func S ¶
func SVG ¶
func Samp ¶
func Script ¶
func Section ¶
func Select ¶
func Selected ¶
func Small ¶
func Source ¶
func Span ¶
func Src ¶
func SrcSet ¶
func Step ¶
func Strong ¶
func Style ¶
func StyleAttr ¶
Deprecated: Use Style instead.
func StyleEl ¶
func Sub ¶
func Summary ¶
func Sup ¶
func TBody ¶
func TFoot ¶
func THead ¶
func TabIndex ¶
func Table ¶
func Target ¶
func Td ¶
func Textarea ¶
func Th ¶
func Time ¶
func Title ¶
func TitleAttr ¶
Deprecated: Use Title instead.
func TitleEl ¶
func Tr ¶
func Type ¶
func U ¶
func Ul ¶
func Value ¶
func Var ¶
func Video ¶
func Wbr ¶
func Width ¶
Source Files ¶
attributes.go elements.go
- Version
- v1.0.0 (latest)
- Published
- Oct 11, 2024
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 1 month ago –
Tools for package owners.