Courses / Build a GDPR‑Compliant Cookie Consent Banner with JavaScript & GTM
Lesson 3 of 9

Setting Up a Simple HTML Page

3
▶

Video by CodeWithHarry on YouTube · 9 min. We did not make this video and we do not host it — watching it here still counts as a view for the creator.

Create a minimal index.html with a header, placeholder content, and a <div> where the banner will be injected. Beginners often forget to add the <meta charset="UTF-8"> tag, leading to garbled text.

This page will serve as the sandbox for all later lessons. Keep the structure semantic; later you will reference elements by ID or class from JavaScript.

Start learning free

Sign in with your email, Google or GitHub. No password to remember. The same account carries your progress, your certificates and anything else you do with Nexgino later.

Sign in to continue

It takes about fifteen seconds.