HTML and CSS are the two simplest layers of the web, and they are the best place to start coding. One focused hour a day for 30 days is enough to learn them properly, if you follow a plan that ends with real things built, not just lessons watched. This plan uses only free resources.
Week 1: HTML, the structure (days 1-7)
HTML is the skeleton of every web page. This week, learn headings, paragraphs, links, images, lists, and forms. Your daily habit: read one short MDN Web Docs page, then rebuild the example by hand. By day 7, build a simple page about yourself: a heading, a photo, three paragraphs, and a list of links. No styling yet, and that is the point. If the page reads well with no CSS at all, the structure is right.
Week 2: CSS, the style (days 8-14)
CSS controls how the page looks: colours, fonts, spacing, and layout. Learn selectors, the box model, and Flexbox, which handles most layouts you will ever need. Your daily habit: take last week's page and style one thing at a time. Day 14's job: the same page, now with a colour scheme, readable fonts, and proper spacing. This is the week most beginners quit, because CSS feels fiddly. Keep going: the fiddliness is the skill.
Week 3: responsive design (days 15-21)
A page that only looks right on a laptop is unfinished. This week, learn media queries and how to make layouts adapt to phones. Build a second page, a small project gallery, and test it at phone width, tablet width, and desktop width. Use freeCodeCamp's Responsive Web Design course for guided practice; it is a complete free course with projects, and its five required projects at the end of each section earn you a certificate.
Week 4: build and publish (days 22-30)
Now build a complete personal website from scratch: a home page, an about page, and a project gallery, with navigation between them. Then publish it. You do not need to buy hosting: our guide to putting your first website online free walks through Cloudflare Pages, Vercel, Netlify and GitHub Pages, and the whole job takes about fifteen minutes.
The rules that make it work
First, one hour a day beats a weekend binge. Second, type every example yourself; copying and pasting teaches nothing. Third, when you get stuck, read the MDN page for that exact topic before asking anyone. Fourth, keep every project, even the ugly ones: they are your proof of progress, and the gallery page you build in week 3 is where they live.
After 30 days, the natural next step is JavaScript, which makes pages interactive. Our GitHub Student Developer Pack guide lists the free tools and courses students can claim for the next stage, including professional IDEs and hosting credits.
Frequently asked questions
Can I really learn HTML and CSS in 30 days?
Yes, to a genuinely useful level. HTML and CSS are the two simplest layers of the web, and one focused hour a day for a month is enough to build a complete, good-looking personal website. You will not be a professional developer in 30 days, but you will be able to build and publish real pages.
Do I need to pay for a course?
No. MDN Web Docs, run by Mozilla, is the standard free reference, and freeCodeCamp's Responsive Web Design certification is a complete free course with projects. Paid courses add structure, not information.
What should I build to prove I learned it?
A personal website with a home page, an about page and a small project gallery, published free on Cloudflare Pages, Vercel or GitHub Pages. A live link beats a certificate in every conversation.