Welcome to our beginner-friendly web development course. In this guide, you’ll learn how to build your very first webpage using HTML5 and CSS3—the foundational technologies behind every website on the internet. Whether you’re a student, a career switcher, or just curious about how websites work, this step-by-step tutorial will teach you the essentials in a clear, practical way. No prior experience is required. By the end, you’ll not only understand the difference between HTML and CSS but also create a personal profile page and have access to a downloadable cheat sheet for future reference.
What HTML (the Structure) Is vs. CSS (the Style)
At the heart of every webpage are two core technologies: HTML and CSS. Think of them as the skeleton and the skin of a website. HTML, or HyperText Markup Language, defines the structure and content of a webpage. It tells the browser what elements are on the page—like headings, paragraphs, images, links, and buttons. CSS, or Cascading Style Sheets, controls how those elements look—such as their colors, fonts, spacing, layout, and animations.
HTML uses tags enclosed in angle brackets (like for paragraph) to define content. These tags create a document tree, also known as the DOM (Document Object Model), which browsers use to render the page. Without HTML, there would be no content to display.
CSS, on the other hand, is all about presentation. It allows you to change the appearance of HTML elements without altering their structure. For example, you can make all paragraphs blue, center-align a heading, or add a border around an image—all using CSS rules.
One of the biggest advantages of separating structure (HTML) from style (CSS) is maintainability. You can update the look of an entire website by changing a single CSS file, without touching the HTML. This makes large websites easier to manage and improves performance.
HTML5, the latest version of HTML, introduced new semantic elements like
CSS3, the current standard for styling, adds powerful features like rounded corners, shadows, gradients, transitions, and flexible layout systems such as Flexbox and Grid. These tools allow developers to create modern, responsive designs that look great on phones, tablets, and desktops.
Together, HTML5 and CSS3 form the foundation of front-end web development. Mastering them is the first step toward building interactive websites, and they are essential for learning more advanced tools like JavaScript, React, or WordPress theme development.
The 10 Most Important HTML Tags You Need to Know
To get started, you don’t need to learn hundreds of HTML tags. Just ten essential ones will allow you to create a fully functional and well-structured webpage. Here’s a breakdown of the most important HTML5 tags every beginner should know:
- : The root element of every HTML page. All other elements are nested inside it. Always include the lang attribute (e.g., ) for accessibility.
- : Contains metadata about the document, such as the page title, character set, and links to CSS files. This section is not visible on the page itself.
-
: Sets the title of the webpage, which appears in the browser tab. Placed inside the section. - : Contains all the visible content of the webpage—everything the user sees and interacts with.
- to : Heading tags used for titles and subtitles. is the most important (main title), and is the least. Use them in order for proper document structure.
- : Defines a paragraph of text. This is the most common tag for body content.
- : Creates a hyperlink. Use the href attribute to specify the destination URL. Example: Visit Example.
-
: Embeds an image. Requires the src attribute (image source) and the alt attribute (alternative text for accessibility and SEO). Example:
.
-
: A generic container for grouping elements. Often used with CSS classes to apply styles or create layout sections.
- : An inline container used to style or target a small portion of text within a larger element.
These tags form the building blocks of any webpage. For example, a simple blog post might use:
My First Blog Post
Welcome to my website. This is my first paragraph.
Check out my portfolio for more info.
Tip: Always close your tags (e.g., ) and nest them properly. Use lowercase letters for tags and attributes to follow modern standards.As you advance, you’ll explore more semantic tags like
, , , and , which improve code clarity and accessibility. But with just these ten tags, you can already create meaningful, functional webpages. How to Use CSS Selectors to Add Color and Shape to Your Website
Once you’ve structured your page with HTML, it’s time to bring it to life with CSS. The key to styling elements lies in CSS selectors—patterns used to target specific HTML elements and apply visual rules.
The most basic selector is the element selector. It targets all instances of a given HTML tag. For example: p {
color: blue;
font-size: 16px;
} This rule turns all paragraphs blue and sets their font size.To target specific elements, use class selectors. Add a class attribute to your HTML:
This text is special.
Then style it in CSS using a dot: .highlight {
background-color: yellow;
font-weight: bold;
}ID selectors target a single, unique element using the # symbol. In HTML:
Welcome
In CSS: #main-title {
text-align: center;
color: #333;
}You can also combine selectors for more precision. For example: div p {
margin: 10px 0;
} applies only to tags inside a.CSS lets you control nearly every visual aspect:
- Color: Use color for text and background-color for backgrounds. Values can be names (red), hex codes (#ff0000), or RGB (rgb(255, 0, 0)).
- Box Model: Every element has margin, border, padding, and content. Use padding: 20px; to add inner space, border: 1px solid black; for a border, and margin: 10px; for outer spacing.
- Rounded Corners: Add border-radius: 10px; to soften edges.
- Fonts: Change with font-family, font-size, and font-weight.
- Display and Layout: Use display: flex; or display: grid; for modern layouts.
Pro Tip: Always link your CSS file in the of your HTML using: . This keeps your styles separate and reusable.With CSS selectors, you gain full control over your site’s appearance. A few well-placed rules can transform a plain page into a visually engaging experience.
A 15-Minute Video Tutorial to Create a Personal Profile Page
Ready to build something real? Our 15-minute video tutorial walks you through creating a personal profile page from scratch. This hands-on project combines everything you’ve learned: HTML structure, essential tags, and CSS styling.
The tutorial begins by setting up a project folder with two files: index.html and styles.css. You’ll start with the basic HTML5 boilerplate:
My Profile
Your Name
Welcome to my personal profile page!
Next, you’ll add content: a short bio, a photo (using
), and links to your social media (using ). The video shows how to organize sections using
tags with classes like profile and contact.Then, you’ll switch to CSS to style the page:
- Set a clean background color.
- Center the content with text-align: center; and margin: auto;
- Style the heading with a larger font and color.
- Add a border and rounded corners to the profile image.
- Make links stand out with color and hover effects.
The video emphasizes best practices: using semantic class names, commenting code, and testing in a browser. You’ll see how small changes in CSS instantly update the page’s look.By the end of 15 minutes, you’ll have a complete, styled profile page that you can open in any browser. You can then customize it with your own information, colors, and layout. This project is perfect for sharing your skills, building a portfolio, or practicing for job applications.
The tutorial is designed for absolute beginners—no prior knowledge needed. It’s available on our free learning platform and includes downloadable source files so you can follow along step by step.
PDF with a Cheat Sheet of the Most Commonly Used CSS Properties
To help you remember and apply CSS rules quickly, we provide a free downloadable PDF cheat sheet that lists the most commonly used CSS properties. This one-page reference is perfect for beginners who want a fast lookup without searching online.
The cheat sheet is organized into categories:
- Typography: font-family, font-size, font-weight, text-align, line-height, text-decoration
- Colors & Backgrounds: color, background-color, background-image, opacity
- Box Model: width, height, padding, margin, border, border-radius
- Layout: display (block, inline, flex, grid), position, float, overflow
- Flexbox: flex-direction, justify-content, align-items, flex-wrap
- Responsive Design: @media queries, max-width, viewport meta tag
- Transitions & Effects: transition, transform, box-shadow, cursor
Each property includes a brief description and a simple example. For instance: border-radius: 8px;
/* Rounds the corners of an element */Tip: Print the cheat sheet and keep it on your desk, or save it to your phone for quick reference while coding.This resource saves time and reduces frustration during learning. Instead of memorizing syntax, you can focus on understanding how properties work together to create beautiful layouts.
To download the PDF, simply enroll in our free web development course. No email or payment is required—just click and save. The cheat sheet is updated regularly to reflect modern best practices and new CSS features.
Learning web development doesn’t have to be overwhelming. With the right tools—like structured tutorials, essential tag lists, practical projects, and quick-reference guides—you can go from zero to building real websites in days.
HTML and CSS are not just technical skills—they’re creative tools. You’re not just writing code; you’re designing experiences. Every color, font, and layout choice shapes how users feel when they visit your site.
Start small. Build your profile page. Experiment with colors and fonts. Break things, fix them, and learn. The web is built by people just like you—and now, you’re one of them.
Category: Free Course