html resource handling