HTML5 Web Development Student Workbook
HTML5 Web Development Student Workbook
Workbook (Grade 8)
Course Introduction
Welcome to your HTML5 Web Development Workbook! This workbook will guide you
through the basics of building websites using HTML5. Each lesson includes explanations,
examples, and space for you to practice. Let’s begin your journey into web development!
Introduction to HTML5
Key Concepts
Tasks
Practice
<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Hello, HTML5!</h1>
</body>
</html>
Practice
<h1>Main Heading</h1>
<p>This is a paragraph.<br>With a line break.</p>
<hr>
<p>Water is H<sub>2</sub>O and 2<sup>3</sup> = 8</p>
<p>© 2025</p>
Try it yourself:
Lists
Key Concepts
Practice
<ul>
<li>Fruits
<ul>
<li>Banana</li>
<li>Apple</li>
</ul>
</li>
</ul>
Practice
<img src="cat.jpg" alt="A cat" width="200">
<audio controls>
<source src="music.mp3" type="audio/mpeg">
</audio>
<video controls width="300">
<source src="video.mp4" type="video/mp4">
</video>
Tables
Key Concepts
Practice
<table border="1">
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>Ali</td>
<td>12</td>
</tr>
</table>
Practice
<a href="page2.html">Go to Page 2</a>
<a href="https://www.example.com" target="_blank">External Site</a>
Forms
Key Concepts
Practice
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name"><br>
<label>Email:</label>
<input type="email" name="email"><br>
Flexbox
What is Flexbox?
A layout system in CSS is used to align and distribute
space among items in a container.
css
.container {
display: flex;
justify-content: space-between;
}
html
<div class="container">
<div>Column 1</div>
<div>Column 2</div>
</div>
Flexbox Terms:
Flexbox (short for Flexible Box Layout) is a layout system in CSS3 used to arrange items
inside a container — either in a row (horizontal) or a column (vertical). It makes it easier to
align, distribute space, and reorder content on a web page, especially when building responsive
designs.
To use Flexbox, you start by turning a container into a flex container using this CSS:
css
.container {
display: flex;
}
align-items
Vertical alignment (flex-start, center, flex-end, align-items: center;
stretch)
flex-wrap Allows items to wrap onto multiple lines flex-wrap: wrap;
CSS Tables
HTML Table Basics:
html
CopyEdit
<table>
<tr><th>Name</th><th>Age</th></tr>
<tr><td>Amy</td><td>13</td></tr>
</table>
CSS Styling Example:
css
table {
width: 100%;
border-collapse: collapse;
}
td, th {
border: 1px solid #000;
padding: 8px;
}
Borderless Table:
Use CSS to hide borders:
css
table, td, th {
border: none;
}
CSS Forms
Styling a Form:
You can style inputs, buttons, and labels to improve the
appearance.
css
input[type="text"], input[type="email"] {
width: 100%;
padding: 8px;
margin: 5px 0;
}
html
<form>
<label>Name:</label>
<input type="text" name="name">
</form>
Final Notes
Congratulations! You've completed the HTML5 basics. Keep practicing and try combining all
you've learned into a mini-website. Happy coding!
coding instructor
wesley wenceslaus