digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Web Development, Design (https://www.digitalfaq.com/forum/web-design/)
-   -   Copyright symbol in HTML, and other HTML characters (https://www.digitalfaq.com/forum/web-design/3611-copyright-symbol-html.html)

Sossity 10-24-2011 09:54 AM

I already found out how to type in the © symbol into the code, I could not figure out how to do that in html or css, I just knew the keyboard strokes for it. The instructor did not show us how to do this. Oh well, that was a past exercise but I wish I knew it then.


This question has been split from another post or thread. This was done in order to address the topic more in depth, make it easier to find via forum searches, as well as prevent the other post/thread from going too far off-topic. Please continue this part of the conversation here. Thanks for understanding our tech Q&A policies.


lordsmurf 10-26-2011 11:33 PM

Copyright symbol in HTML, and other HTML characters
 
Most non-alphanumeric characters and symbols are created by using & something ;
For example:
  • copyright = ©
  • M-dash = —
  • n-dash = –
  • bullet = •
  • right arrow = →
  • left arrow = ←
  • non-breaking space =  
You can also represent symbols with their ASCII code. & #ascii ;
For example:
  • bullet = &#8226 ; (the only one I know off-hand)

W3C schools has full lists:

If you're wondering why the code didn't turn into HTML on this post, it's because the forum doesn't support HTML in-post.
It's blocked for security purposes.

thecoalman 08-07-2012 10:42 PM

Quote:

If you're wondering why the code didn't turn into HTML on this post, it's because the forum doesn't support HTML in-post.
It's blocked for security purposes.

That's not exactly correct, forums will typically convert the text so it's represented of whatever characters you have used:

Quote:

copyright = ©
After it's parsed the ampersand is converted:

Code:

<ul>
<li>copyright = &amp;copy;</li>
<li>M-dash = &amp;mdash;</li>
<li>n-dash = &amp;ndash;</li>
<li>bullet = &amp;bull;</li>
<li>right arrow = &amp;rarr;</li>
<li>left arrow = &amp;larr;</li>
<li>non-breaking space = &amp;nbsp;</li>
</ul>

If you want to post characters you have to post them as characters:

©thecoalman 2012 :D


All times are GMT -5. The time now is 06:07 AM

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.