Developers > About our HTML output

About our HTML output

Our REST interface and the libraries can return HTML code. This code is exactly the same we use in the LikeOrHate website, and is safe to be used elsewhere. The HTML is very organized and structured, so you'll probably be able to reformat it as needed (and you can always parse another format, such as XML or JSON, and generate your own HTML).

We use a number of conventions in our HTML code:

  • The HTML code is not set in stone. It's not changed often, but on occasion we may change it to add a new feature (more tags) or just to improve it a little (more classes, more attributes).
  • Microformats are used in many places, in particular rel-license, geo, XFN, hCard, rel-tag.
  • Classes which are not microformats or common (e.g.: "digits") are prefixed with loh_. We also reserve the class likeorhate. There are still some exceptions to this, but we are working on them. If you want to style them, you can start from our template class, loh.css and change it as it suits you.
  • JavaScript code requires the inclusion of http://likeorhate.com/js/likeorhate.js to work properly. This javascript is highly recommended, as it adds important functionality, though we have fallback to plain HTML graciously.

Back to main developers page

 
All Content in this site is the sole responsibility of the person from whom such Content originated. See our Terms of service