Kit Library / Computer Science / Web Development

⚡ Topic Learning Kit

html images links and lists

English 18 leveled MCQs 22 flashcards 9 games Free

Shared by a Veda learner · Generated with Veda AI

Veda Bites

The whole idea, one bite at a time

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.

Smart notes

What you'll study, topic by topic

1

HTML Images, Links, and Lists

15 min

HTML images, links, and lists are the core building blocks for adding visuals, navigation, and structured content to web pages. The tag embeds pictures, the tag creates hyperlinks, and , , and organize content into me…

  • HTML stands for HyperText Markup Language and structures content on the web.
  • The `` tag embeds an image and is a void element with no closing tag.
  • The `src` attribute of `` gives the path or URL of the image file.

Full explanation, worked examples & memory tricks in the app

Leveled MCQ practice

Try the smart MCQs from this kit

All 18 questions, laddered from warm-up to topper-level, each with its answer and the reasoning behind it.

Warm-up · 7 questions

Q1. Which tag is used to embed an image on a webpage?

Beginner
A `<picture>`
B `<src>`
C `<img>`
D `<image>`
Show the answer

C · `<img>`

The `` tag embeds an image file into the page. `` and `` are not the correct tags for this job.

Q2. Which attribute of `<img>` gives the path or URL of the image file?

Beginner
A `href`
B `link`
C `src`
D `alt`
Show the answer

C · `src`

`src` (source) tells the browser where the image lives. `href` belongs to the anchor tag, not ``.

Q3. Which tag creates a hyperlink?

Beginner
A `<href>`
B `<link>`
C `<a>`
D `<url>`
Show the answer

C · `<a>`

The `` tag, called the anchor tag, creates a hyperlink. Its destination is set by the `href` attribute.

Q4. Which tag creates a bulleted list?

Beginner
A `<li>`
B `<ul>`
C `<bl>`
D `<ol>`
Show the answer

B · `<ul>`

`` creates an unordered (bulleted) list. `` creates a numbered list and `` wraps a single item.

Q5. A student writes `<img src="cat.jpg">` and the image loads, but a blind user cannot tell what it shows. Which attribute is missing?

Beginner
A `width`
B `alt`
C `href`
D `height`
Show the answer

B · `alt`

The `alt` attribute provides the text description that screen readers announce. Without it the image is inaccessible.

Q6. Which tag wraps a single item inside a list?

Beginner
A `<li>`
B `<item>`
C `<ol>`
D `<ul>`
Show the answer

A · `<li>`

Each list item is wrapped in `` (list item) tags, whether the list is `` or ``.

Q7. The `<img>` tag is a void element — it has no closing tag and relies on attributes like `src` and `alt`.

Beginner
A True
B False
Show the answer

A · True

The `` tag is a void element — it has no closing tag and relies on attributes like `src` and `alt`.

Building up · 6 questions

Q8. A recipe page lists steps that must be followed in order. Which list type fits best?

Intermediate
A `<li>`, because it numbers items
B `<ul>`, because bullets are clearer
C `<img>`, because steps are visual
D `<ol>`, because sequence matters
Show the answer

D · `<ol>`, because sequence matters

`` creates an ordered (numbered) list, which is right when the order of items matters, like recipe steps.

Q9. Which `href` value would jump to a section with `id="contact"` on the same page?

Intermediate
A `#contact`
B `contact.html`
C `https://contact`
D `mailto:contact`
Show the answer

A · `#contact`

An anchor link uses `#id` to jump to a section on the same page. `contact.html` would load a different page.

Q10. Which `href` value opens the user's mail client?

Intermediate
A `email:hi@site.com`
B `https://hi@site.com`
C `#hi@site.com`
D `mailto:hi@site.com`
Show the answer

D · `mailto:hi@site.com`

Email links use `mailto:` inside `href` to open the mail client. The other prefixes do not trigger that behaviour.

Q11. How do you turn an image into a clickable link?

Intermediate
A Add an `href` attribute to the `<img>` tag
B Add a `link` attribute to the `<img>` tag
C Wrap the `<img>` inside an `<a>` tag
D Wrap the `<a>` inside an `<img>` tag
Show the answer

C · Wrap the `<img>` inside an `<a>` tag

Placing the `` inside `` makes the image the click target. `` has no `href` attribute of its own.

Q12. A page has a menu built as `<ul>` containing `<a>` tags. What does the `<ul>` contribute here?

