We show that linear bijections between quaternion algebras over a commutative ring preserving norms and identity elements are basically the same as isomorphisms or antiisomorphisms. We also show that one-sided ideals of octonion algebras over a commutative ring are extended from the base.