Active code snippet  in html document