body

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package body provides constructors and methods for the HTML <body> element.

The <body> HTML element represents the content of an HTML document. There can be only one <body> element in a document.

Index

Constants

This section is empty.

Variables

View Source
var (
	TagOpen  = []byte("<body")
	TagClose = []byte("</body>")
)

Byte constants for HTML rendering.

Functions

func New

func New(nodes ...node.Node) *element

New creates a new body element with the given child nodes. Example: body.New(p.New(text.Text("Hello, World!"))) Renders: <body><p>Hello, World!</p></body>

Types

type Element

type Element = element

Element is an exported alias for the private element type

Jump to

Keyboard shortcuts

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