Dr. Cox's (John C. McGinley's) trademark of calling J.D. by girls' names is what McGinley does in real life (jokingly) to his good friend and neighbor, John Cusack.
Bill Lawrence and a few of the writers jokingly claim that Neil Flynn (The Janitor) has never actually spoken a line from any script. A fourth season script reportedly even contained "(Whatever Neil says)". While Lawrence's comment is certainly an exaggeration, it illustrates how much of his performance is spontaneous.
Every episode was scripted, but the actors had the choice to improvise their lines if they thought of something funnier.
Ted's (Sam Lloyd's) "band" is "The Blanks", a group Lloyd formed with his friends at college.
Sarah Chalke uses her lab coat from this show in How I Met Your Mother (2005). Playing a dermatologist named Dr. Stella Zinman, she uses pens to cover up her name from this show.