What are "stuðlar" and "höfuðstafur" in a poem?

Like I am studying poetry in High school and I completely don´t get it. What is it called it English? And can you explain briefly?