Here are some links that help you learn assembly:
OnlineGDB uses the GAS (GNU Assembler): https://en.wikipedia.org/wiki/GNU_Assembler.
Different assemblers have different syntaxes and quirks so you should look up the assembler you need to work with and find out how exactly it should be used.
Good luck!