Link

public class Link : GenericElement

link tag element class

Usage Example:

let linkTag = Link("/styles/milligram.min.css", attributes: ("rel", "stylesheet"))
  • tag

    Override tag element for element. Default is link

    Declaration

    Swift

    override var tag: String { get }

Initialization

  • Default initializer element

    Declaration

    Swift

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

    Parameters

    href

    This is a src attribute for link href String

    attributes

    This is a attr attributes AttributeType... CVarArg