Module 3: Introduction to Web Architectures (HTML, CSS & Layouts).

Welcome to Module 3. In today’s digital landscape, a basic understanding of web architecture is a critical skill for entrepreneurs, digital marketers, and career switchers alike.

You do not need to be a full-stack software engineer to manage a website. However, knowing how code builds what users see on their screens gives you complete control over your content. It allows you to troubleshoot issues, format text properly for SEO, and understand the technical structure of modern digital platforms.


1. How the Web Works: Browsers, Servers, and Requests

When a user types a website address like freeonlinecourse.org.uk into their web browser (such as Google Chrome, Safari, or Microsoft Edge), a invisible three-step process occurs instantly:

  1. The Request: The browser sends a digital request across the internet to a remote computer called a Server, where the website’s raw files are stored.
  2. The Response: The server reads this request, locates the correct text files, and sends them back across the internet to the user’s computer.
  3. The Rendering: The browser reads the raw text code and translates it into the interactive visual layout, colors, and images that appear on the screen.

Every website you visit is built on a foundation of two primary client-side languages: HTML (the structural skeleton) and CSS (the design layer).


2. Semantic HTML Core Elements: Building the Structural Skeleton

HTML stands for HyperText Markup Language. It uses enclosed “tags” to define exactly what type of content is on a page (e.g., a heading, a paragraph, a list, or an image).

Semantic HTML means using specific tags that describe the meaning of the content, which helps search engine bots crawl your site for SEO and assists screen-readers for visually impaired users.

The Anatomy of an HTML Element

Most HTML tags have a matching opening and closing tag, wrapped around the text content:

<p>This is a paragraph of text on your website.</p>
  • <p> is the Opening Tag telling the browser a paragraph is starting.
  • </p> is the Closing Tag (notice the forward slash) telling the browser the paragraph is finished.

Essential HTML Elements for Content Creators:

  • <h1> to <h6> Headings: Used to structure your text. <h1> is the primary page title, while <h2> and <h3> represent subheadings.
  • <p> Paragraphs: Used for all standard body text blocks.
  • <a href="URL">Hyperlinks: The anchor tag used to link to other pages.
    • Example: <a href="https://freeonlinecourse.org.uk">Visit our homepage</a>
  • <ul> and <li> Unordered Lists: Used to create standard bulleted lists.
  • <img>Images: A self-closing tag used to display images. It always requires a source (src) path and an alternative text (alt) description for accessibility and search engine context.
    • Example: <img src="logo.png" alt="Free Online Course Website Logo">

3. Basic Styling via CSS: Designing Content and Space

While HTML builds the structure, CSS (Cascading Style Sheets) controls how that structure looks. Without CSS, every website would look like a plain black-and-white text document.

The CSS Syntax Rule

CSS works by targeting an HTML element (a selector) and applying style rules to it inside curly brackets {}:

p {
  color: #1a73e8;
  font-size: 16px;
}

In this example, the CSS tells the browser to find every paragraph (p) tag on the page, change its text color to a specific digital blue, and set the text size to 16 pixels.

The Box Model: Padding and Margins

To control layouts and space out content cleanly on modern devices, you must understand the CSS Box Model. Every single element on a web page is treated by the browser as an invisible rectangular box.

  ┌───────────────────────────────────────────┐
  │                 MARGIN                    │  <- Space OUTSIDE the border
  │    ┌─────────────────────────────────┐    │
  │    │            BORDER               │    │  <- The structural edge line
  │    │    ┌───────────────────────┐    │    │
  │    │    │       PADDING         │    │    │  <- Space INSIDE the border
  │    │    │   ┌───────────────┐   │    │    │
  │    │    │   │  RAW CONTENT  │   │    │    │  <- Your actual text or image
  │    │    │   └───────────────┘   │    │    │
  │    │    └───────────────────────┘    │    │
  │    └─────────────────────────────────┘    │
  └───────────────────────────────────────────┘
  • Content: The actual text or image inside the box.
  • Padding: The invisible space inside the element, clearing area between the text and its outer border. Increasing padding makes button clickable areas larger or boxes roomier.
  • Border: The optional outline surrounding the padding and content (like a solid black line around a box).
  • Margin: The invisible space outside the element’s border. It pushes neighboring elements away, creating clean white space between separate modules, paragraphs, or buttons.

🛠️ Module 3 Practical Assignment

Using a simple text editing tool (like Notepad on Windows or TextEdit on Mac), write a small block of custom code containing an <h2> heading element followed by a paragraph (<p>) element that includes a working hyperlink (<a>) pointing to your favorite web tool.


Free Course: Business & Technology Skills for Career Development – All Modules
Module 1: Small Business Financial Literacy & UK Tax Basics – Free Online Course
Module 2: Modern Digital Marketing & Brand Architecture – Free Online Course
Module 3: Introduction to Web Architectures (HTML, CSS & Layouts). – Free Online Course
Module 4: Practical AI Engineering & Workspace Automation – Free Online Course