I am recently writing a piece for violin and piano. Should I write the f and p dynamic markings of the violin above the stave of violin or below?
Also, should tempo markings such as rit. written on both violin and piano?
Dynamics for violin should go underneath the staff. Dynamics for Piano should be centered inside the grand staff unless you have specific requirements for each hand. Which, depending on context, can be put outside. Only vocalists need dynamics above the staff.
Tempo markings should go on top, in this case, on top of the violin part.