Unit 1: Introduction to HTML
Web Technologies notes · PTU syllabus (BSIT304)
On this page
Unit summary
HTML is the language that structures every web page. This unit covers communication between web servers and browsers, HTML tags, document head and body structure, titles and footers, text formatting, heading and text styles, lists, and adding graphics with border, width, height, align and alt attributes.
After this unit you can
- Explain web server and browser communication
- Structure an HTML document with head and body
- Format text, headings and lists
- Add images with attributes
PTU syllabus topics
- Web server and browser communication
- HTML tags
- document head/body structure
- titles and footers
- text formatting
- heading styles
- text styles
- lists
- adding graphics with border/width/height/align/alt attributes
<head>
Title, meta tags, CSS links
<body>
Visible content
Text
<h1>–<h6>, <p>, <b>, <i>
Lists
<ul>, <ol>, <li>
Media and links
<img>, <a href>
Topic 1
Web server and browser communication
The internet is a global network of interconnected computer networks that communicate using the TCP/IP protocols. The World Wide Web (WWW) is a service on the internet made of linked web pages accessed through HTTP/HTTPS.
- 1Type a URL
https://www.sbs.ac.in
- 2DNS lookup
Domain name translated to an IP address
- 3Request
Browser sends an HTTP request to the web server
- 4Response
Server sends back HTML, CSS, JS and images
- 5Render
Browser displays the page
- Domain name: a readable address (sbs.ac.in). Top-level domains include .com, .org, .edu, .in, .ac.in.
- Connectivity: dial-up (old), broadband, fibre, mobile data (4G/5G) and Wi-Fi, provided by an ISP (Internet Service Provider).
- Web browser (Chrome, Firefox, Edge) requests and displays pages; a web server stores and serves them.
- 1
User enters a URL
- 2
DNS resolves the domain to an IP address
- 3
Browser sends an HTTP request
- 4
Web server (Apache, Nginx, IIS) processes it
- 5
Server returns an HTTP response with HTML
- 6
Browser renders the page and requests images, CSS and scripts
Topic 2
HTML tags
HTML (HyperText Markup Language) describes the structure of a web page using tags in angle brackets.
Structure
Opening and closing tag
Only one tag
Content
Wraps content
No content
Examples
<p>…</p>, <b>…</b>, <h1>…</h1>
<br>, <hr>, <img>
Attributes give extra information inside the opening tag: <img src="logo.png" alt="SBS logo">.
Topic 3
Document structure: head, body, titles and footers
html<!DOCTYPE html>
<html>
<head>
<title>My First Page</title>
</head>
<body>
<h1>Welcome to SBS</h1>
<p>This is a paragraph.</p>
<footer>Copyright 2026</footer>
</body>
</html><head>holds information about the page (title, meta tags, CSS links) — not shown in the page body.<title>appears on the browser tab.<body>holds everything visible on the page.- Footer: the footer element (or a final section) holds copyright, contact and links, e.g. a footer with "© 2026 SBS".
Topic 4
Text formatting, heading styles and text styles
| Tag | Effect |
|---|---|
| <h1> to <h6> | Headings, largest to smallest |
| <p> | Paragraph |
| <br> / <hr> | Line break / horizontal rule |
| <b> or <strong> | Bold (strong also means importance) |
| <i> or <em> | Italic (em also means emphasis) |
| <u> | Underline |
| <sup> / <sub> | Superscript / subscript |
| <pre> | Preformatted text (keeps spaces) |
Colours can be written as names (red), hexadecimal codes (#FF0000) or RGB values (rgb(255, 0, 0)). In modern HTML they are applied with CSS: <p style="color:#0b6b3a">Green text</p>.
Exam tip
Hex colour codes use pairs for red, green and blue from 00 to FF: #000000 is black and #FFFFFF is white.
Topic 5
Lists
Unordered
<ul> with <li>
Bulleted items where order doesn't matter
Ordered
<ol> with <li>
Numbered steps; type="1", "A", "a", "I", "i"
Definition
<dl>, <dt>, <dd>
Terms and their descriptions
html<ol type="I">
<li>Admission</li>
<li>Registration</li>
</ol>Topic 6
Adding graphics with border, width, height, align and alt
<img src="campus.jpg" alt="SBS campus" width="400" height="250" border="1" align="left">
- src: path of the image (required).
- alt: text shown if the image fails to load, and read by screen readers — also important for SEO.
- width/height: size in pixels.
- border/align: older attributes, now usually done with CSS.
Key terms
- Web server
- Software delivering web pages over HTTP
- Browser
- Software that requests and renders web pages
- Tag
- HTML element marker in angle brackets
- Attribute
- Extra information inside an opening tag
- alt text
- Text alternative for an image
Quick revision
- URL, DNS, HTTP request and response.
- Paired and empty tags; attributes.
- html, head, title, body; footer.
- Headings h1–h6, b, i, u, font, colours.
- ol, ul, dl; img with src, alt, width, height, border, align.
Important exam questions
Practice questions written to the PTU exam pattern for this unit's syllabus: short answers (Section A style) and long answers (Sections B and C style).
Short-answer questions
- Q1.How does a browser communicate with a web server?
- Q2.Distinguish paired and empty tags.
- Q3.What is the purpose of the head section?
- Q4.Name the six heading tags.
- Q5.Distinguish ordered and unordered lists.
- Q6.Why is the alt attribute important?
Long-answer questions
- Q1.Explain web server and browser communication.
- Q2.Explain the structure of an HTML document.
- Q3.Explain text formatting and list tags with examples.
- Q4.Explain how images are added to a page with their attributes.
Stuck on this unit?
Message SBS on WhatsApp for help with Web Technologies, or to ask about studying B.Sc IT at Synetic.
