add class, id and absolute snippet