Check URL and write HTML