Diego
Diego

Reputation: 964

Difference between HTML entities for trademark symbol

I'm wondering what's the main difference between the trademark symbol html. Which is the "standard".

I have these 3 ways of doing, but have issues on some WYSIWYG editors.

 ™
 ™ (article)
 ™ (article)

I read this article and has me quite confused. Anyone has some suggestions.

These are not supported by the HTML specification. They should render correctly across browsers and operating systems but there is no guarantee.

Upvotes: 3

Views: 1015

Answers (2)

James Donnelly
James Donnelly

Reputation: 128791

W3 have their own Character Entity Reference available at http://dev.w3.org/html5/html-author/charref which lists HTML-friendly character entities.

The trademark symbol has the following:

™
™
™
™
™

This means that browsers should handle these and convert all of them appropriately into the ™ character. Which you use is entirely down to preference, however you may find that ™ and ™ aren't supported on some browsers so may want to use the others instead.

All realistically do the same thing - they pull and render Unicode 'Trade Mark Sign' character .

It's worth noting though that you can probably get away with just using ™ anyway, without having to reference its character entity code:

<p>Hello™, World™!</p>

Upvotes: 4

Kevin Seifert
Kevin Seifert

Reputation: 3572

I would use & trade; if possible. The others are referencing code point numbers (if that is the correct term) relative to a given character set.

Upvotes: 0

Related Questions