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
Topic 1
Web server and browser communication
When you enter a URL, the browser uses DNS to find the server's IP address, sends an HTTP request, and the web server returns an HTTP response containing HTML, CSS, JavaScript and images, which the browser renders. 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
Example
Loading a page: typing www.sbs.ac.in makes the browser look up its IP address, send GET / over HTTPS, and receive status 200 OK with the HTML. A missing page returns 404 Not Found.
Exam tip
Know common status codes: 200 OK, 301 Moved, 404 Not Found, 500 Server Error.
Topic 2
HTML tags
Most tags come in pairs — an opening tag <p> and a closing tag </p> — while some are empty (void) tags with no closing tag, such as <br>, <hr> and <img>. Tags can have attributes, written as name="value". 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">.
Example
Tags and attributes: <p align="center">Welcome to <b>SBS</b></p> creates a centred paragraph with the word SBS in bold. <br> adds a line break without a closing tag.
Exam tip
Distinguish container (paired) tags from empty tags.
Topic 3
Document structure: head, body, titles and footers
Every HTML page has a head (title, metadata, links to CSS and scripts — not shown on the page) and a body (the content shown in the browser). HTML5 adds semantic tags such as <header>, <nav>, <main> and <footer>.
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".
Example
Where content goes: the text in <title> appears on the browser tab and in search results, not on the page. The copyright line in <footer> appears at the bottom of the page.
Exam tip
Remember: head = information about the page; body = what the user sees.
Topic 4
Text formatting, heading styles and text styles
Formatting tags change how text looks or what it means: headings (h1–h6), paragraphs, bold, italic, underline, subscript and superscript.
| 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.
Example
Formulas in HTML: H<sub>2</sub>O shows H₂O, and x<sup>2</sup> shows x². <strong> makes text bold and marks it as important; <em> makes it italic and adds emphasis.
Exam tip
Use only one h1 per page for the main title; it also helps search engines.
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>Example
A nested list: <ol><li>Semester 1<ul><li>Programming in C</li><li>Mathematics-I</li></ul></li><li>Semester 2</li></ol> shows numbered semesters with bulleted subjects inside.
Exam tip
ol = numbered, ul = bulleted, dl = definition list (dt for term, dd for description).
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.
Example
Why alt text matters: if campus.jpg fails to load, the browser shows "SBS campus" instead. Screen readers read the alt text aloud for visually impaired users, and search engines use it to understand the image.
Exam tip
Always include alt; modern pages set size and alignment with CSS instead of the old attributes.
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.
