Veda Bites are swipeable micro-lessons — each one teaches exactly one
idea. The bites below come from this kit — swipe through them in the app.
💡 Key Idea
Three Tags That Build Every Web Page
Images, links, lists — the web's core trio.
Almost every webpage you visit relies on three HTML elements to look and behave the way it does.
↳ Master <img>, <a>, and list tags and you can build the visual and navigational skeleton of any page.
📖 Definition
The <img> Tag: Embedding Pictures
One tag, one image, one src.
↳ <img> is a self-closing tag — it has no closing </img> and always needs src.
💻 Code Example
Writing Your First Image Tag
See the tag, see the result.
↳ Always include alt — it improves accessibility and appears when the image can't load.
📖 Definition
The <a> Tag: Creating Hyperlinks
Click here — literally.
↳ The <a> tag needs both an href attribute and visible link text to work.
💻 Code Example
Linking to Another Page
href is the doorway.
↳ Use target="_blank" when you want the link to open without leaving the current page.
⚖️ Comparison
Unordered vs Ordered Lists
Bullets or numbers — pick wisely.
↳ Both use <li> for items — only the outer tag changes the marker style.
💻 Code Example
Building a List in HTML
Outer tag + <li> items = list.
↳ Every list item must sit inside its own <li> tag, nested within <ul> or <ol>.
📖 Definition
Description Lists: Term + Meaning
Perfect for glossaries and FAQs.
↳ Use <dl> when each item has a name and an explanation, like a dictionary entry.
⚠️ Common Mistake
Forgetting alt Text on Images
No alt = broken accessibility.
↳ alt is not optional in good HTML — it's the image's voice for those who can't see it.
⚠️ Common Mistake
Closing <img> Like a Normal Tag
No </img> — it's self-closing.
↳ Void elements like <img> never get a closing tag.
🌍 Real World
Where You See These Tags Daily
You've clicked a thousand <a> tags.
↳ These three tags power nearly every clickable, visual, or structured element on the web.
🎯 Exam Tip
Attributes Exam Questions Love
src, href, alt — memorize these.
↳ Mixing up src and href is the most common exam slip — src is for images, href is for links.
🧠 Memory Trick
Remember src vs href
src = source, href = hyperlink.
src stands for source — where the image comes from. href stands for hyperlink reference — where the link goes.
↳ src = see it, href = click it.
✅ Best Practice
Keep File Paths Simple
Same folder? Just the filename.
↳ Correct relative paths prevent the most common 'broken image' errors.
❓ Did You Know
Lists Can Be Nested
Lists inside lists — totally legal.
You can place a `<ul>` or `<ol>` inside an `<li>` to create sub-lists — perfect for menus, outlines, and file trees.
↳ Nested lists let you build hierarchical structures without any CSS.