User:Elina Lesson Plan 8

Revision as of 03:17, 12 March 2024 by WikiSysop (talk | contribs) (→‎Assessment:)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Subject: Computer Science

class:7

Unit: 7

Time: 10min

Topic: HTML <img> tag and its attributes

No of students: 10

Specific Objectives:

  • Student will understand the concepts of <img> tag in html and its attributes,
  • Student will be able to use the <img> tag to insert image into HTML document.

Teaching Materials:

  • Computer/laptop for each student or a projector for demonstration,
  • Text editor (such as Notepad++, Sublime text and Vs code etc)
  • Internet access for additional resource(optional)

Introducton:

  • Brifely inroduce the concepts of <img> tag in HTML:
  • HTML <img> tag is used to display image on the web page.
  • HTML <img> tag is an empty tag that contains attributes only, closing tags are not used in HTML image element.
  • Images are not technically inserted into a web page; images are linked to web pages.
  • The <img> tag creates a holding space for the referenced image.

Attributes:

Attributes value Descriptions
alt text Specifies an alternate text for an image
crossorigin anonymous use-credentials Allow images from third-party sites that allow cross-origin access to be used with canvas
sizes sizes Specifies image sizes for different page layouts
src URL Specifies the path to the image
srcset URL-list Specifies a list of image files to use in different situations
usemap #mapname Specifies an image as a client-side image map
width pixels Specifies the width of an image
height pixels Specifies the height of an image

Classroom activity:

  • open a text editor and demonstrate the following examples:

Example 1

Example 2

  • Encourage the students to ask the questions.
  • Encourage them to experiment with different image sources and attributes.

Hands on practice:

Conclusion:

  • Summarize the key points during the lesson including the <img> tag and its attributes.

Assessment:

  • How to use image in HTML with examples?
  • Which tag is used to display image?
  • Task students with creating a simple HTML page and inserting different images with varying attributes.