That’s good advice and I will have it in mind, but it doesn’t exactly answer my question.
Sometimes (very often actually) sidewalks are already marked as separate paths and I don’t necessarily want to change that for various reasons. Other times footway crossing a road isn’t even a sidewalk.
After some additional reading it seems like having both way and a node marked is a proper way to do it.