Documentation
¶
Overview ¶
Package base provides constructors and methods for the HTML <base> element.
The <base> HTML element specifies the base URL to use for all relative URLs in a document and the default target browsing context for links. Only one <base> element is permitted per document, and it should appear in the <head> before any elements with URLs. Useful for single-page applications, documentation sites, and pages served from different paths than their assets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TagOpen = []byte("<base") AttrHref = []byte(" href=\"") AttrTarget = []byte(" target=\"") )
Byte constants for HTML rendering.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.