element-properties - clarify .tagName

This commit is contained in:
2020-11-07 17:20:21 +05:30
parent e69f0bff69
commit 6db114a326
+2 -2
View File
@@ -12,9 +12,9 @@ import MDN from "../components/MDNBadge"
`Element.tagName: string`
This property returns the **tag name** of any element in uppercase form. This is useful to identify type of a element.
This read-only property on any element returns the **tag name** in uppercase form. This is useful to identify type of a element.
Ex. tagName of `<div/>` element is `"DIV"`.
Ex. `.tagName` of `<div/>` element is `"DIV"`.
```js
<img id="someImage" src="test.jpg" />