@overactor you can read the specification I suppose but I just use
mathurl.com and the automatic generation of markup it produces. Once you learn from that you'll be able to write it from scratch straight into SE, and in the meantime it saves you the trouble of looking everything up. Chime in if anyone has alternatives...