init(attributes:content:)

Creates a new HTML element with the specified attributes and content.

Html+Elements.swift:43
init(attributes: [HTMLAttribute<Tag>], @HTMLBuilder content: () -> Content)
  • attributes: The attributes to apply to the element as an array.

  • content: The content of the element.