HTML practical exercises (AL and Advance)

Below is a set of HTML practical exercises that align with the syllabus for Competency 10: Develops websites incorporating multimedia technologies (using HTML5) . Each exercise includes a description, syllabus coverage, aim, and HTML code.

Exercise 10.1: Basic HTML Structure
Description: Write an HTML file to create a simple webpage with a title, heading, and paragraph.
Syllabus Coverage: Building blocks of a web page (html, head, body).
Aim: Introduce students to the basic structure of an HTML document.

Exercise 10.2: Text Formatting

Description: Write an HTML file to format text using headings, paragraphs, bold, italic, and underline tags.
Syllabus Coverage: Text formatting (h1 to h6, p, b, i, u).
Aim: Teach students how to format text in HTML.

Exercise 10.3: Adding Comments

Description : Write an HTML file that includes comments to explain the purpose of different sections.
Syllabus Coverage : Adding comments in HTML.
Aim : Teach students how to use comments for better code readability.

Exercise 10.4: Background Color and Images

Description : Write an HTML file to set a background color and add an image to the webpage.
Syllabus Coverage : Background color and images.
Aim : Teach students how to enhance the appearance of a webpage using background and images.

Exercise 10.5: Creating Lists

Description: Write an HTML file to create ordered, unordered, and definition lists.
Syllabus Coverage: Lists (ol, ul, dl).
Aim: Teach students how to organize content using lists.

Exercise 10.6: Creating Tables

Description: Write an HTML file to create a table with rows, columns, headers, and merged cells.
Syllabus Coverage: Tables (table, tr, th, td, merging rows/columns).
Aim: Teach students how to organize data into tables.

Exercise 10.7: Adding Hyperlinks

Description : Write an HTML file to create hyperlinks for internal navigation, external links, and bookmarks.
Syllabus Coverage : Hyperlinks (a), local links, external links, bookmarks.
Aim : Teach students how to link pages and sections within a webpage.

Exercise 10.8: Embedding Multimedia

Description : Write an HTML file to embed audio and video files into a webpage.
Syllabus Coverage : Multimedia objects (audio, video).
Aim : Teach students how to include multimedia content in webpages.

Exercise 10.9: Creating Forms

Description : Write an HTML file to create a form with input fields, radio buttons, checkboxes, and a submit button.
Syllabus Coverage : Forms (form, input, button).
Aim : Teach students how to collect user input using forms.

Exercise 10.10: Grouping Form Data

Description : Write an HTML file to group form data using the (fieldset) tag.
Syllabus Coverage : Grouping form data (fieldset, legend).
Aim : Teach students how to organize form elements logically.

Exercise 10.11: Saving Form Data

Description : Write an HTML file to save form data into a database (simulated with JavaScript alerts).
Syllabus Coverage : Saving form data into a database.
Aim : Introduce students to the concept of saving form data.

Above exercises comprehensively cover the HTML-related topics in your syllabus, including basic structure , text formatting , lists , tables , hyperlinks , multimedia , forms , and grouping form data . They are designed to progressively build students’ skills while aligning with the learning outcomes.

Below are advanced HTML practical exercises that go beyond the syllabus, exploring modern and cutting-edge concepts in web development. These exercises will help you deepen your understanding of HTML and its capabilities in building dynamic, interactive, and feature-rich web applications.

Exercise 1: Semantic HTML for Accessibility

Description : Write an HTML file using semantic tags to improve accessibility and SEO.
What You Learn : Semantic HTML elements like (header, footer, article, section, and nav) for better structure and accessibility.

Exercise 2: Advanced Forms with Input Types

Description : Create a form using advanced HTML5 input types like date, color, range, and file.
What You Learn : Modern HTML5 input types for enhanced user experience.

Exercise 3: Embedding Interactive Maps

Description : Embed an interactive Google Map into a webpage using the (iframe) tag.
What You Learn : Embedding third-party content like maps into webpages.

Exercise 4: Customizing Scrollbars

Description : Customize scrollbars using the ::-webkit-scrollbar pseudo-element (WebKit browsers only).
What You Learn : Styling browser components like scrollbars.

Exercise 5: Creating a Responsive Grid Layout

Description : Use CSS Grid to create a responsive layout without relying on frameworks like Bootstrap.
What You Learn : Building modern, responsive layouts using native HTML and CSS.

Exercise 6: Adding Dark Mode Toggle

Description : Add a dark mode toggle button to switch between light and dark themes using HTML and CSS variables.
What You Learn : Using CSS variables and JavaScript for interactivity.

Exercise 7: Embedding YouTube Videos

Description : Embed a YouTube video into a webpage using the (iframe) tag.
What You Learn : Embedding multimedia content from external platforms.

Exercise 8: Creating a Parallax Scrolling Effect

Description : Create a parallax scrolling effect using HTML and CSS.
What You Learn : Adding depth and interactivity to webpages with parallax effects.

Exercise 9: Building a Modal Popup

Description : Create a modal popup that appears when a button is clicked.
What You Learn : Adding interactive UI components like modals.

Exercise 10: Adding Microdata for SEO

Description : Add microdata to a webpage to improve search engine optimization (SEO).
What You Learn : Structured data for better indexing by search engines.

These exercises explore advanced HTML concepts such as semantic HTML , modern input types , embedding maps and videos , custom scrollbars , responsive grids , dark mode toggles , parallax effects , modals , and microdata for SEO . They provide practical, real-world applications of HTML and will help you explore areas beyond the syllabus.

Html Editor

External Editor (Html. CSS, Java Scripts)

Spread the love