Documentation
¶
Overview ¶
Package embed provides constructors and methods for the HTML <embed> element.
The <embed> HTML element embeds external content at the specified point in the document. This content is provided by an external application or other source of interactive content such as a browser plug-in.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( TagOpen = []byte("<embed") AttrSrc = []byte(" src=\"") AttrType = []byte(" type=\"") AttrWidth = []byte(" width=\"") AttrHeight = []byte(" height=\"") )
Byte constants for HTML rendering.
Functions ¶
func Flash
deprecated
Flash creates an embed element for Flash content (legacy) Example: embed.Flash("animation.swf", 640, 480) Renders: <embed src="animation.swf" type="application/x-shockwave-flash" width="640" height="480" />
Deprecated: Flash is no longer supported by browsers.
func New ¶
func New() *element
New creates a new embed element without any initial attributes. Example: embed.New() Renders: <embed />