what is the diference to output superscript using the below two methods in html

in html, i can use both &trade and <sup></sup> to output superscript. Then, what is the difference between '&trade' and '<sup></sup>'?


&trade; is a single character, whereas <sup></sup> changes the way "normal" characters are displayed.

Using <sup>TM</sup> is just displaying the two letters T and M using superscript text layout, whereas &trade; is the Unicode Character 'TRADE MARK SIGN' (U+2122).

Practically speaking:

  • &trade; might not survive copy-and-paste across different documents (given how broken some applications are with respect to Unicode).
  • It's not necessarily available in every font you might use.
  • Anyone searching for "TM" won't find &trade; (unless the software they're using is clever about that specific case).

Need Your Help

Backbone this.el and events not working when I render my templates from JS

javascript jquery backbone.js backbone-views backbone-events

When I'm appending my template to the body, the el and $el do not work. For example, consider this view that renders the template onto the body:

wait for ajax result to bind knockout model

javascript jquery ajax json knockout.js

I have getGeneral function that calls ajax GET. When ajax recieves data (json), it creates KO model from given json and returns created KO.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.