HTML itemtype Attribute Last Updated : 30 Aug, 2024 Comments Improve Suggest changes Like Article Like Report The itemtype attribute specifies the URL but the URLs are not connected with any resources rather they are used by browsers to act as the identifiers. The itemtype attribute can only be specified on those elements that contain the itemscope attribute otherwise it will not execute properly. The types of items used in the itemtype URL must be of those types that are defined in the specifications provided by schema.org. Some of the browsers that refer to microdata on schema.org look for specific resources on the webpage and there these itemtype and itemscope attributes are mostly used. The itemtype attribute should have a value containing the unordered set of unique tokens & that are case-sensitive, specifying each contains the absolute & valid URL. The value of the attribute should contain a minimum of 1 token.Syntax:<div itemscope itemtype="URL"> <span itemprop="item1">item name</span> <span itemprop="item2">item name</span></div>Note: The itemtype must be a URL or you can also use URN (Uniform Resource Name) as we have used in the below example.Attribute Value: The attribute must contain a valid URL consisting of no leading & trailing whitespaces.Supported tags:<div><span>Example 1: This example describes the implementation of the itemtype attribute in HTML. HTML <!DOCTYPE html> <html> <head> <title>HTML itemtype attribute</title> </head> <body> <h1>GeeksforGeeks</h1> <h4>Tutorials and Courses</h4> <div itemscope itemtype= "http://geeksforgeeks.org"> <span itemprop="description"> GeeksforGeeks is a portal for geeks. It has tutorials on various topics. </span> <br> Course: <span itemprop="course">Java</span> <br> Tutorial: <span itemprop="tutorial">C++</span> <br> </div> </body> </html> Output:Example 2: This example describes the itemtype attribute, by specifying the itemprop that describes the property of an item. HTML <!DOCTYPE html> <html> <head> <title>HTML itemtype attribute</title> </head> <body> <h1>GeeksforGeeks</h1> <h4>Paid Courses</h4> <div itemscope itemtype= "http://geeksforgeeks.org"> <span itemprop="product" itemtype= "http://geeksforgeeks.org/product"> GeeksforGeeks is a portal for geeks. </span><br><br> Course: <span itemprop="course"> Data Structures and Algorithms </span><br> Tutorial: <span itemprop="tutorial"> Core Java </span> </div> </body> </html> Output:Supported Browser: The browser that supports the itemtype attribute are listed below:Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML itemtype Attribute T tarunsinghwap7 Follow Improve Article Tags : HTML HTML-Attributes Similar Reads HTML type Attribute The type attribute in HTML specifies the type of content associated with an element, such as the button type, the media type of a source in an audio or video tag, or the type of input in a form element. Syntax: <element type="value"> Note: This attribute has been DEPRECATED and is no longer re 2 min read HTML style attribute The HTML style attribute allows CSS to be applied directly within HTML tags. This enables styling of an element without the need for an external CSS file or a <style> block. It provides a quick, inline way to apply styles to individual elements.Syntax<tagname style="property: value;"> Co 5 min read HTML multiple Attribute HTML multiple attribute is used to add several settings to a single element, enhancing its functionality. For example, a link can have both href and target attribute, determining where it leads and how it opens. Using multiple attributes allows you to customize your HTML elements to better suit your 2 min read HTML | <li> type Attribute The <li> type attribute in HTML is used to specify the type of a list items. This attribute also defines the style of the bullet point of the list items. Syntax: <li type="1|a|A|i|I|disc|circle|square"> Attribute Values: For ordered list items: 1: It is the default value. It is used to s 2 min read HTML <menuitem> type Attribute The type attribute in <menuitem> tag is used to define the type of commands of the menuitems.  Syntax:<menuitem type="command|checkbox|radio">Attribute Values:command: It has a Default value. It defines  a standard order with an actioncheckbox: It defines a command that can be toggled us 1 min read Like