# CategoryCode - Schema.org Type

> Source: https://schema.org/CategoryCode
> Extracted: 2026-02-16T15:55:35.762Z

---

**Note**: You are viewing the development version of [Schema.org](https://schema.org/). See [how we work](https://schema.org/docs/howwework.html) for more details.

A Schema.org Type

*This term is in the "new" area - implementation feedback and adoption from applications and websites can help improve our definitions.*

A Category Code.

Property

Expected Type

Description

Properties from [CategoryCode](https://schema.org/CategoryCode "CategoryCode")

`[codeValue](https://schema.org/codeValue "codeValue")`

[Text](https://schema.org/Text "Text")

A short textual code that uniquely identifies the value.

`[inCodeSet](https://schema.org/inCodeSet "inCodeSet")`

[CategoryCodeSet](https://schema.org/CategoryCodeSet "CategoryCodeSet")  or  
[URL](https://schema.org/URL "URL")

A [CategoryCodeSet](https://schema.org/CategoryCodeSet) that contains this category code.

Properties from [DefinedTerm](https://schema.org/DefinedTerm "DefinedTerm")

`[about](https://schema.org/about "about")`

[Thing](https://schema.org/Thing "Thing")

The subject matter of an object.  
Inverse property: [subjectOf](https://schema.org/subjectOf "subjectOf")

`[inDefinedTermSet](https://schema.org/inDefinedTermSet "inDefinedTermSet")`

[DefinedTermSet](https://schema.org/DefinedTermSet "DefinedTermSet")  or  
[URL](https://schema.org/URL "URL")

A [DefinedTermSet](https://schema.org/DefinedTermSet) that contains this term.

`[termCode](https://schema.org/termCode "termCode")`

[Text](https://schema.org/Text "Text")

A code that identifies this [DefinedTerm](https://schema.org/DefinedTerm) within a [DefinedTermSet](https://schema.org/DefinedTermSet).

Properties from [Thing](https://schema.org/Thing "Thing")

`[additionalType](https://schema.org/additionalType "additionalType")`

[Text](https://schema.org/Text "Text")  or  
[URL](https://schema.org/URL "URL")

An additional type for the item, typically used for adding more specific types from external vocabularies in microdata syntax. This is a relationship between something and a class that the thing is in. Typically the value is a URI-identified RDF class, and in this case corresponds to the use of rdf:type in RDF. Text values can be used sparingly, for cases where useful information can be added without their being an appropriate schema to reference. In the case of text values, the class label should follow the schema.org [style guide](https://schema.org/docs/styleguide.html).

`[alternateName](https://schema.org/alternateName "alternateName")`

[Text](https://schema.org/Text "Text")

An alias for the item.

`[description](https://schema.org/description "description")`

[Text](https://schema.org/Text "Text")  or  
[TextObject](https://schema.org/TextObject "TextObject")

A description of the item.

`[disambiguatingDescription](https://schema.org/disambiguatingDescription "disambiguatingDescription")`

[Text](https://schema.org/Text "Text")

A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.

`[identifier](https://schema.org/identifier "identifier")`

[PropertyValue](https://schema.org/PropertyValue "PropertyValue")  or  
[Text](https://schema.org/Text "Text")  or  
[URL](https://schema.org/URL "URL")

The identifier property represents any kind of identifier for any kind of [Thing](https://schema.org/Thing), such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](https://schema.org/docs/datamodel.html#identifierBg) for more details.

`[image](https://schema.org/image "image")`

[ImageObject](https://schema.org/ImageObject "ImageObject")  or  
[URL](https://schema.org/URL "URL")

An image of the item. This can be a [URL](https://schema.org/URL) or a fully described [ImageObject](https://schema.org/ImageObject).

`[mainEntityOfPage](https://schema.org/mainEntityOfPage "mainEntityOfPage")`

[CreativeWork](https://schema.org/CreativeWork "CreativeWork")  or  
[URL](https://schema.org/URL "URL")

Indicates a page (or other CreativeWork) for which this thing is the main entity being described. See [background notes](https://schema.org/docs/datamodel.html#mainEntityBackground) for details.  
Inverse property: [mainEntity](https://schema.org/mainEntity "mainEntity")

`[name](https://schema.org/name "name")`

[Text](https://schema.org/Text "Text")

The name of the item.

`[owner](https://schema.org/owner "owner")`

[Organization](https://schema.org/Organization "Organization")  or  
[Person](https://schema.org/Person "Person")

A person or organization who owns this Thing.  
Inverse property: [owns](https://schema.org/owns "owns")

`[potentialAction](https://schema.org/potentialAction "potentialAction")`

[Action](https://schema.org/Action "Action")

Indicates a potential Action, which describes an idealized action in which this thing would play an 'object' role.

`[sameAs](https://schema.org/sameAs "sameAs")`

[URL](https://schema.org/URL "URL")

URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.

`[subjectOf](https://schema.org/subjectOf "subjectOf")`

[CreativeWork](https://schema.org/CreativeWork "CreativeWork")  or  
[Event](https://schema.org/Event "Event")

A CreativeWork or Event about this Thing.  
Inverse property: [about](https://schema.org/about "about")

`[url](https://schema.org/url "url")`

[URL](https://schema.org/URL "URL")

URL of the item.

Instances of [CategoryCode](https://schema.org/CategoryCode "CategoryCode") may appear as a value for the following properties

Property

On Types

Description

[category](https://schema.org/category "category")

[ActionAccessSpecification](https://schema.org/ActionAccessSpecification "ActionAccessSpecification")  or  
[Guide](https://schema.org/Guide "Guide")  or  
[Invoice](https://schema.org/Invoice "Invoice")  or  
[Offer](https://schema.org/Offer "Offer")  or  
[PhysicalActivity](https://schema.org/PhysicalActivity "PhysicalActivity")  or  
[Product](https://schema.org/Product "Product")  or  
[Recommendation](https://schema.org/Recommendation "Recommendation")  or  
[Service](https://schema.org/Service "Service")  or  
[SpecialAnnouncement](https://schema.org/SpecialAnnouncement "SpecialAnnouncement")

A category for the item. Greater signs or slashes can be used to informally indicate a category hierarchy.

[hasCategoryCode](https://schema.org/hasCategoryCode "hasCategoryCode")

[CategoryCodeSet](https://schema.org/CategoryCodeSet "CategoryCodeSet")

A Category code contained in this code set.

[legislationType](https://schema.org/legislationType "legislationType")

[Legislation](https://schema.org/Legislation "Legislation")

The type of the legislation. Examples of values are "law", "act", "directive", "decree", "regulation", "statutory instrument", "loi organique", "règlement grand-ducal", etc., depending on the country.

[occupationalCategory](https://schema.org/occupationalCategory "occupationalCategory")

[EducationalOccupationalProgram](https://schema.org/EducationalOccupationalProgram "EducationalOccupationalProgram")  or  
[JobPosting](https://schema.org/JobPosting "JobPosting")  or  
[Occupation](https://schema.org/Occupation "Occupation")  or  
[Physician](https://schema.org/Physician "Physician")  or  
[WorkBasedProgram](https://schema.org/WorkBasedProgram "WorkBasedProgram")

A category describing the job, preferably using a term from a taxonomy such as [BLS O\*NET-SOC](http://www.onetcenter.org/taxonomy.html), [ISCO-08](https://www.ilo.org/public/english/bureau/stat/isco/isco08/) or similar, with the property repeated for each applicable value. Ideally the taxonomy should be identified, and both the textual label and formal code for the category should be provided.

Note: for historical reasons, any textual label and formal code provided as a literal may be assumed to be from O\*NET-SOC.

#### More specific Types

-   [MedicalCode](https://schema.org/MedicalCode "MedicalCode")

#### Source

[https://github.com/schemaorg/schemaorg/issues/894](https://github.com/schemaorg/schemaorg/issues/894)

  

### Examples

Example notes or example HTML without markup.

<div>
	 <h1 >Defined Values in The Mammal Classification List</h1>
	 <ul>
		<li>Carnivore - A mammal that feeds on other animals</li>
	 </ul>
</div>

Example encoded as [Microdata](https://en.wikipedia.org/wiki/Microdata_\(HTML\)) embedded in HTML.

<div itemscope itemtype="https://schema.org/CategoryCodeSet" id="C1">
	 <h1>Defined Values in <span itemprop="name">The Mammal Classification List</span></h1>
	 <ul>
		<li itemprop="hasCategoryCode" itemscope itemtype="https://schema.org/CategoryCode">
			<span itemprop="name">Carnivore</span> - <span itemprop="description">A mammal that feeds on other animals</span>
			<link itemprop="inCodeSet" href="#C1"/>
		</li>
	 </ul>
</div>

Example encoded as [RDFa](https://en.wikipedia.org/wiki/RDFa) embedded in HTML.

<div vocab="https://schema.org/" typeof="CategoryCodeSet" id="C1">
	 <h1>Defined Values in <span property="name">The Mammal Classification List</span></h1>
	 <ul>
		<li property="hasCategoryCode" typeof="CategoryCode">
			<span property="name">Carnivore</span> - <span property="description">A mammal that feeds on other animals</span>
			<link property="inCodeSet" href="#C1"/>
		</li>
	 </ul>
</div>

Example encoded as [JSON-LD](https://en.wikipedia.org/wiki/JSON-LD) in a HTML script tag.

{
 "@context": "https://schema.org/",
 "@type": "CategoryCodeSet",
 "@id": "\_C1",
 "name": "The Mammal Classification List",
 "hasCategoryCode": {
	"@type": "CategoryCode",
	"name": "Carnivore",
	"description": "A mammal that feeds on other animals",
	"inCodeSet": "\_C1"
	}
}

Structured representation of the JSON-LD example.

Example notes or example HTML without markup.

<div>
	<h1>ISO 639-2: Codes for the Representation of Names of Languages<h1>
	<h2>Listing of codes:</h2>
	<ul>
		<li>...</li>
		<li>cze</li>
		<li>...</li>
	</ul>
</div>
<div>
	<h2>Czech; tchèque; Tschechisch</h2>
	<h3>From: ISO 639-2: Codes for the Representation of Names of Languages</h3>
	English: Czech<br/>
	French: tchèque<br/>
	German: Tschechisch<br/>
</div>

Example encoded as [Microdata](https://en.wikipedia.org/wiki/Microdata_\(HTML\)) embedded in HTML.

<div itemscope itemtype="https://schema.org/CategoryCodeSet" itemid="http://id.loc.gov/vocabulary/iso639-2">
	<h1 itemprop="name">ISO 639-2: Codes for the Representation of Names of Languages</h1>
	<h2>Listing of codes:</h2>
	<ul>
		<li>...</li>
		<li><span itemprop="hasCategoryCode" itemid="http://id.loc.gov/vocabulary/iso639-2/cze">cze</span></li>
		<li>...</li>
	</ul>
</div>
<div itemscope itemtype="https://schema.org/CategoryCode" itemid="http://id.loc.gov/vocabulary/iso639-2/cze">
	<meta itemprop="codeValue" content="cze">
	<h2>Czech; tchèque; Tschechisch</h2>
	<link itemprop="inCodeSet" href="http://id.loc.gov/vocabulary/iso639-2">
	<h3>From: ISO 639-2: Codes for the Representation of Names of Languages</h3>
	<span itemprop="name" xml:lang="en" content="Czech">English: Czech</span><br/>
	<span itemprop="name" xml:lang="fr" content="tchèque">French: tchèque</span><br/>
	<span itemprop="name" xml:lang="de" content="Tschechisch">German: Tschechisch</span><br/>
</div>

Example encoded as [RDFa](https://en.wikipedia.org/wiki/RDFa) embedded in HTML.

<div vocab="https://schema.org/" typeof="CategoryCodeSet" resource="http://id.loc.gov/vocabulary/iso639-2">
	<h1 property="name">ISO 639-2: Codes for the Representation of Names of Languages</h1>
	<h2>Listing of codes:</h2>
	<ul>
		<li>...</li>
		<li><span property="hasCategoryCode" resource="http://id.loc.gov/vocabulary/iso639-2/cze">cze</span></li>
		<li>...</li>
	</ul>
</div>
<div vocab="https://schema.org/" typeof="CategoryCode" resource="http://id.loc.gov/vocabulary/iso639-2/cze">
	<meta property="codeValue" content="cze">
	<h2>Czech; tchèque; Tschechisch</h2>
	<link property="inCodeSet" href="http://id.loc.gov/vocabulary/iso639-2">
	<h3>From: ISO 639-2: Codes for the Representation of Names of Languages</h3>
	<span property="name" xml:lang="en" content="Czech">English: Czech</span><br/>
	<span property="name" xml:lang="fr" content="tchèque">French: tchèque</span><br/>
	<span property="name" xml:lang="de" content="Tschechisch">German: Tschechisch</span><br/>
</div>

Example encoded as [JSON-LD](https://en.wikipedia.org/wiki/JSON-LD) in a HTML script tag.

\[
	{
		"@context": "https://schema.org/"
	},
	{
		"@type": "CategoryCodeSet",
		"@id": "http://id.loc.gov/vocabulary/iso639-2",
		"name": "ISO 639-2: Codes for the Representation of Names of Languages",
		"hasCategoryCode": "http://id.loc.gov/vocabulary/iso639-2/cze"
	},
	{
		"@type": "CategoryCode",
		"@id": "http://id.loc.gov/vocabulary/iso639-2/cze",
		"codeValue": "cze",
		"name": {
			"en": "Czech",
			"fr": "tchèque",
			"de": "Tschechisch"
		},
		"inCodeSet": "http://id.loc.gov/vocabulary/iso639-2"
	}
\]

Structured representation of the JSON-LD example.