Which language does Selenium IDE script gets saved in?

In which language is the Selenium IDE script saved?

The menu bar is used to create, modify, and export test cases into Selenium RC and WebDriver-compatible formats. HTML is the default format for Selenese commands.