Img

public final class Img : GenericElement

Img tag element class

### Usage Example: ###

  let img = Img("images/banner.png")
  • tag

    Override tag element for element. Default is img

    Declaration

    Swift

    override var tag: String { get }

Initialization

  • Default initializer input text element

    Declaration

    Swift

    public init(_ src: String, attributes: AttributeType...)

    Parameters

    src

    This is a src attribute for img src String

    attributes

    This is a attr for select attributes AttributeType... CVarArg