BCA Student Stories & UpdatesLive
HTML Links & Images
Hyperlinks connect documents across the World Wide Web, creating the hyperlinked web network. Images visually communicate data, but require accessible descriptions via alt attributes.
Day 3 Step-by-Step Practical Flow
π―1. What You Will Learn Today
HTML Links & Images β Comprehensive Practical Guide
Webpages ko hyperlinks se jodein aur images ko accessible banayein.
Hyperlinks ki wajah se hi internet ko 'Web' kaha jata haiβhar page doosre page se ek click se jud jata hai.
"An `href` is like a GPS coordinate directing the browser to another building, while `src` is like ordering a picture frame to be placed in your room."
Anchor Tag Se Navigation
User ke click karte hi browser naye address pe navigate karta hai.
Security Protection: Tab Nabbing Se Bachna
Jab bhi target='_blank' use karein, tab nabbing hacking se bachne ke liye rel='noopener noreferrer' zaroori hai.
Accessible Image Embedding
Image download hone tak alt text fallback dikhta hai aur blind users ke screen readers ko image describe karta hai.
Kisi bhi tag par tap karein aur uske mandatory attributes, code aur live preview dekhein:
<a href='...'>
Anchor / HyperlinkInline ElementClickable link banata hai jisse user doosre page, website ya page ke kisi section pe jump kar sake.
hrefREQUIREDDestination web address ya page anchor.targetOPTIONALNaye tab mein kholne ke liye '_blank' lagayein.relOPTIONALSecurity ke liye 'noopener noreferrer' lagayein.<a href="https://github.com" target="_blank" rel="noopener noreferrer">
Visit My GitHub Portfolio
</a>1Case-Sensitive Image Filename Error
Windows pe photo.png aur Photo.PNG chal jata hai, par GitHub aur Linux servers case-sensitive hote hain. Exact match na hone par 404 error aata hai.
<!-- β WRONG: File on disk is 'Profile.JPG' -->
<img src="profile.jpg" alt="Profile"><!-- β
CORRECT: Exact case matching -->
<img src="Profile.JPG" alt="Profile">Lab exam mein external examiners aamtaur par ye sawaal puchte hain. Click karke model answer dekhein:
π¨βπ«3. Teacher Demonstration Code
Notice the secure attributes used when opening external links.
<section>
<h2>Explore Developer Resources</h2>
<p>
Visit the official
<a href="https://nextsem.online" target="_blank" rel="noopener noreferrer">
NextSem Academy Portal
</a>
</p>
<img
src="https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=500"
alt="Developer working on laptop with code editor open"
width="500"
height="300"
>
</section>2. Hands-On Practical Lab: Follow Instructions in VS Code
Code like a professional software engineer! Follow the step-by-step instructions below in Visual Studio Code (VS Code) on your PC, test your output locally, and push to GitHub.
Day 3 Practical Task Test Studio
Add an <img> tag with a valid `src` and a descriptive `alt` attribute.
Add an <a> tag linking to "https://github.com" with target="_blank".
Spot the Bug: Security Vulnerability in External Links
Tap or click on the exact line below that contains the error:
Click any code line<a href="https://untrusted-external-site.com" target="_blank">Click Here</a>Senior Developer Forensic Analysis:
Opening external sites in target="_blank" without rel="noopener noreferrer" allows the destination page to access window.opener and potentially manipulate or phish your original tab (Reverse Tabnabbing).
πIndependent Practice: Assignment
π index.htmlHomework Task: Multi-Page BCA Mini Site
- β’Create three HTML files in one directory: `index.html`, `courses.html`, and `contact.html`.
- β’Add navigation links on all three pages linking to each other using relative paths (`href="courses.html"`).
- β’Place a computer image on the homepage with width="400" and an accurate alt tag.
- β’Verify that clicking each navigation link transitions smoothly between the pages.
Open Visual Studio Code on your PC (code .), create index.html, paste this complete step-by-step verified code, test in your browser, and push to your GitHub repo:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BCA Student Portal - Day 3 Multi-Page Website</title>
</head>
<body>
<header>
<h1>Nextsem BCA Practical Learning Hub</h1>
<nav>
<strong>Navigation: </strong>
<a href="index.html">Home</a> |
<a href="courses.html">Course Catalog</a> |
<a href="contact.html">Contact Faculty</a> |
<a href="https://github.com" target="_blank" rel="noopener noreferrer">Official GitHub β</a>
</nav>
</header>
<hr>
<main>
<h2>Welcome to First Year Computer Science Practical</h2>
<p>This multi-page mini site demonstrates internal relative links, secure external hyperlinks with <code>rel="noopener noreferrer"</code>, and accessible image integration.</p>
<figure>
<img src="https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=600" alt="Student workstation setup with mechanical keyboard and code editor" width="400">
<figcaption><small>Figure 1: Hands-on developer workstation setup.</small></figcaption>
</figure>
</main>
<hr>
<footer>
<p>© 2026 IGNOU BCA Semester 1 Practical Workshop</p>
</footer>
</body>
</html>π4. Viva Check: Mandatory Conceptual Test
Why is the `alt` attribute strictly mandatory on an <img> tag according to web standards?
5. Mandatory Step: Push to GitHub to Unlock Next Lesson
Target Repo: html-css-projects
Exact GitHub Setup Guide & Expected Structure
Day 3 RequirementsFollow these exact folder and file names to prevent verification errors.
index.html: Avoid spaces or custom names like Alan Turing..html or Index.HTML. Linux/GitHub servers are strictly case-sensitive.day-03/ for today so you don't overwrite previous days.main.You are welcome to read all notes, inspect code snippets, and practice all exercises of Day 3 freely! To officially submit your GitHub repository and unlock subsequent days in your portfolio, please complete Day 2: HTML Headings, Paragraphs & Text Formatting first.
Complete Day 2 First