Protected Learning Content

AICPE Gurukul content is created for learning purposes. Printing, copying and unauthorized reuse are restricted.

AICPE Learning Hub HTML with CSS
Chapter 6
Lists, Links & Images
Chapter 6 | Page Connections

Lists, Links & Images

Lists organize information, links connect webpages, and images make pages visually meaningful. These three features are used in almost every real website.

Lists

Create steps, syllabus, features, menus and grouped content.

Links

Connect pages, websites, emails, phone numbers and page sections.

Images

Add logos, banners, photos, galleries and visual examples.

Alt Text

Make images meaningful for accessibility and SEO.

Learning Objectives

After This Chapter, You Will Understand

This chapter helps you create practical website content and page navigation.

Lists

Create ordered, unordered and description lists.

Links

Create internal, external, email, phone and jump links.

Images

Add images using src, alt, width and height attributes.

Paths

Understand basic file paths for images and pages.

HTML Lists

Ordered, Unordered and Description Lists

Lists help present content in a clean and readable way.

1 Unordered List

Use unordered lists when order is not important.

<ul>
    <li>HTML</li>
    <li>CSS</li>
    <li>JavaScript</li>
</ul>

2 Ordered List

Use ordered lists when sequence or steps matter.

<ol>
    <li>Create folder</li>
    <li>Create index.html</li>
    <li>Open in browser</li>
</ol>

3 Description List

Use description lists for terms and explanations.

<dl>
    <dt>HTML</dt>
    <dd>Structure of webpage</dd>
</dl>
Real Website Use: Lists are used for menus, features, syllabus, steps, facilities, services and FAQs.
HTML Images

Adding Images with img Tag

Images improve visual communication and make a webpage more attractive.

5 Image Tag

The <img> tag is used to add images. It is an empty element, which means it does not need a closing tag.

<img src="assets/img/logo.png" alt="AICPE Logo">

Important Attributes

  • src: Image path or source
  • alt: Image description
  • width: Image width
  • height: Image height

6 Why alt Text Matters

The alt attribute provides a text description of an image. It is useful for accessibility, SEO and situations where the image cannot load.

Good Alt Text: “Student learning HTML on laptop”
Avoid: “image1”, “photo”, “pic”, or empty alt text for important images.
File Paths

Basic Image and Link Paths

Correct file path is very important. Wrong path means broken link or missing image.

Same Folder

When image and HTML file are in the same folder.

<img src="photo.jpg">

Inside Folder

When image is inside an image folder.

<img src="assets/img/photo.jpg">

Outside Folder

Use ../ to go one folder back.

<img src="../assets/img/photo.jpg">
Practice Task: Create one page with a menu, course list and one image with proper alt text.
Try It Yourself

Practice Lists, Links and Images

Edit the code and click Run Code to see the output.

HTML Code Edit and run
Output Preview Browser result
Practice Task: Add one ordered list of your daily learning plan, one email link and one more image.
Common Mistakes

Mistakes Students Should Avoid

These mistakes commonly create broken links and missing images.

Wrong Habits

  • Writing li tags outside ul or ol
  • Using “click here” as link text everywhere
  • Forgetting href in anchor tag
  • Writing wrong image path in src
  • Not writing meaningful alt text

Correct Habits

  • Keep li tags inside ul or ol
  • Use clear link text like View Courses
  • Check image path and spelling carefully
  • Use alt text for important images
  • Keep image names simple and lowercase
Remember: If an image does not show, check file name, folder path, extension and spelling.
Quick Quiz

Test Your Understanding

Select the correct answers and check your score.

1. Which tag is used for unordered list?

The ul tag is used for unordered lists.

2. Which tag is used to create a hyperlink?

The a tag is used to create hyperlinks.

3. Which attribute defines link destination?

href defines where the link should go.

4. Which tag is used to add image?

The img tag is used to add images in HTML.

5. Which attribute provides image description?

The alt attribute provides a text description for an image.
Quick Revision

Remember These Points

Revise these before moving to Chapter 7.

Unordered List

Use ul and li tags when order does not matter.

Ordered List

Use ol and li tags when steps or sequence matter.

Anchor Tag

The a tag creates links using the href attribute.

Image Tag

The img tag adds images using src and alt attributes.

Alt Text

Alt text describes image meaning for accessibility and SEO.

File Path

Correct path is required for links and images to work.