This is Video 6 of ManoraTech's free 30-video web development course. You will learn what semantic HTML means and why landmarks help screen readers and search engines, restructure your page with header, nav, main, section and footer, write a copyright line with the © entity, try article and aside in a practice file, and learn when the neutral div and span boxes are the right choice. Then you build a Skills table with caption, thead, tbody, tr, th and td. By the end, your page has a professional structure and your first table.
What you will learn
- Explain what "semantic" means and why it matters for accessibility and SEO.
- Structure a page with header, nav, main, section, article, aside and footer.
- Know when a plain div or span is the right choice.
- Build a simple table with caption, thead, tbody, tr, th and td.
Key takeaways
- Semantic tags describe meaning, not looks: header, nav, main, section and footer.
- Use one main per page, and give every section a heading.
- Choose a semantic tag first; use div or span only when nothing else fits.
- Tables are for data (caption, thead, tbody, tr, th and td), never for layout.
What you will build
Both pages of the course website get a semantic structure:
index.html:header(name, subtitle and the menu insidenav),mainwith threesectionelements (About Meid="about", Skillsid="skills", Find Me Onlineid="links") and afooterwith a copyright line (©). The new Skills section holds a "Skills I'm Learning" table withcaption,thead,tbody,tr,th scope="col"andtd. The Skills link in the menu now works.contact.html: the sameheader,navandfooter, and the contact text insidemain→section id="contact". The menu keeps itsindex.html#aboutandindex.html#skillslinks.
index.html is now identical to the finished HTML version in 07-html-forms/index.html. Only contact.html changes in Video 7 (it gets the form).
The page looks almost the same as before in the browser. Semantic tags add meaning for browsers, search engines and screen readers, not a new look.
Quick reference
| Tag | Meaning |
|---|---|
header | introduction at the top: logo or name, subtitle, menu |
nav | a block of main navigation links (usually inside header) |
main | the main content of this page (only one per page) |
section | one topic of the page, usually starting with a heading |
article | a complete piece that makes sense on its own (blog post, news story, product card) |
aside | extra content, related but not essential (tip box, related links) |
footer | closing information: copyright, contact links |
div / span | neutral block / inline boxes with no meaning. Use them when no semantic tag fits |
table | data in rows and columns, never for page layout |
caption | the title of a table (first thing inside table) |
thead / tbody | group the header rows / the data rows |
tr | a table row |
th / td | a header cell / a data cell |
The code from this lesson
This is the code as it is at the end of the video. Copy it into VS Code and open the page with Live Server to see it in your browser.
index.html Home page at the end of the video
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sara Ahmed | Aspiring Web Developer</title>
</head>
<body>
<header>
<h1>Sara Ahmed</h1>
<p>Aspiring web developer · Coffee lover · Lifelong learner</p>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#skills">Skills</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<!-- About me -->
<section id="about">
<h2>About Me</h2>
<figure>
<img src="images/avatar.svg" alt="Illustration of Sara smiling, with dark hair and a yellow top" width="200" height="200">
<figcaption>That's me — learning to code one line at a time.</figcaption>
</figure>
<p>Hi! I'm <strong>Sara</strong>, and I'm learning web development from scratch. I started this course because I want to build websites for small businesses — and maybe one day for my own.</p>
<p>When I'm not coding, you'll usually find me with a cup of <em>very</em> strong coffee and a good book.</p>
<h3>My Hobbies</h3>
<ul>
<li>Photography</li>
<li>Reading mystery novels</li>
<li>Cooking new recipes</li>
<li>Hiking on weekends</li>
</ul>
<h3>My Goals This Year</h3>
<ol>
<li>Finish this web development course</li>
<li>Build and publish three websites:
<ul>
<li>A personal website (this one!)</li>
<li>A to-do list app</li>
<li>A website for a local business</li>
</ul>
</li>
<li>Get my first freelance client</li>
</ol>
</section>
<!-- Skills table -->
<section id="skills">
<h2>Skills I'm Learning</h2>
<table>
<caption>My learning progress</caption>
<thead>
<tr>
<th scope="col">Skill</th>
<th scope="col">Level</th>
<th scope="col">Started</th>
</tr>
</thead>
<tbody>
<tr>
<td>HTML</td>
<td>Beginner</td>
<td>Week 1</td>
</tr>
<tr>
<td>CSS</td>
<td>Starting soon</td>
<td>Week 2</td>
</tr>
<tr>
<td>JavaScript</td>
<td>Starting soon</td>
<td>Week 4</td>
</tr>
</tbody>
</table>
</section>
<!-- Links -->
<section id="links">
<h2>Find Me Online</h2>
<ul>
<li><a href="https://github.com/" target="_blank" rel="noopener">GitHub</a></li>
<li><a href="https://www.linkedin.com/" target="_blank" rel="noopener">LinkedIn</a></li>
<li><a href="mailto:hello@example.com">Email me</a></li>
</ul>
</section>
</main>
<footer>
<p>© 2026 Sara Ahmed. Built with HTML while learning web development.</p>
</footer>
</body>
</html>
contact.html Contact page with the new structure (the form comes in Video 7)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact | Sara Ahmed</title>
</head>
<body>
<header>
<h1>Sara Ahmed</h1>
<p>Aspiring web developer · Coffee lover · Lifelong learner</p>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="index.html#about">About</a></li>
<li><a href="index.html#skills">Skills</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section id="contact">
<h2>Contact Me</h2>
<p>Have a question or a project idea? Send me a message and I'll reply within two days.</p>
<p><a href="mailto:hello@example.com">Email me</a></p>
</section>
</main>
<footer>
<p>© 2026 Sara Ahmed. Built with HTML while learning web development.</p>
</footer>
</body>
</html>
semantic-demo.html Practice file used in the video for article, aside, div and span (not part of the website)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Semantic Demo</title>
</head>
<body>
<main>
<h1>Sara's Coding Blog</h1>
<!-- article: a complete piece that makes sense on its own -->
<article>
<h2>My First Week of Coding</h2>
<p>This week I built my first web page and a list of my hobbies.</p>
</article>
<!-- aside: extra content, related but not essential -->
<aside>
<h2>Quick Tip</h2>
<p>Save your file before you check the browser.</p>
</aside>
<!-- div: a neutral block box. span: a neutral inline box. -->
<div>
<p>Written by <span>Sara Ahmed</span> in November 2026.</p>
</div>
</main>
</body>
</html>
Practice challenge
Add an "Education" section using section, an h2 and a small table with three rows: Year, What and Where.
Show the solution
The solution is in index.html below. A new section id="education" sits between the Skills section and the Find Me Online section. It has an h2 "Education" and a table with a caption, a header row with three th cells (Year, What, Where) and three data rows in tbody, each with three td cells. Every row has the same number of cells as the header row.
index.html Solution
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sara Ahmed | Aspiring Web Developer</title>
</head>
<body>
<header>
<h1>Sara Ahmed</h1>
<p>Aspiring web developer · Coffee lover · Lifelong learner</p>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#skills">Skills</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</header>
<main>
<!-- About me -->
<section id="about">
<h2>About Me</h2>
<figure>
<img src="images/avatar.svg" alt="Illustration of Sara smiling, with dark hair and a yellow top" width="200" height="200">
<figcaption>That's me — learning to code one line at a time.</figcaption>
</figure>
<p>Hi! I'm <strong>Sara</strong>, and I'm learning web development from scratch. I started this course because I want to build websites for small businesses — and maybe one day for my own.</p>
<p>When I'm not coding, you'll usually find me with a cup of <em>very</em> strong coffee and a good book.</p>
<h3>My Hobbies</h3>
<ul>
<li>Photography</li>
<li>Reading mystery novels</li>
<li>Cooking new recipes</li>
<li>Hiking on weekends</li>
</ul>
<h3>My Goals This Year</h3>
<ol>
<li>Finish this web development course</li>
<li>Build and publish three websites:
<ul>
<li>A personal website (this one!)</li>
<li>A to-do list app</li>
<li>A website for a local business</li>
</ul>
</li>
<li>Get my first freelance client</li>
</ol>
</section>
<!-- Skills table -->
<section id="skills">
<h2>Skills I'm Learning</h2>
<table>
<caption>My learning progress</caption>
<thead>
<tr>
<th scope="col">Skill</th>
<th scope="col">Level</th>
<th scope="col">Started</th>
</tr>
</thead>
<tbody>
<tr>
<td>HTML</td>
<td>Beginner</td>
<td>Week 1</td>
</tr>
<tr>
<td>CSS</td>
<td>Starting soon</td>
<td>Week 2</td>
</tr>
<tr>
<td>JavaScript</td>
<td>Starting soon</td>
<td>Week 4</td>
</tr>
</tbody>
</table>
</section>
<!-- Challenge: Education table -->
<section id="education">
<h2>Education</h2>
<table>
<caption>Where I have learned</caption>
<thead>
<tr>
<th scope="col">Year</th>
<th scope="col">What</th>
<th scope="col">Where</th>
</tr>
</thead>
<tbody>
<tr>
<td>2022</td>
<td>High school certificate</td>
<td>City Girls High School</td>
</tr>
<tr>
<td>2025</td>
<td>Bachelor of Business Studies</td>
<td>City University</td>
</tr>
<tr>
<td>2026</td>
<td>Web Development for Beginners</td>
<td>This YouTube course</td>
</tr>
</tbody>
</table>
</section>
<!-- Links -->
<section id="links">
<h2>Find Me Online</h2>
<ul>
<li><a href="https://github.com/" target="_blank" rel="noopener">GitHub</a></li>
<li><a href="https://www.linkedin.com/" target="_blank" rel="noopener">LinkedIn</a></li>
<li><a href="mailto:hello@example.com">Email me</a></li>
</ul>
</section>
</main>
<footer>
<p>© 2026 Sara Ahmed. Built with HTML while learning web development.</p>
</footer>
</body>
</html>
Quick quiz
Check what you learned. Pick an answer to see if it is right.
Question 1 of 3Which element should hold the main navigation links?
Show the answer
B. <nav> <nav> marks a block of navigation links. It usually sits inside <header>.
Question 2 of 3Why use semantic tags instead of only <div>?
Show the answer
C. They describe the meaning of content for browsers, search engines and screen readers Semantic tags look like plain boxes but carry meaning that machines understand.
Question 3 of 3In a table, which tag is a header cell?
Show the answer
A. <th> <th> is a header cell. <td> is a data cell, <tr> is a row and <thead> groups the header rows.
Frequently asked questions
What is semantic HTML?
HTML tags that describe what their content is, not how it looks, like header, nav, main, section and footer. They look like plain boxes but tell browsers, screen readers and search engines what each part of the page means.
What is the difference between header, nav, main and footer?
header holds the introduction at the top, nav holds a block of main navigation links, main holds the content that is unique to this page (only one per page), and footer holds closing information like a copyright line.
When should I use section, article or aside?
A section groups one topic and usually starts with a heading. An article is a complete piece that makes sense on its own, like a blog post. An aside holds related extra content, like a tip box.
What is the difference between div and span?
Both are neutral boxes with no meaning. A div is a block box that starts on a new line; a span is an inline box for a few words inside a line. Use them only when no semantic tag fits.
How do you make a table in HTML?
Start with table and a caption, group the header row in thead and the data rows in tbody, make each row a tr, and use th for header cells and td for data cells.
Should I use tables for page layout?
No. Tables are only for data in rows and columns. For layouts you use CSS Flexbox and Grid, which you learn in Module 4.
Read the full transcript
0:00 Welcome to ManoraTech
Hello, and welcome to ManoraTech! This is Web Development for Beginners, a free course in thirty short videos. This is video six: Semantic HTML and Page Structure.
0:17 Same look, different meaning
These two pages look exactly the same. But to Google and to screen readers, they are completely different. The left one is a pile of anonymous boxes. The right one says clearly: this is the header, this is the menu, this is the main content, and this is the footer.
Today you will give your own page that professional structure. It takes only a few new tags, and your page will look almost the same, but it will mean much more. And you will build your first HTML table.
0:47 What semantic HTML means
Semantic means related to meaning. A semantic tag tells the browser what its content is, not how it looks. You already know some. The h1 means the main heading, p means a paragraph, and ul means a list. But for many years, developers built the big parts of a page, like the top bar and the menu, from plain div boxes.
A div has no meaning at all. HTML5 added tags with meaning for those big parts, and they help real people. These big areas are called landmarks. A screen reader can list the landmarks of a page. Then a blind visitor can jump straight to the main content, or straight to the menu.
Search engines understand which text is your real content. And your code becomes easier to read, for you and for every developer after you. On the screen, semantic tags look exactly like plain boxes. They add no colour and no style. Their power is the meaning.
1:50 The layout tags: header, nav, main, footer
Let us restructure your page. The header element holds the introduction at the top of the page: your name, your subtitle and your menu. Inside it, wrap your menu list in a nav element. The nav element marks a block of main navigation links. Your old comments, Main heading and Navigation, can go now, because the tags explain themselves.
Next, wrap everything else in a main element. Main holds the main content of the page, the part that is unique to this page. Use only one main per page. Do not worry about the spaces at the start of each line. Press Control S, and Prettier fixes the indentation for you.
At the bottom, add a footer. A footer holds the closing information of a page, like a copyright line or contact links. The copyright symbol is written as an ampersand, the word copy and a semicolon. This is called an HTML entity, a short code for a special character.
Save. The page looks almost the same, now with a copyright line at the bottom. That is exactly right: you changed the meaning, not the look. Most websites follow this same pattern: a header at the top, main in the middle, and a footer at the bottom.
Open any big website with DevTools, and you will find these tags. Quick pause. If you are enjoying this video, please give it a like, share it with a friend who wants to learn web development, and subscribe to ManoraTech, so you never miss a lesson.
3:24 section, article and aside
Inside main, your page has topics: About Me and Find Me Online. A section element groups one topic, and it usually starts with a heading. Wrap your About Me content in a section, and move the id about from the h2 to the section. Now the About link jumps to the whole section.
Do the same for Find Me Online, with the id links. A good rule: if a part of your page deserves its own heading, it can be a section. Now give contact dot html the same structure: header, nav, main and footer. Put the contact text in a section with the id contact.
Careful: keep this page's own menu links, the ones that start with index dot html. Two more tags are common on blogs and news sites. An article is a complete piece that makes sense on its own, like a blog post, a news story or a product card.
An aside holds extra content that is related, but not essential, like a tip box. Your personal website does not need them yet, but you will see them on many websites. Let us try them in a practice file called semantic-demo dot html.
4:37 div and span: the neutral boxes
So is div bad? Not at all. Div and span are neutral boxes, with no meaning and no special look. A div is a block box, so it starts on a new line. A span is an inline box, so it wraps a few words inside a line of text.
Save, and nothing changes on the page. That is the point. You use div and span when no semantic tag fits, mostly to group things for styling with CSS. In the next video, you will use div to keep each form label together with its box.
The rule is simple: choose a semantic tag first, and use div or span only when nothing else fits.
5:18 HTML tables done right
Now the Skills section that your menu has been waiting for. Some information is best shown as a table, in rows and columns, like a timetable or a price list. Add a new section with the id skills, between About Me and Find Me Online.
Give it an h2 called Skills I'm Learning. A table starts with the table tag. The caption is the title of the table, and it comes first. Then thead groups the header rows, and tbody groups the data rows. Each row is a tr, short for table row.
In the header row, every cell is a th, a header cell. The scope attribute, with the value col, says that this header belongs to its column. In the data rows, every cell is a td, short for table data. Each row needs the same number of cells as the header row, three in our case.
Add two more rows, for CSS and JavaScript. Save. The browser shows a simple grid, with the caption on top and the header cells in bold. There are no borders yet. You will add them with CSS. Now click Skills in your menu. It finally jumps to your table.
The header cells help people too. When a screen reader user moves from cell to cell, the screen reader can announce the column header, like Level, before each value. Common mistake: using a table to arrange the layout of a page. Tables are only for data in rows and columns.
For layouts, you will learn Flexbox and Grid in module four. If this lesson is helping you, a like, a share and a subscribe really help ManoraTech keep making free lessons like this one. Thank you! Now, let us keep going.
7:05 Practice challenge
Your turn. Add an Education section to your page. Use a section element with an h2 called Education. Inside it, build a small table with three columns: Year, What and Where. Give it a caption, a header row with th cells, and three rows of data.
Use your Skills table as a model. For example, your school, a course you took, and this course. Put the new section after your Skills section, save, and check the browser. Every row should have three cells. Pause the video now and try it. The solution is in the course files linked in the description.
7:43 Quick quiz
Quick quiz time! Three questions about this video. Answer out loud, or pause the video and write your answers in the comments. Question one. Which element should hold the main navigation links? A: The header tag. B: The nav tag. C: The menu tag. D: The links tag.
The answer is B. The nav tag marks a block of navigation links. It usually sits inside the header tag. Question two. Why use semantic tags instead of only the div tag? A: CSS does not work on divs. B: They make the page load twice as fast.
C: They describe the meaning of content for browsers, search engines and screen readers. D: They add styling automatically. The answer is C. Semantic tags look like plain boxes but carry meaning that machines understand. Question three. In a table, which tag is a header cell?
A: The th tag. B: The td tag. C: The tr tag. D: The thead tag. The answer is A. The th tag is a header cell. The td tag is a data cell, the tr tag is a row and the thead tag groups the header rows.
9:15 Outro and next video
Today you gave your page a semantic structure with header, nav, main, section and footer, learned when div and span fit, and built your first table. In the next video, HTML Forms: Inputs, Labels and Buttons, you build a complete contact form. Tell me in the comments what you put in your Education table.
Thank you for watching ManoraTech! If you learned something new today, like this video, share it with a friend, and subscribe. I will see you in the next video. Goodbye!