Class Flow
Outcomes
Target- Create basic HTML structure
- Use headings + paragraphs
- Use text formatting tags correctly
- Create lists, links, images, and tables
Setup
Tools- VS Code / Notepad++
- Chrome / Edge / Firefox
- Internet (optional)
Rule
HTML Only- No CSS needed
- Follow lecturer pacing
- Stop at checkpoints
IN-CLASS PRACTICAL ACTIVITY
Tasks (Complete Step-by-Step)
Create Folder + File
- Create folder: RegNo_Practical2_1
- Inside the folder, create
index.html - Open the folder using VS Code
10DDT23F1705_Practical2_1Paste Starter HTML
Copy this base structure into index.html.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Practical 2.1 - HTML Quick Build</title>
</head>
<body>
</body>
</html>
Run in Browser (Initial Check)
- Right-click
index.html→ Open with → Chrome / Edge / Firefox - Confirm the browser tab title shows: Practical 2.1 - HTML Quick Build
- Keep the browser open (refresh after each task)
Ctrl + R to refresh after each change.Add Headings and Paragraphs
<body> tag, add:- One main heading using
<h1> - Two subheadings using
<h2>and<h3> - Two paragraphs using
<p>
- H1: Introduction to Web Development
- H2: About This Practical
- P: This practical focuses on learning the basic structure and essential elements of HTML.
- H3: Student Information
- P: My name is ________ and I am studying Web Design Technology.
Apply Text Formatting Elements
In one paragraph, apply all Nine (9) text formatting elements (use different tags).
<b>, <strong>, <i>, <em>, <mark>,
<small>, <del>, <ins>, <sub>, <sup>
- HTML is the foundation of web development.
- It is used to create important web content.
- Some text can appear in italic form, while other text may be emphasised.
- Key terms can be highlighted, notes may appear in small text, old content can be
removed, and new content can be inserted. - Chemical formula H2O and mathematical expression x2 are also supported.
Insert a Quotation Block
Add a quotation using <blockquote> (1–2 lines).
Create Lists
- Create one ordered list (
<ol>) with at least 3 items - Create one unordered list (
<ul>) with at least 3 items - Use
<li>for every item
- Ordered: HTML, CSS, JavaScript
- Unordered: Front-end Developer, Back-end Developer, Full Stack Developer
Insert Basic Hyperlinks Using Attributes
Create different types of hyperlinks using the <a> tag and its attributes.
- Create at least 3 different types of hyperlinks
- Use meaningful link text (avoid raw URLs)
- Use
hrefcorrectly for each link - At least one link must open in a new tab
Email link: student@email.com
Internal link: Contact section
File link: notes.pdf
Insert an Image Using <img> Attributes
In this task, you will insert images using the <img> tag
and understand how image paths and attributes work in HTML.
-
Insert image from the same folder
Place an image (e.g.profile.jpg) in the same folder asindex.htmland insert it using:
<img src="profile.jpg" alt="Profile image"> -
Insert image from a special images folder
Create a folder namedimagesand place an image inside it. Use the correct path:
<img src="images/banner.jpg" alt="Website banner"> -
Resize image using HTML attributes
Try setting:width="300"height="150"
-
Make image fit 100% width
Insert a banner image that fills the page width:
<img src="images/banner.jpg" alt="Banner image" width="100%"> -
Insert image using online URL
Use any online image URL, for example:
<img src="https://via.placeholder.com/400" alt="Online image">
✅ Important: All images must include the alt
attribute for accessibility and marking.
Create a Simple Table
<table>, <tr>, <th>, <td>
- At least 3 columns
- At least 3 rows (excluding header row)
Day: Monday
Topic: HTML Basics
Notes: Learn structure, tags, and basic elements
Row 2
Day: Wednesday
Topic: Div and Span
Notes: Practice grouping content and highlighting text
Row 3
Day: Friday
Topic: Tables and Forms
Notes: Create tables and simple input forms
Apply Div and Span
<div>, <span>
- Create one main div as the page container
- Inside the main div, create at least 2 section divs
- Include at least one nested div (div inside div)
- Use
<span>inside a sentence to highlight 2 words/phrases - HTML only (no CSS)
This main section contains all student profile and learning information.
Section 1: Student Profile
Name: Nur Aina
Programme: Diploma in Information Technology
Semester: 3
Section 2: Learning Reflection
I am learning semantic HTML to build structured webpages because proper structure helps developers organise content clearly and makes webpages easier to maintain in the future.
(Highlight: semantic HTML, structured webpages)
Nested Section: Current Learning Topics
HTML Structure
Div and Span
Semantic Elements
Task 12: Check + Screenshot
- Headings, paragraphs, formatting, lists, hyperlink, image, table, and quotation are visible
- Browser tab title is visible
- No broken image icon (check
srcand file name)