w3resource logo


Movie - Schema.org tutorial

Schema.org Movie Type tutorial

Secondary Nav

Introduction

In this page, we have discussed Movie type of Schema.org in detail.

Hierarchy

Thing > CreativeWork > Movie

Description

Movie specifies that associated content is about a Movie.

Properties

The following table described the properties of Movie.

PropertiesWhich type should be usedDescription
actorsPersonAn actor of the movie, TV series, season, or episode, or video.
directorPersonThe director of the movie, TV episode, or series.
durationDurationThe duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
musicByPerson or MusicGroupThe composer of the movie or Video or TV episode.
producerPersonThe producer of the movie, TV series, season, or episode, or video.
productionCompanyOrganizationThe production company or studio that made the movie, TV series, season, or episode, or video.
trailerOrganizationThe trailer of the movie or TV series, season, or episode.

Example

Example of Movie without Microdata

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>example code Movie Schema without Microdata</title>
</head>
<body>
<div>
<h1>Rise of the Planet of the Apes</h1>
<p>Director : Rupert Wyatt</p> <p>Procucer : Chernin Entertainment, Twentieth Century Fox Film Corporation.</p>
<p>Key Cast : </p>
<ul>
<li>James Franco as Will Rodman</li>
<li>Freida Pinto as Caroline Aranha</li>
<li>John Lithgow as Charles Rodman</li>
<li>Chelah Horsdal as Irena</li> </ul>
<p>Genre : Science Fiction</p>
<p>Motion Picture Rating : MPAAA</a>
<p>Tags : Evolution Ends. Revolution Begins</p>
</div>
</body>
</html>

Example of Movie with Microdata

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>example code of Movie with Microdata</title>
<a rel="author" href="https://profiles.google.com/103074333439002308043/posts">Bidhan Chatterjee</a> </head>
<body>
<itemscope itemtype="http://schema.org/Movie">
<h1 itemprop="name">Rise of the Planet of the Apes</h1>
<div itemprop="director" itemscope itemtype="http://schema.org/Person">
<p itemprop="name">Director : Rupert Wyatt</p> 
<div itemprop="productionCompany" itemscope itemtype="http://schema.org/Organization">
<p itemprop="name">Procucer : Chernin Entertainment, Twentieth Century Fox Film Corporation.</p>
<div itemprop="duration" itemscope itemtype="http://schema.org/Duration">
<p>Duration of the Movie is 105 min.</p>
<div itemprop="actors" itemscope itemtype="http://schema.org/Person">
<ul>
<li itemprop="name">James Franco as Will Rodman</li>
<li itemprop="name">Freida Pinto as Caroline Aranha</li>
<li itemprop="name">John Lithgow as Charles Rodman</li>
<li itemprop="name">Chelah Horsdal as Irena</li> </ul>
<p itemprop="genre">Genre : Science Fiction</p>
<p itemprop="contentRating">Motion Picture Rating : MPAAA</a>
<p itemprop="keywords">Tags : Evolution Ends. Revolution Begins</p>
</div>
</body>
</html>