Resource Description Framework (RDF) is a W3C standard for describing web resources, such as the title, author, modification date, content, and copyright information of a web page.

RDF main elements syntax

The main elements of RDF are <RDF> and the <Description> element, which represents a resource.

RDF main elements example

<rdf:RDF> is the root element of the RDF document. It defines an XML document as an RDF document. It also contains a reference to the RDF namespace:

<?xml version="1.0"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
...Description goes here...
</rdf:RDF>