Its just your standard sales tax, based on your address, so it doesn't matter if you bought it online. If you lived in a state that doesn't have a sales tax then it wouldn't have generated a sales tax online.
EDIT: like what echo said right after me, it also depends on who you are buying it from as well.