create html snippet