HTMLAttribute

public struct HTMLAttribute

Describes the attributes in an HTML tag, for example:

<a href='https://example.org'>

Would have 1 attribute, with a name "href", and value "https://example.org"

  • The name of the attribute, which comes before the =.

    Declaration

    Swift

    public let name: String
  • The value in the attribute, which comes after the =.

    Declaration

    Swift

    public let value: String