Head flashing is sometimes referred to as Z flashing. The purpose of this type of flashing is to direct water away from the house. When windows are installed, part of the window protrudes from the siding. When water flows down the wall, it hits this protrusion and flashing is needed to keep water from flowing into the house. In the diagram to the left you can see how the flashing is behind the siding and goes over the top of the window. Although some windows have this built into them. most do not. The vinyl windows are the most common that have flashing installed. This is usually a J-channel the is built into a window. But this blogpost is about head flashing and not the J-channel.