CC REL by Example
CC REL by Example
Table of Contents
Foreward
Basic Marking
License metadata
License metadata with license image
Attribution metadata
More metadata: Title, type, and subjects.
Individual Objects on a Page
Text Block
Images
Video
HTML5 video with one source tag and metadata
HTML5 video with multiple source tags
Non-HTML5 video
Datasets
CC BY dataset, with license and attribution metadata
CC0 dataset, with license and attribution metadata
Multiple CC Licenses on a Page
Multiple CC objects: Text and Image
Attributing Reuses
Attributing a single-source remix
Attributing a multiple-source remix
Public Domain Content
CC0
Public Domain Mark
Marking Copyright Registration
Marking a work as registered (CC Network)
More Resources
Foreward
This resource assumes some basic knowledge of HTML and RDFa. Many of the later examples build on ideas from previous examples. If there is something in an example that isn't explained, check previous examples for an explanation.
Validating your RDFa can help you catch syntax errors or other problems with your metadata. For more information on RDFa validation, see the
How-tovalidate page
on the RDFa wiki.
This resource contains material adapted from
ccREL: The Creative Commons Rights Expression Language
by
Creative Commons
, which is available under a
Creative Commons Attribution 3.0 Unported License
Basic Marking: One page, One License
A very common use of Creative Commons licenses is to license a page on the web and the content contained within under a CC license. For example, many blogs are licensed under a Creative Commons license. It's common for these sites to include CC license information at the bottom of every page in a footer, similar to how people often include copyright ownership year and information at the end of a page.
Below are examples of how you would indicate that a single page on the web is licensed under CC. This is useful when integrating a CC license mark into a footer of a website.
License metadata
↳ See example HTML
Explanation
This page, by
Lawrence Lessig,
is licensed under a
rel="license"
href="https://creativecommons.org/licenses/by/3.0/">
Creative Commons Attribution License.
This is a very basic example of how to include license metadata in HTML documents. The only metadata is provided by the
rel="license"
attribute in the
tag.
rel="license"
generates a triple with predicate
xhtml:license
. The triple relates the current document URI to the URI of the CC BY license to the URI for the
xhtml:license
predicate (
).
How does this all occur by simply adding a single
rel="license"
attribute?
xhtml
is the default prefix for reserved XHTML values, including
license
, which means that you don't need to do anything special to use it (like define the
xhtml
namespace). It is a built-in
rel
type. And the object of the
rel="license"
attribute is just set by the URL in the
href
attribute, which is true for all
rel
attributes.
RDFa Primer: Licensing Your Work
License metadata with license image
↳ See example HTML
Explanation
rel="license"
href="https://creativecommons.org/licenses/by/3.0/">




This page, by
Lawrence Lessig,
is licensed under a

Creative Commons Attribution License
.
You can add
rel="license"
to any tag with a valid
href
attribute. This means that for links to the license, anything can be between the
tags, including an image of the license mark.
In this example, the CC BY license mark is a link, with
rel="license"
metadata, to the license deed.
Attribution metadata
↳ See example HTML
Explanation
xmlns:cc="http://creativecommons.org/ns#"





This page, by
property="cc:attributionName"
rel="cc:attributionURL"
href="http://lessig.org/">Lawrence Lessig,
is licensed under a

Creative Commons Attribution License
.