I'm starting HTML & CSS

Asked (@zeebee) ·

How do you actually plan the layout of a simple webpage before writing code? Do you draw it first, Any beginner-friendly tips or a tiny example project I could try?

Answers (11)

  1. Emily · · 2 likes

    A good beginner habit is to plan the structure, not the design first.

    Ask:

    What sections does the page need?
    Which part goes top to bottom?
    Which items sit side by side?

    Then code the HTML first and style with CSS after.

    Try building a simple landing page for a coffee shop.

  2. Maurice · · 2 likes

    I used to jump straight into coding and always got confused
    Sketching first saved me.

    Even a 30-second paper wireframe helps you know what divs and sections you need.

  3. The devquee · · 2 likes

    Personally, I start with a rough mobile layout first.

    A simple stacked design is easier:
    header → image → text → button → footer

    Then later use CSS to make it wider for desktop.

  4. Idhika · · 2 likes

    Paper sketch first > code second.

    Doesn’t need to be pretty at all.

    Just draw rectangles and label them:
    “image here”
    “text here”
    “button here”

    That’s literally how many people start.

  5. Joshua · · 1 like

    Honestly, yes — sketch it first. Even a rough drawing on paper helps a lot.
    I usually split the page into simple sections like header, hero, content, and footer before touching code.

    A super easy first project is a personal profile card page with your photo, name, bio, and a button.

  6. Maxim Build · · 1 like

    I always draw a rough layout first 😅
    Nothing fancy, just boxes showing where things go.

    Think in sections:

    navbar
    main content
    sidebar (optional)
    footer

    It makes the HTML structure way easier.

  7. Shreya · · 1 like

    Start super small.

    Try a simple portfolio homepage:

    top nav
    hero text
    about me section
    projects section
    footer

    That one project teaches layout, spacing, flexbox, and typography.

  8. Mandel · · 1 like

    One tip that helped me:
    think in containers

    Like one big wrapper, then smaller boxes inside it.

    This makes learning Flexbox and Grid much easier later.

  9. Vision · · 1 like

    start by sketching a simple layout on paper (header, sections, footer), think in blocks, not details, then build it step by step in HTML, and style later with CSS, try a simple project like a personal profile page (image, bio, links)

  10. Ayush · · 1 like

    Plan things as to what all will be there in your site, and divide each area into boxes... helps you visualize and actually bring your designs from mind to reality... later on you can just replace or fill those boxes with the stuff you find relevant

  11. mousedevv · · 1 like

    When I was developing my design skills, I would pick a random shop and make a website to sell and try out different styles and themes!

14 likes · 11 answers · 5 views

Explore more on Prompted