mirror of
https://github.com/bendtherules/UiQuestions.git
synced 2026-08-18 13:52:50 +00:00
element-properties - clarify .tagName
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user