Documentation
¶
Overview ¶
Package picture provides constructors and methods for the HTML <picture> element.
The <picture> HTML element provides a container for multiple image sources, enabling art direction and responsive images. Contains zero or more <source> elements followed by one <img> element. Allows serving different images based on viewport size, resolution, or format support. Essential for responsive design, serving modern image formats with fallbacks, and optimising bandwidth across devices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TagOpen = []byte("<picture") TagClose = []byte("</picture>") )
Byte constants for HTML rendering.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.