Markup describes the gap between cost and selling price as a percentage of cost. Where margin asks "of every dollar we collect, how much is profit?", markup asks "for every dollar we spend on the product, how much is profit?". The two answers describe the same sale from different angles, but the percentages are different numbers and substituting one for the other is the most common pricing mistake in small business.
This page uses a $40 cost sold for $64 — a 60% markup that is only a 37.5% margin — to make the distinction concrete.