Applying semantic elements