AmpImage Properties |
The AmpImage type exposes the following members.
Name | Description | |
---|---|---|
![]() | Alt |
A string of alternate text, similar to the alt attribute on img.
|
![]() | Attributes |
AMP provides a set of common attributes that are extended to many AMP components.
(Inherited from AmpComponent.) |
![]() | Fallback |
A fallback is a convention that allows the element to communicate to the reader that the browser does not support the element.
(Inherited from AmpComponent.) |
![]() | IsValid |
Indicates whether this image is valid of AmpImage.
|
![]() | Placeholder |
The element marked with the placeholder attribute acts as a placeholder for the parent AMP element. If specified, a placeholder element must be a direct child of the AMP element.
(Inherited from AmpComponent.) |
![]() | RequiredScript |
Required script that muct be added to head section.
(Overrides AmpComponentRequiredScript.) |
![]() | Src |
Similar to the src attribute on the img tag. The value must be a URL that points to a publicly-cacheable image file
|