Introduction
Open two websites selling the same thing. One feels clear, calm, and easy to trust. The other feels cluttered, hard to read, and slightly “off.” The products are identical. What’s different is design, and almost all of it comes down to three things: layout, color, and typography.
If you’re starting web design, these three fundamentals matter more than any framework or trendy effect. They decide whether visitors understand your page in seconds, whether they can read it comfortably, and whether they trust it enough to take action. This guide explains each one in plain language, with rules you can apply immediately, working CSS examples, and a practice plan for your first projects.
Why Design Fundamentals Come Before Tools
Beginners often rush into HTML, CSS, JavaScript, or Figma and skip the thinking behind good design. But tools only help you build what you already know how to plan.
| Without fundamentals | With fundamentals |
|---|---|
| Pages feel random or crowded | Pages feel organized and intentional |
| Visitors don’t know where to look or click | Visitors move naturally to the key action |
| Text is tiring to read | Content is comfortable to read on any device |
| Colors clash or look unprofessional | Colors support the message and brand |
| You copy templates without understanding them | You can adapt and improve any design |
Learn the principles once, and every tool becomes easier.
Part 1: Layout
Layout is how elements are arranged on the page: where things go, how much space they take, and how the eye moves through them. Good layout makes content easy to scan and understand.
The Core Layout Principles
| Principle | What It Means | Why It Helps |
|---|---|---|
| Visual hierarchy | The most important element is the most noticeable | Visitors know where to look first |
| Grid | Content aligns to a consistent column structure | Pages look orderly and professional |
| White space | Empty space around elements | Reduces clutter and improves focus |
| Alignment | Elements line up along shared edges | Creates a clean, intentional look |
| Proximity | Related items sit close together | Shows which things belong together |
| Consistency | Similar elements look and behave the same | Builds trust and ease of use |
| Balance | Visual weight is distributed evenly | Prevents lopsided, unstable pages |
How People Scan Web Pages
People rarely read word by word. They scan. Two common patterns:
| Pattern | Where Eyes Go | Best For |
|---|---|---|
| F-pattern | Across the top, then down the left side | Text-heavy pages, blogs, and articles |
| Z-pattern | Top left to top right, diagonally down, then across the bottom | Simple pages and landing pages with one main action |
Place your headline, logo, and main call to action along these natural paths.
Anatomy of a Typical Web Page
| Section | Purpose | Layout Tips |
|---|---|---|
| Header and navigation | Orient the visitor | Keep it simple, with five to seven main items at most |
| Hero section | Deliver the main message and action | One clear headline, one supporting line, one main button |
| Content sections | Explain benefits, services, or information | Group related content, and use consistent spacing |
| Proof or testimonials | Build trust | Place near key calls to action |
| Call to action | Prompt the next step | Make it visually distinct and specific |
| Footer | Provide secondary links and contact info | Organized, readable, and not overcrowded |
Responsive Layout: Designing for Every Screen
Most web traffic in India comes from phones, so design for small screens first and expand upward. This is called mobile-first design.
| Screen | Typical Layout |
|---|---|
| Mobile | A single column, large tap targets, stacked sections |
| Tablet | Two columns where it makes sense |
| Desktop | Multi-column grids with more white space |
Layout rules for responsive design:
- Use flexible units such as percentages,
rem, andfrinstead of fixed pixel widths everywhere - Let content wrap and stack naturally on small screens
- Make buttons and links big enough to tap comfortably
- Test on real devices, not only a resized browser window
- Avoid horizontal scrolling on mobile
A Simple Responsive Layout in CSS
<div class="container">
<h1>Our Services</h1>
<div class="cards">
<article class="card">Design</article>
<article class="card">Development</article>
<article class="card">Marketing</article>
</div>
</div>
.container {
max-width: 1100px;
margin: 0 auto;
padding: 0 1.25rem;
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.5rem;
}
.card {
padding: 1.5rem;
border: 1px solid #e3e6ec;
border-radius: 8px;
}
This CSS Grid pattern places cards side by side on wide screens and stacks them automatically on narrow ones, with no media query needed. max-width keeps lines of content from stretching too wide, and gap creates consistent spacing.
Flexbox vs Grid: Which to Use?
| Tool | Best For | Think of It As |
|---|---|---|
| Flexbox | Arranging items in a single row or column, such as a navigation bar or button group | One-dimensional layout |
| CSS Grid | Arranging items in rows and columns together, such as a card gallery or page layout | Two-dimensional layout |
Most real pages use both.
Common Layout Mistakes
- Cramming too much above the fold. Give the main message room to breathe
- No clear hierarchy. If everything is bold and large, nothing stands out
- Inconsistent spacing. Pick a spacing scale, such as 8, 16, 24, and 32 pixels, and stick to it
- Ignoring mobile. Test your design on a phone first
- Too many calls to action. One primary action per section works best
- Text that stretches edge to edge on large screens. Limit the width of reading areas
Part 2: Colors
Color sets mood, guides attention, and shows what’s clickable. Used well, it quietly supports your message. Used poorly, it makes a page hard to read.
Color Basics Every Beginner Should Know
| Concept | What It Means |
|---|---|
| Hue | The basic color, such as blue or orange |
| Saturation | How vivid or muted a color is |
| Lightness | How light or dark a color is |
| Color wheel | A map of how colors relate to each other |
| Warm colors | Reds, oranges, and yellows, which often feel energetic |
| Cool colors | Blues, greens, and purples, which often feel calm |
| Neutrals | White, gray, black, and beige, used for backgrounds and text |
Common Color Schemes
| Scheme | How It Works | Feel |
|---|---|---|
| Monochromatic | Different shades of a single hue | Clean and cohesive |
| Analogous | Neighboring colors on the wheel | Harmonious and soft |
| Complementary | Opposite colors on the wheel | High contrast and energetic |
| Triadic | Three evenly spaced colors | Vibrant and playful |
| Neutral plus one accent | Mostly neutrals with a single bright color | Modern and focused |
For beginners, neutrals plus one brand color plus one accent is the safest, most professional approach.
The 60-30-10 Rule
A simple guide for balancing colors:
| Share | Role | Example |
|---|---|---|
| 60% | Dominant color, usually a neutral background | White or light gray |
| 30% | Secondary color for sections and supporting elements | Dark blue |
| 10% | Accent color for buttons and highlights | Orange |
Contrast: The Most Important Color Rule
Contrast is the difference between text and its background. Without enough contrast, people can’t read your content. Accessibility guidelines (WCAG) recommend at least:
| Content | Minimum Contrast Ratio |
|---|---|
| Normal body text | 4.5 to 1 |
| Large text (about 24px, or 19px bold) | 3 to 1 |
| Interface elements such as buttons and form borders | 3 to 1 |
I checked a sample palette against these ratios:
| Combination | Contrast Ratio | Result |
|---|---|---|
Near-black text (#1a1a1a) on white | 17.4 to 1 | Passes easily |
Muted gray text (#5b6270) on white | 6.1 to 1 | Passes |
White text on blue (#1f4fd8) | 6.6 to 1 | Passes |
Light gray text (#999999) on white | 2.9 to 1 | Fails |
Medium gray text (#777777) on white | 4.48 to 1 | Just misses the 4.5 requirement |
White text on bright orange (#ff7a00) | 2.6 to 1 | Fails |
| Near-black text on bright orange | 6.7 to 1 | Passes |
Notice the last two. A bright orange button with white text looks fine on a designer’s monitor but is hard to read for many people, while dark text on the same orange works well. This is the kind of detail that separates thoughtful design from decoration.
Always test your color pairs with a free contrast checker tool, especially for text, buttons, and links.
Defining Colors Once with CSS Variables
:root {
--primary: #1f4fd8;
--accent: #ff7a00;
--bg: #ffffff;
--text: #1a1a1a;
--muted: #5b6270;
}
body {
background: var(--bg);
color: var(--text);
}
.button {
background: var(--accent);
color: var(--text); /* dark text on orange for readable contrast */
padding: 0.75rem 1.25rem;
border-radius: 6px;
}
Defining your palette as variables means one change updates the whole site, and keeps colors consistent.
Color Rules for Websites
- Pick a small palette: one primary color, one accent, and a set of neutrals
- Use the accent sparingly, mainly for the main call to action, so it stands out
- Don’t rely on color alone. Pair color with text, icons, or underlines, since some users can’t distinguish certain colors
- Keep link colors recognizable. People expect links to look clickable
- Be careful with color meanings. Associations vary across cultures and industries, so match the palette to your audience and brand rather than a rigid rulebook
- Design for dark mode if your audience expects it, and test contrast in both modes
- Use real photos and brand elements to build the palette, not just random swatches
Where to Find Palettes
| Source | How It Helps |
|---|---|
| Brand logo | The first source for your primary color |
| Online palette generators | Generate harmonious combinations quickly |
| Photos you use on the site | Pull colors that match your imagery |
| Existing websites you admire | Study how they use neutrals and accents |
Part 3: Typography
Typography is the style and arrangement of text. On the web, most of your content is text, so typography affects readability, trust, and how professional a page feels.
Typography Vocabulary
| Term | Meaning |
|---|---|
| Typeface or font family | The design of the letters, such as a serif or sans-serif style |
| Serif | Fonts with small decorative strokes, often feeling traditional |
| Sans-serif | Fonts without those strokes, often feeling clean and modern |
| Font weight | How thick the letters are, such as regular or bold |
| Font size | How large the text is |
| Line height | The space between lines of text |
| Letter spacing | The space between letters |
| Hierarchy | Using size and weight to show importance |
The Readability Rules
| Rule | Recommendation | Why |
|---|---|---|
| Body text size | Start at 16px or larger | Small text is tiring, especially on phones |
| Line height | About 1.5 to 1.6 for body text | Gives lines room to breathe |
| Line length | Roughly 50 to 75 characters per line | Long lines are hard to follow |
| Contrast | Meet the contrast ratios above | Ensures readability |
| Alignment | Left-align paragraphs for left-to-right languages | Easier to read than centered or justified blocks |
| Paragraph spacing | Leave clear space between paragraphs | Makes text easier to scan |
Choosing and Pairing Fonts
The simplest approach for beginners:
- Use one or two font families at most. More than that quickly looks messy
- Pair contrast, not similarity. For example, a bold headline font with a simple body font
- Use weight and size for hierarchy, instead of adding more fonts
- Match the mood. Serif can feel editorial or classic; sans-serif often feels modern and friendly
- Support your languages. If you need Hindi or other scripts, choose fonts that include them
| Pairing Idea | Effect |
|---|---|
| Bold sans-serif headings with a regular sans-serif body | Clean and modern |
| Serif headings with a sans-serif body | Editorial and trustworthy |
| One family in multiple weights | Cohesive and simple |
A Type Scale: Sizes That Work Together
| Element | Example Size |
|---|---|
| Main heading (H1) | 32 to 48px |
| Section heading (H2) | 24 to 32px |
| Subheading (H3) | 20 to 24px |
| Body text | 16 to 18px |
| Small text and captions | 13 to 14px |
Typography in CSS
body {
font-family: "Inter", system-ui, sans-serif;
font-size: 1rem; /* 16px by default */
line-height: 1.6;
color: #1a1a1a;
}
h1 {
font-size: clamp(2rem, 5vw, 3rem);
line-height: 1.2;
}
p {
max-width: 65ch; /* keeps lines a comfortable length */
}
clamp() makes the heading scale smoothly between a minimum and maximum size, and 65ch limits paragraph width to roughly 65 characters.
Web Fonts and Performance
- Load only the weights you need, since each one adds file size
- Use
font-display: swapso text appears immediately while the font loads - Consider system fonts for speed and simplicity
- Check the license for any font you use on a client site
Common Typography Mistakes
- Tiny text. Anything under 14 to 16px for body copy strains readers
- Low contrast text. Light gray on white is a frequent culprit
- Too many fonts and styles. Stick to a clear system
- All caps for long text. It’s hard to read
- Centered long paragraphs. Use left alignment for body text
- Cramped lines. Increase line height
- Ignoring headings. Use proper heading levels for structure and accessibility
How Layout, Color, and Typography Work Together
| Element | Role |
|---|---|
| Layout | Organizes content and guides the eye |
| Color | Sets mood and highlights what matters |
| Typography | Makes the content readable and shapes tone |
Consider a landing page for a trek operator:
- Layout: A clear hero with one headline and one booking button, followed by three benefit cards, a testimonial strip, and a simple footer
- Color: A white background, deep green for headings and navigation, and one orange accent used only on booking buttons
- Typography: A strong heading font, a clean 17px body font with generous line height, and consistent heading sizes
Each choice supports the others, and the page feels clear and trustworthy.
A Beginner Design Checklist
| Check | Question to Ask |
|---|---|
| Hierarchy | Is it obvious what’s most important? |
| Layout | Does it work on a phone first? |
| Spacing | Is spacing consistent? |
| Color | Do I have a small, intentional palette? |
| Contrast | Do all text and buttons pass contrast checks? |
| Typography | Is body text at least 16px with comfortable line height? |
| Fonts | Am I using no more than two font families? |
| Calls to action | Is there one clear primary action per section? |
| Accessibility | Does color meaning also appear in text or icons? |
| Real-world test | Does it look right on at least one real phone? |
A 4-Week Practice Plan
| Week | Focus | Practice Task |
|---|---|---|
| Week 1 | Layout | Recreate the layout of a simple site you like in plain HTML and CSS, using only grayscale |
| Week 2 | Color | Choose a palette for a fictional business and test every pairing for contrast |
| Week 3 | Typography | Set up a type scale and apply it to an article page with good readability |
| Week 4 | Combine | Build a one-page responsive landing page for a real or imaginary local business |
Beginner project ideas: a landing page for a homestay or café, a portfolio page, a coaching institute page, or a small product page.
Tools Beginners Can Start With
| Purpose | Tools |
|---|---|
| Design and mockups | Figma, Adobe XD |
| Coding | A code editor such as Visual Studio Code |
| Colors | Palette generators and contrast checkers |
| Fonts | Open-source font libraries, with license checks |
| Browser testing | Developer tools in Chrome or Firefox |
| Layout practice | Browser dev tools for Flexbox and Grid |
Where to Learn Web Design in Dehradun
Strong web design comes from combining design thinking with hands-on coding and feedback. TGC Dehradun’s Web Designing Course is designed for beginners and states that no previous experience is necessary. Its modules include:
| Module | What It Covers |
|---|---|
| Introduction to Web Designing | How websites work, design principles, user-centric layouts, and accessibility standards |
| HTML and CSS Fundamentals | Structuring and styling pages, layouts, and responsive techniques |
| JavaScript and Interactive Features | Adding interactivity with JavaScript and jQuery |
| Responsive Design and Bootstrap | Grid systems, media queries, and flexible layouts |
| UI/UX Principles and Prototyping | Wireframes, prototypes, and mockups with Adobe XD or Figma |
| Advanced JavaScript Frameworks | React.js and Angular fundamentals |
| SEO and Web Performance Optimization | Search-friendly pages and speed improvements |
The course typically runs 3 to 4 months with weekday and weekend batches, includes live projects and case studies, uses tools such as Visual Studio Code, Bootstrap, and Figma, and awards a completion certificate. TGC Dehradun also lists placement assistance, resume building, and interview preparation. Fee details are available through the course page.
To go deeper, explore the Front-End Web Development Course, the UI/UX Design Course, the JavaScript course, or the React.js course. Designers who want stronger visual fundamentals can add the Graphic Designing Course, and those aiming for a complete career path can see the MERN Stack Course.
Frequently Asked Questions
What are the basics of web design? The core fundamentals are layout, color, and typography, supported by responsive design, accessibility, and usability. Together they decide how clear, readable, and trustworthy a website feels.
What is the best layout for a beginner website? A simple, single-column layout on mobile that expands into a grid on larger screens, with a clear hero section, grouped content sections, and one main call to action.
How many colors should a website use? Most professional sites use one primary color, one accent color, and a few neutrals. Fewer colors used consistently look better than many used randomly.
What is color contrast, and why does it matter? Contrast is the difference between text and its background. Enough contrast, at least 4.5 to 1 for body text under WCAG guidelines, keeps content readable for everyone.
What font size should I use for body text? Start at 16px or larger, with a line height around 1.5 to 1.6, and keep lines to roughly 50 to 75 characters.
How many fonts should I use? One or two font families are enough. Use size and weight to create hierarchy instead of adding more fonts.
Should I design for mobile or desktop first? Mobile first. Most users browse on phones, and it’s easier to expand a simple layout than to squeeze a complex one.
Do I need to know coding to learn web design? Basic HTML and CSS help you turn designs into real pages, but you can start by learning design principles and tools like Figma, then add coding gradually.
How long does it take to learn web design? A structured course can teach the essentials in about 3 to 4 months, and your skills will keep growing with every project you build.
Is web design a good career? It can be, with opportunities in agencies, startups, and freelance work. A strong portfolio of real projects matters most.
Final Thoughts
Great web design isn’t about flashy effects. It’s about making content easy to find, easy to read, and easy to trust. Arrange your layout so the eye knows where to go, choose a small palette with enough contrast, and set your typography so text is comfortable to read on any screen.
Start small. Pick a local business, plan a one-page layout in grayscale, add a simple palette, set your type scale, and test everything on your phone. Do that a few times, and these three fundamentals will become instinct.
Ready to build real websites with expert guidance? Explore TGC Dehradun’s Web Designing course and request fee details and a counseling session.


