## Element.GetElementsByTagName method

Returns [`HTMLCollection`](../../../aspose.html.collections/htmlcollection/) object containing all [`elements`](../) with a given tag name, in document order.

```csharp
public HTMLCollection GetElementsByTagName(string name)
```

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | String representation of tag name. |

### Return Value

A live [`HTMLCollection`](../../../aspose.html.collections/htmlcollection/) of found elements.

## Remarks

Refer to official [spec](https://dom.spec.whatwg.org/#dom-element-getelementsbytagname).

### See Also

* class [HTMLCollection](../../../aspose.html.collections/htmlcollection/)
* class [Element](../)
* namespace [Aspose.Html.Dom](../../../aspose.html.dom/)
* assembly [Aspose.HTML](../../../)
