A law in the US requiring labeling of websites would fail. Even if you also banned all internet traffic from outside the US not subject to our laws you still would need manpower to police millions of pages.

If a law is needed, make it a crime to allow children unsupervised access to the internet. It still wouldn't solve the problem, but it acknowledges where the responsibility lies...