Difficulty using the code tag </>

Do you know what the exact method for 2) is supposed to be? Is it actually supposed to work that way?

a
x