object src extends Attr
track - Address of the track (.vtt
file). Must be a valid URL. This attribute must be defined.
source - Required for <audio>
and <video>
, address of the media resource. The value of this attribute is ignored when the <source>
element is placed inside a <picture>
element.
video - The URL of the video to embed. This is optional; you may instead use the <source>
element within the video block to specify the video to embed.
audio - The URL of the audio to embed. This is subject to HTTP access controls. This is optional; you may instead use the <source>
element within the audio block to specify the audio to embed.
img - The image URL. This attribute is mandatory for the <img>
element. On browsers supporting srcset
, src
is treated like a candidate image with a pixel density descriptor 1x
unless an image with this pixel density descriptor is already defined in srcset,
or unless srcset
contains 'w
' descriptors.
input - If the value of the type attribute is image
, this attribute specifies a URI for the location of an image to display on the graphical submit button, otherwise it is ignored.
iframe - The URL of the page to embed. Use 'about:blank' for empty pages that conform to Same-Origin Policy.
embed - The URL of the resource being embedded.
script - This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document. If a script
element has a src
attribute specified, it should not have a script embedded inside its tags.
- Alphabetic
- By Inheritance
- src
- Attr
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def :=(v: Option[String]): OptionalAttrPair[_src_attr.type]
- Annotations
- @inline()
- def :=(v: String): AttrPair[_src_attr.type]
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- implicit object tag extends TagElement