Transposition flips a matrix across its main diagonal: row i of A becomes column i of A⊤, so an m×n matrix becomes an n×m matrix.
The rows (1,2,3) and (4,5,6) of the 2×3 matrix become the two columns of the 3×2 transpose. The entry 6 in position (2,3) moves to position (3,2), which is the rule (A⊤)ij=aji, while the diagonal entries 1 and 5 stay in place. Transposing twice gives the original matrix back.
The reversed order in (AB)⊤=B⊤A⊤ is forced by the sizes. If A is m×n and B is n×k, then B⊤A⊤ is a (k×n)(n×m) product and is defined, while A⊤B⊤ is a (n×m)(k×n) product, which is not defined unless m=k. Writing (AB)⊤=A⊤B⊤ is therefore a common slip.
Transposition turns a column vector into a row vector, which is how row vectors are usually written. A matrix is symmetric when A=A⊤. Later, the product x⊤y of a row and a column becomes the dot product. Other texts write the transpose with a superscript capital T or with a prime; this wiki uses the ⊤ symbol throughout.