Chapter 010mAI Lab

HTML Introduction in Marathi — 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 काय आहे हे सांगतो

संपूर्ण 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?