HTML Notes for Grade 12
Introduction to HTML
HTML stands for HyperText Markup Language. It is the standard language used to create
and structure web pages.
HTML Tags
Tags are special commands enclosed in angle brackets <> that tell a browser how content
should appear.
HTML Elements
An element consists of an opening tag, content, and a closing tag.
HTML Attributes
Attributes provide extra information about HTML elements and are written inside opening
tags.
Structure of an HTML Document
Main parts include <!DOCTYPE html>, <html>, <head>, <title>, and <body>.
Common Tags
Headings (h1-h6), paragraphs (p), line breaks (br), horizontal rules (hr), lists, tables,
images, links, divs, forms, inputs, textareas, and buttons.
Lists
Ordered lists (ol), unordered lists (ul), and description lists (dl).
Tables
Created using table, tr, th, and td tags.
Forms
Forms collect user information using input controls, textareas, and buttons.
Empty Tags
Tags such as br, hr, img, and input do not require closing tags.
Exercises
No. Exercise
1 Create a webpage with your name as the
main heading and a paragraph describing
yourself.
2 Create an ordered list showing five school
subjects.
3 Create a table showing Student Name,
Class, and Age.
4 Create a form containing a textbox, email
field, password field, and submit button.
5 Design a simple school webpage using
headings, paragraphs, images, links, and
tables.