Unit 1 of 4 · B.Sc IT Sem 3

Unit 1: Introduction to HTML

Web Technologies notes · PTU syllabus (BSIT304)

4 min read6 topics10 exam questions
On this page
  1. Unit summary
  2. Web server and browser communication
  3. HTML tags
  4. Document structure: head, body, titles and footers
  5. Text formatting, heading styles and text styles
  6. Lists
  7. Adding graphics with border, width, height, align and alt
  8. Key terms
  9. Quick revision
  10. Important questions

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
1

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.

ProcessHow a web page reaches you
  1. 1Type a URL

    https://www.sbs.ac.in

  2. 2DNS lookup

    Domain name translated to an IP address

  3. 3Request

    Browser sends an HTTP request to the web server

  4. 4Response

    Server sends back HTML, CSS, JS and images

  5. 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.
ProcessRequest–response cycle
  1. 1

    User enters a URL

  2. 2

    DNS resolves the domain to an IP address

  3. 3

    Browser sends an HTTP request

  4. 4

    Web server (Apache, Nginx, IIS) processes it

  5. 5

    Server returns an HTTP response with HTML

  6. 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.

2

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.

ComparisonPaired vs singular tags
Paired (container) tags
Singular (empty) tags

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.

3

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.

4

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.

TagEffect
<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.

5

Topic 5

Lists

ComparisonHTML lists
Tags
Use

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).

6

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

  1. Q1.How does a browser communicate with a web server?
  2. Q2.Distinguish paired and empty tags.
  3. Q3.What is the purpose of the head section?
  4. Q4.Name the six heading tags.
  5. Q5.Distinguish ordered and unordered lists.
  6. Q6.Why is the alt attribute important?

Long-answer questions

  1. Q1.Explain web server and browser communication.
  2. Q2.Explain the structure of an HTML document.
  3. Q3.Explain text formatting and list tags with examples.
  4. 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.

WhatsApp us