Intermediate
A It supplies the destination addresses
B It loads the images used in the menu
C It gives the menu list structure
D It makes each link open in a new tab
Show the answer

C · It gives the menu list structure

The list provides structure, the anchor provides the click target, and the image provides the visual. Destinations come from `href`.

Q13. Which pair of attributes on `<img>` is effectively mandatory for a working, accessible image?

Intermediate
A `href` and `alt`
B `src` and `href`
C `width` and `height`
D `src` and `alt`
Show the answer

D · `src` and `alt`

`src` gives the browser something to fetch and `alt` keeps the image accessible. `width` and `height` are optional sizing attributes.

Topper level · 5 questions

Q14. A student writes this and the indentation breaks: ```html <ul> <li>Fruits</li> <ul> <li>Apple</li> </ul> </ul> ``` What is the mistake?

Advanced
A The inner `<ul>` must sit inside the outer `<li>`
B The inner `<li>` tags must be removed entirely
C The inner list should use `<ol>` instead of `<ul>`
D The outer `<ul>` must be replaced by `<li>`
Show the answer

A · The inner `<ul>` must sit inside the outer `<li>`

A nested list must be placed inside an `` element, not between two `` tags. Closing the outer `` before the inner list breaks the structure.

Q15. A link reads `<a href="#">click here</a>`. Which statement best explains why this is poor practice?

Advanced
A The `#` symbol is not allowed inside `href`
B The `href` attribute must always be a full URL
C Anchor tags cannot contain plain text between them
D The link text tells a screen reader nothing about its destination
Show the answer

D · The link text tells a screen reader nothing about its destination

A link that says "click here" gives no information about where it goes. `href` may hold a URL, a file path, or an anchor.

Q16. A developer builds a list using `<br>` tags between items instead of `<ul>` and `<li>`. What is the main consequence?

Advanced
A The text will render as an image instead of a list
B The browser will automatically convert it to `<ol>`
C The items will not appear on the page at all
D The list loses its semantic meaning for assistive technology
Show the answer

D · The list loses its semantic meaning for assistive technology

Writing real ``, `` and `` tags is what lets assistive technology, search engines and other programs understand the page. `` gives visual breaks but no structure.

Q17. Given the following HTML snippet, identify the issue with the nesting of lists and suggest a correction: ```html <ul> <li>Fruits <ul> <li>Apple</li> </li> <li>Vegetables</li> </ul> ```

Advanced
A The outer `<li>` is incorrectly closed before the inner `<ul>` starts.
B The inner `<ul>` is correctly placed inside an `<li>`.
C The `<ul>` should be an `<ol>` for proper ordering.
D The list items should not contain any nested lists.
Show the answer

A · The outer `<li>` is incorrectly closed before the inner `<ul>` starts.

The outer `` is incorrectly closed before the inner `` starts, which breaks the structure. The correct nesting should have the inner `` entirely contained within the outer ``.

Q18. Analyze the following HTML code and determine what will happen when a user clicks the link: ```html <a href="mailto:info@example.com">Contact Us</a> ```

Advanced
A The link will download a file named info@example.com.
B The link will redirect the user to a new webpage.
C The link will display an error message in the browser.
D The link will open the user's email client with a new message addressed to info@example.com.
Show the answer

D · The link will open the user's email client with a new message addressed to info@example.com.

The `mailto:` scheme in the `href` attribute will open the user's default email client with a new message addressed to info@example.com, allowing the user to send an email.

Flashcards

Tap a card to flip it

22 flashcards in this kit — the app reviews them with spaced repetition so the right card returns on the right day.

Learning games

Play your way through this kit

Every game is built from this kit's own content — scores feed your mastery, so playing counts as studying.

🎮

Word Match

Built from this kit's own content

🎮

True False

Built from this kit's own content

🎮

Memory Match

Built from this kit's own content

🎮

Flashcard Battle

Built from this kit's own content

🎮

Speed Quiz

Built from this kit's own content

🎮

Guess Term

Built from this kit's own content

🎮

Sequence Builder

Built from this kit's own content

🎮

Categorization

Built from this kit's own content

🎮

Revision Battle

Built from this kit's own content

Playable in the app

Study it properly — free, in the app

The full Veda Bites deck, complete notes, spaced-repetition flashcards, leveled MCQs, tests and games for this kit — plus Daily Facts and the Arena, every day.