Extract head, header, and footer from index.html.