Pub Pixel Avatar Image

HTML5 Snippets - Add A Copyright Date To Your Web Pages Content

Published:

Rate Article (Sign in and be the first to rate this article.)

Article Details

Views: 606

First Published:

Word Count: 866

Edition: 1

Now if you want to state the copyright date for your web pages content. Then all you have to do is add the <meta> element along with the name attribute and content attribute.

Now the <meta> element will represent your metadata. You will then need to include the dcterms.dateCopyrighted value for the name attribute in-order to tell the search engines spiders that they should expect a copyright date for your web pages content. Next you will need to add the content attribute. The content attributes value should be the copyright date of your web pages content. The copyright date is usually expressed in numerical form as the year the content was first created or the year when the copyright was issued.

When using the keyword value dcterms.dateCopyrighted for the name attribute to state the copyright date for your web pages content. You must include a link to the metadata terms provided by the Dublin Core Metadata Initiative (DCMI). In-order to do this you will need the <link> element along with rel attribute and href attribute.

Now the <link> element will define the relationship between the metadata from your web page to the metadata terms provided by the DCMI's web page. You will then need to include the schema.dcterms value for the rel attribute in-order to define the relationship between your web page and the linked web page to the metadata terms provided by the DCMI. Next you will need to add the href attribute. The href attributes value should be the URL ("http://purl.org/dc/terms/"), which is the location of the web page for the metadata terms provided by the DCMI.

You may include a link to the metadata terms provided by the DCMI once instead of multiple times when using multiple keyword values given to us by the DCMI that require a link to the metadata terms supplied to us by the DCMI.

On a side note when using the validator from w3.org to validate your code. The value schema.dcterms for the rel attribute will cause an error in your code since the keyword value schema.dcterms is not registered yet. So, for now you may leave out the <link> element that defines the relationship between the metadata from your web page to the metadata terms provided by the DCMI's web page if you like. But it's probably best if you don't since it's suggested that you must include a link to the metadata terms provided by the DCMI when using the keyword value dcterms.dateCopyrighted for the name attribute in-order to state the copyright date for your web pages content.

Now let me first show you the code by itself for the HTML snippet for adding a copyright date to your web pages content. And then I will show you how to code and where to place the HTML snippet for both HTML5 and XHTML5.

Here is the HTML code snippet below to add a copyright date to your web pages content using the <meta> and <link> elements.


<meta name="dcterms.dateCopyrighted" content="The copyright date of your web pages content" />
<link rel="schema.dcterms" href="http://purl.org/dc/terms/" />

Here is the HTML code snippet to add a copyright date to your web pages content using the <meta> and <link> elements for HTML5 in the example below.


<!DOCTYPE html>
<html>
<head>
 <meta charset="UTF-8">
 <title>Welcome To HTML5</title>
 <meta name="dcterms.dateCopyrighted" content="2018">  
 <link rel="schema.dcterms" href="http://purl.org/dc/terms/">  
</head>
<body>
  
 <p>Your web pages content should now have a copyright date.</p>  

</body>
</html>

And here is the HTML code snippet to add a copyright date to your web pages content using the <meta> and <link> elements for XHTML5 in the example below.


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">  
<head>
 <meta charset="UTF-8" />
 <title>Welcome To XHTML5</title>
 <meta name="dcterms.dateCopyrighted" content="2018" />  
 <link rel="schema.dcterms" href="http://purl.org/dc/terms/" />  
</head>
<body>

 <p>Your web pages content should now have a copyright date.</p>  

</body>
</html>

You may also be interested on how to define who owns or manages the copyrights for your web pages content, which you can learn more about in the tutorial that was published called "HTML5 Snippets - State Who Owns Or Manages The Rights Of Your Web Pages Content". You may also be interested on how to specify information about the copyrights for your web pages content, which you can learn more about in another tutorial that was published called "HTML5 Snippets - Add Information About The Rights Of Your Web Pages Content To Your Web Page".

Article Tags

Tag Article (Sign in if you want to tag this article.)

Share This Article

Send To Facebook Link

Tweet This Link

Send To LinkedIn Link

Send To StumbleUpon Link

Digg This Link

Send To Google Plus One Share Link

Send To Reddit Link

Send To Tumblr Link

Send To Delicious Link

Send To FriendFeed Link

Send To Diigo Link

Email Link

AddThis Link

0 Comments

Leave Comment (Sign in and be the first to comment on this article.)

Important

This site cannot guarantee the accuracy of articles, comments, answers and other types of content or media submitted by members or anonymous users and guests, and we recommend that you use common sense when following any advice or information found on this site. Read our full Content Disclaimer Agreement for further information.