![]() |
The HTML itemscope attribute works with item types to ensure that the HTML contained in a block is about a particular item. Defining the itemscope attribute for any element creates a new item, which results in a number of name-value pairs that are associated with the element. Syntax: <element itemscope></element> Example 1: Below example illustrates the itemscope attribute in HTML. HTML
Output: Structured data: The following table shows the structured data from the preceding example.
Example 2: HTML
Output: Structured data: The following table shows the structured data from the preceding example.
Supported Browsers:
|
Reffered: https://www.geeksforgeeks.org
HTML |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |