# ViewStructure.HtmlInfo

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# HtmlInfo

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/view/ViewStructure.HtmlInfo "View this page in Java")  

```
abstract class HtmlInfo
```

|---|----------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                             ||
| ↳ | [android.view.ViewStructure.HtmlInfo](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo#) |

Simplified representation of the HTML properties of a node that represents an HTML element.

## Summary

|                                                                                                           Nested classes                                                                                                           ||
|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract | [Builder](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo.Builder) Builder for[HtmlInfo](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo#)objects. |

|                                                   Public constructors                                                   ||
|----------------------------------------------------------------------------------------------------------------------|---|
| [HtmlInfo](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo#HtmlInfo())`()` <br /> |

|                                                                                                                                                                                                                                                            Public methods                                                                                                                                                                                                                                                             ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\<[Pair](https://developer.android.com/reference/kotlin/android/util/Pair.html#)\<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!,[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!\>!\>? | [getAttributes](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo#getAttributes())`()` Gets the list of HTML attributes. |
| abstract[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                                                                                                                                                                                                                                                                   | [getTag](https://developer.android.com/reference/kotlin/android/view/ViewStructure.HtmlInfo#getTag())`()` Gets the HTML tag.                              |

## Public constructors

### HtmlInfo

```
HtmlInfo()
```

## Public methods

### getAttributes

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun getAttributes(): MutableList<Pair<String!, String!>!>?
```

Gets the list of HTML attributes.

|                                                                                                                                                                                                                            Return                                                                                                                                                                                                                            ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------|
| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)<[Pair](https://developer.android.com/reference/kotlin/android/util/Pair.html#)<[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!,` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!>!>? | list of key/value pairs; could contain pairs with the same keys. This value may be`null`. |

### getTag

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun getTag(): String
```

Gets the HTML tag.

|                                                    Return                                                     ||
|----------------------------------------------------------------------------------|-----------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | This value cannot be`null`. |