Chapter 010mAI Lab

HTML Introduction in Bengali — AI Lab

বাংলায় HTML Introduction শিখুন। HTML Elements, Tags, Basic Structure, Code Examples, MCQ এবং Practice Exercises সহ HTML শেখা শুরু করুন।

AI Lab15 min3 prompts

AI ল্যাব — AI সহ HTML শিখুন

HTML কোড জেনারেট, ব্যাখ্যা এবং ডিবাগ করতে AI কার্যকরভাবে ব্যবহার করা শিখুন।

AI ল্যাব — AI সহ HTML শিখুন

এই AI ল্যাবে আপনি HTML কোড লেখা, বোঝা এবং ডিবাগ করার জন্য AI কার্যকরভাবে ব্যবহার করতে শিখবেন।

Prompt Lessons

01

একটি বেসিক HTML পেজ জেনারেট করুন

easygenerate

AI-কে একটি শিরোনাম, হেডিং এবং প্যারাগ্রাফ সহ একটি সম্পূর্ণ HTML5 ডকুমেন্ট তৈরি করতে বলুন।

You will learn
কাঠামো, বিষয়বস্তু এবং HTML5 স্ট্যান্ডার্ড নির্দিষ্ট করে এমন একটি স্পষ্ট প্রম্পট লিখতে শিখুন।
Prompt
Try with AI
নিম্নলিখিত প্রয়োজনীয়তা সহ একটি বৈধ HTML5 ডকুমেন্ট তৈরি করুন:

1. পেজ শিরোনাম: "My First Web Page"
2. একটি প্রধান শিরোনাম (h1) যাতে "Welcome to HTML" লেখা আছে
3. একটি প্যারাগ্রাফ (p) যা সংক্ষেপে HTML কী তা ব্যাখ্যা করে
4. <!DOCTYPE html>, <html>, <head>, এবং <body> সহ সঠিক HTML5 ডকুমেন্ট কাঠামো ব্যবহার করুন

সম্পূর্ণ HTML ডকুমেন্ট ফেরত দিন।

এই প্রম্পটটি ভালো কাজ করে কারণ এটি নথির ধরন, সঠিক বিষয়বস্তুর প্রয়োজনীয়তা এবং সঠিক কাঠামো নির্দিষ্ট করে।

Expected Output

A complete, valid HTML5 document with proper structure.

Example Output

<!DOCTYPE html>
<html lang="en">
<head>
  <title>My First Web Page</title>
</head>
<body>
  <h1>Welcome to HTML</h1>
  <p>HTML (HyperText Markup Language) is the standard language for creating web pages.</p>
</body>
</html>

Why it works

The prompt is structured, specific, and lists requirements as a checklist.

Common Mistakes

  • Not specifying HTML5 — AI may use HTML4
  • Vague instructions like "make a page"
  • Missing the DOCTYPE requirement

Verification Checklist

  • Has <!DOCTYPE html>
  • Has <html>, <head>, <body> tags
  • Title is in <head>
  • Content is in <body>
  • Valid HTML5 syntax

Follow-up Prompts

  1. Add a navigation menu
  2. Include CSS styling
  3. Add an image
02

AI সহ HTML এলিমেন্ট বোঝা

easyexplain

একটি HTML কোড পেস্ট করুন এবং AI-কে প্রতিটি উপাদান কী করে তা ব্যাখ্যা করতে বলুন।

You will learn
AI-কে উদাহরণ সহ কোড স্পষ্টভাবে ব্যাখ্যা করতে বলা শিখুন।
Prompt
Try with AI
এই HTML কোডটি আমাকে ব্যাখ্যা করুন। প্রতিটি উপাদান ভেঙে এটি কী করে তা বর্ণনা করুন:

This prompt works because it asks AI to break down each element, explain its purpose, and list attributes.

Expected Output

A clear, element-by-element breakdown of the HTML code with explanations.

Example Output

AI would explain: <div> is a container, <header> is the page header, <nav> contains navigation links, <main> holds primary content, <article> represents a self-contained post.

Why it works

The prompt includes the actual code to explain and asks for a structured breakdown.

Common Mistakes

  • Asking "what is HTML?" without providing code
  • Not specifying what aspects to explain

Verification Checklist

  • AI explains each element
  • Explanations are clear
  • Attributes are mentioned
  • Context is explained

Follow-up Prompts

  1. How do I make this responsive?
  2. What CSS would style this?
03

AI সহ HTML ত্রুটি ডিবাগ করুন

mediumdebug

AI-কে ভাঙা HTML কোড এবং ত্রুটির বিবরণ দিন, তারপর সমস্যা খুঁজে বের করতে এবং ঠিক করতে বলুন।

You will learn
AI-কে কার্যকরভাবে HTML ডিবাগ করার জন্য পর্যাপ্ত প্রসঙ্গ দিতে শিখুন।
Prompt
Try with AI
আমার HTML পেজটি সঠিকভাবে প্রদর্শিত হচ্ছে না। ছবিটি ভাঙা এবং লিঙ্কটি কাজ করছে না।

This debug prompt works well because it provides: the actual code, a description of what's wrong, and specific symptoms. AI can match symptoms to common causes.

Expected Output

AI identifies: missing alt attribute on img, and missing https:// in the href. Provides corrected code.

Example Output

<img src="photo.jpg" alt="My Photo">
<a href="https://www.google.com">Search</a>

Why it works

Providing both the code AND the observed symptoms gives AI maximum context to diagnose the issue.

Common Mistakes

  • Saying "my code is broken" without showing the code
  • Not describing what "broken" means
  • Not providing error messages

Verification Checklist

  • AI identifies both errors
  • Corrected code is provided
  • Explanations for each fix
  • Code is valid HTML5

Follow-up Prompts

  1. How do I add more images?
  2. How do I create a navigation bar?