H4

public struct H4: Html

A wrapper for the HTML ‘h4’ element.

  • The HTML string generated for the content of this element.

    Declaration

    Swift

    public var html: String
  • Create a new ‘h4’ element.

    Declaration

    Swift

    public init(_ klass: [String], _ id: String?, _ content: [Html])

    Parameters

    klass

    The CSS class names that can be used to configure this item

    id

    The CSS id name that configure this element

    content

    The content for this element

  • Create a new ‘h4’ element.

    Declaration

    Swift

    public init(klass: [String] = [], _ content: [Html])

    Parameters

    klass

    (Optional) The CSS class names that can be used to configure this item

    content

    The content for this element

  • Create a new ‘h4’ element.

    Declaration

    Swift

    public init(klass: String, _ content: [Html])

    Parameters

    klass

    The CSS class name that can be used to configure this item

    content

    The content for this element

  • Create a new ‘h4’ element.

    Declaration

    Swift

    public init(klass: [String] = [], _ content: Html...)

    Parameters

    klass

    (Optional) The CSS class names that can be used to configure this item

    content

    The content for this element

  • Create a new ‘h4’ element.

    Declaration

    Swift

    public init(klass: String, _ content: Html...)

    Parameters

    klass

    The CSS class name that can be used to configure this item

    content

    The content for this element

  • Create a new ‘h4’ element.

    Declaration

    Swift

    public init(id: String, _ content: [Html])

    Parameters

    id

    The CSS id name that configure this element

    content

    The content for this element

  • Create a new ‘h4’ element.

    Declaration

    Swift

    public init(id: String, _ content: Html...)

    Parameters

    id

    The CSS id name that configure this element

    content

    The content for this element

  • Appends the given content to the already present content (i.e. after)

    Declaration

    Swift

    public mutating func append(_ content: Html)

    Parameters

    content

    The content to be added