How do I write the CC logo in HTML, is there something like ©
(which gives ©)?
(CC stands for Creative Commons).
How do I write the CC logo in HTML, is there something like ©
(which gives ©)?
(CC stands for Creative Commons).
As far as I know, there is no character for this, so you'll have to use a graphic.
There are some nice ones here. By the way, on this page, there's also a logo font you could use in HTML, but this won't show correctly for other users that don't have the font installed.
As schnaader pointed out, there is a TTF font, but pace his answer, it actually can render correctly for people who don't have it installed using CSS's @font-face
tag.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Test</title>
<style type="text/css">
@media screen {
@font-face {
font-family: 'CC-ICONS';
font-style: normal;
font-weight: normal;
src: url('http://mirrors.creativecommons.org/presskit/cc-icons.ttf') format('truetype');
}
span.cc {
font-family: 'CC-ICONS';
color: #ABB3AC;
}
}
</style>
</head>
<body>
<p>Key: a: SA, b: BY, c: CC Circle, d: ND, n: NC, m: Sampling, s: Share, r: Remix, C: CC Full Logo</p>
<span class="cc">a b c d n m s r C</span>
<p>This page is licensed under <span class="cc">C</span></p>
</body>
</html>
As far as I know, there is no character for this, so you'll have to use a graphic.
There are some nice ones here. By the way, on this page, there's also a logo font you could use in HTML, but this won't show correctly for other users that don't have the font installed.
Itβs 2020 and Unicode 13 is out. It introduced new Creative Commons license symbols. The new Unicode-compatible HTML entity for π
(the circled CC symbol) is 🅭
Youβll need a compatible font for it to work. You can use the CC Symbols font as a fallback that will only be downloaded on devices without a compatible font. Instructions at the link.
🅭
; if not, browsers will 'fall back' to the CCSymbols font, which, at merely the size of 2K, is as minimal as one can get, and well worth the extra trouble. Nice! β
Tomsk This is not for a strictly "Creative Commons" character, but is the "copyleft " symbol that could be have the same meaning for some people like me.
Put the copyright symbol ©
between a <p></p>
labels with a CSS class; in this case called "copy-left" and then flip it with a CSS property.
HTML:
<p class="copy-left">©</p>
CSS:
.copy-left {
display: inline-block;
text-align: right;
margin: 0px;
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}
This looks alright
.creative-commons{
font-family:Arial;
border: 1px solid black;
box-sizing: border-box;
border-radius: 1em;
width: 2em;
height: 2em;
display: inline-block;
line-height: 2em;
text-align: center;
font-size: 1em;
}
<span class="creative-commons">CC</span>
As @schnaader says, I don't think there's a HTML entity code for this, but perhaps you could take a look here
🅭
β which, however, may not be supported yet by most fonts. See @Aeyoun's answer below: https://mcmap.net/q/846958/-how-to-writing-cc-the-creative-commons-logo-in-html β
Tomsk Another answer would be to use Font Awesome
Link: Font Awesome
It gives you the symbol you were looking for, but was not around when this question was first asked.
To use this symbol copy the following link into the head of your page:
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha256-3dkvEK0WLHRJ7/Csr0BZjAWxERc5WH7bdeUya2aXxdU= sha512-+L4yy6FRcDGbXJ9mPG8MT/3UCDzwR9gPeyFNMCtInsol++5m3bk2bXWKdZjvybmohrAsn3Ua5x8gfLnbE1YkOg==" crossorigin="anonymous">
Then this where you would like the symbol to be:
<i class="fa fa-creative-commons"></i>
For the full list of icons available using Font Awesome Visit:
Link: Font Awesome Icons
Just for the record, you don't need it to be an HTML entity, in theory you could use any unicode character, encoded as a character entity like &#nnnn;
(decimal) or &#xhhhh;
(hex).
So if there was a Creative Commons logo in unicode, you might be able to use it. But although there certainly are plenty of symbols, there isn't one for Creative Commons AFAIK.
Looks like it has been at least discussed in the unicode forums, so who knows what will happen in the future.
But for now a graphic is almost certainly the best way to go here.
Thanks Nikki! There is also a CC symbol (normal and compact version) that you can place in your HTML page, from the Creative Commons website itself.
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
Maybe you check this out:
Import fontawesome.io
Put this link in your stylesheet: https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css
Put this icon class="fa fa-creative-commons"
© 2022 - 2024 β McMap. All rights reserved.