w3resource

Schema.org MusicRecording Type tutorial

MusicRecording

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

Hierarchy

Thing > CreativeWork > MusicRecording

MusicRecording specifies that associated content is about a musical track.

Properties

The following table described the properties of MusicPlaylist.

Properties Which type should be used Description
byArtist MusicGroup An artist who performed the musical track.
duration Duration The duration of the track. It must be in ISO 8601 date format.
inAlbum MusicAlbum The album which contains the track.
inPlaylist MusicPlaylist The playlist which contains the track.

Example

Example of MusicRecording without Microdata

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>example code MusicRecording Schema without Microdata</title>
</head>
<body>
<div>
<h1>Colonial Cousins</h1>
<ul>
<li>It's Gonna Be Alright. Duration : 6:53</li>
<li>Indian Rain. Duration : 6:33</li>
<li>Feel Alright. Duration : 5:59</li>
<li>Krishna. Duration : 5:50</li> </ul>
<p>Sa Ni Dha Pa. Duration : 5:05</p>
</div>
</body>
</html>

Example of MusicRecording with Microdata

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>example code of MusicRecording with Microdata</title>
</head>
<body>
<div itemprop="tracks" itemscope itemtype="http://schema.org/MusicRecording">
<p itemprop="name">It's Gonna Be Alright</p>
<p>Duration: <meta itemprop="duration" content="PT4M5S">6:53</p> 
<p>From album: <span itemprop="inAlbum">Colonial Cousins</span></p>
</div>
<div itemprop="tracks" itemscope itemtype="http://schema.org/MusicRecording">
<p itemprop="name">Indian Rain</p>
<p>Duration: <meta itemprop="duration" content="PT4M5S">6:33</p> 
<p>From album: <span itemprop="inAlbum">Colonial Cousins</span></p>
</div>
<div itemprop="tracks" itemscope itemtype="http://schema.org/MusicRecording">
<p itemprop="name">Feel Alright</p>
<p>Duration: <meta itemprop="duration" content="PT4M5S">5:59</p> 
<p>From album: <span itemprop="inAlbum">Colonial Cousins</span></p>
</div>
<div itemprop="tracks" itemscope itemtype="http://schema.org/MusicRecording">
<p itemprop="name">Krishna</p>
<p>Duration: <meta itemprop="duration" content="PT4M5S">5:50</p> 
<p>From album: <span itemprop="inAlbum">Colonial Cousins</span></p>
</div>
<div itemprop="tracks" itemscope itemtype="http://schema.org/MusicRecording">
<p itemprop="name">Sa Ni Dha Pa</p>
<p>Duration: <meta itemprop="duration" content="PT4M5S">5:05</p> 
<p>From album: <span itemprop="inAlbum">Colonial Cousins</span></p>
</div>
</body>
</html>

Previous: Schema.org MusicPlaylist Type tutorial
Next: Schema.org WebPage Type tutorial

Test your Programming skills with w3resource's quiz.



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/schema.org/MusicRecording.php