6

Within my copyright meta data I have the following

<meta name="copyright" content="example.com &#169; Copyright 2011 by Me. All Rights Reserved." />

Is this correct, or should I simply have the following?

<meta name="copyright" content="example.com © Copyright 2011 by Me. All Rights Reserved." />

4 Answers 4

6

Why do you want to put the © symbol in a meta tag that already has the attribute name="copyright"?

2
  • What information should be included in the content= section then?
    – user6501
    Apr 1, 2011 at 19:02
  • <meta name="copyright" content="Year - Your name" />
    – Osvaldo
    Apr 2, 2011 at 8:13
4

I believe both are perfectly valid, so it should come down to the difference between entities and Unicode characters.

HTML Entities are the safe way to go. They will show up on all modern browsers, but are a bit of a pain in source code. Plus, it's several characters to represent a single character, which isn't as efficient as it could be. If you were going to go with the entity, I would recommend using &copy; instead, for readability.

Embedding the copyright symbol should work just fine, as long as you have your encoding set correctly. However, if you run into encoding issues, you can get all sorts of display issues that are unsightly and hard to deal with. If it's in your meta tag, then you shouldn't have display issues, but it's something to take into consideration.

I usually use the single character. That's what it's there for, and it's a couple fewer bytes off of each page load.

0

Hi I tried to use: &copy; and also &#169; in the meta. The result is that it just displays the code in view source output as seen below.

<meta name="copyright" content="&copy; 2013 - Co NAme" />

This works:

<meta name="copyright" content="2013 - Co Name" />

Forget the symbol and do what @Osvoldo mentioned. This seems to be proper form.

-1

If the symbol is found anywhere in your file, it will fail WC3 verification. Based on that I would think &#169 is correct.

Test it out here: http://validator.w3.org/check

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.