SESSION : (2024-2025)
CLASS : X
SUBJECT : Computer Application
Chapter 4
Images, Links and Tables
Insert images: img (attributes: src, width, height, alt)
Embed audio and video in a HTML page.
Links: significance of linking, anchor element (attributes: href, mailto), target.
Create a table using the tags: table, tr, th, td, rowspan, colspan, cellpadding, cellspacing.
Q1: What is <img> tag? / How <img> tag works? And discuss its attributes also.
Ans: <Img>: Img tag is used to insert image.
Example: <img src=”image.jpg” alt=”This is image” align=”right width=”200px” border=5>
Some <img> tag Attribute:
1. Src: This attribute is used to give path of image. (Absolute or Relative)
2. Width and Height: These attribute is used to set imagedimension.
3. Alt: This attribute used to provide alternate text for an image.
4. Align: This attribute is used to align the images in webpage, Example: top, middle, bottom, left,
right and center.
5. Border: The border attribute of the <img> tag specifies the width of the border around
an images. By default , an image has no border in HTML.
Q2: What is Linking or Hyperlink? / How <a> tag works? /Discuss its attributes And Type of linking.
Ans: Hyperlink: It is a link between Web pages. When a user clicks a hyperlink on a Webpage, he or
she is redirected either to some other section of the same web page or another webpage.
<a href=”home.html” title=”This is home page”>
Some <a> tag Attribute:
1. Href: The href attribute specifies the URL of the destination web page.
CLASS : X
SUBJECT : Computer Application
Chapter 4
Images, Links and Tables
Insert images: img (attributes: src, width, height, alt)
Embed audio and video in a HTML page.
Links: significance of linking, anchor element (attributes: href, mailto), target.
Create a table using the tags: table, tr, th, td, rowspan, colspan, cellpadding, cellspacing.
Q1: What is <img> tag? / How <img> tag works? And discuss its attributes also.
Ans: <Img>: Img tag is used to insert image.
Example: <img src=”image.jpg” alt=”This is image” align=”right width=”200px” border=5>
Some <img> tag Attribute:
1. Src: This attribute is used to give path of image. (Absolute or Relative)
2. Width and Height: These attribute is used to set imagedimension.
3. Alt: This attribute used to provide alternate text for an image.
4. Align: This attribute is used to align the images in webpage, Example: top, middle, bottom, left,
right and center.
5. Border: The border attribute of the <img> tag specifies the width of the border around
an images. By default , an image has no border in HTML.
Q2: What is Linking or Hyperlink? / How <a> tag works? /Discuss its attributes And Type of linking.
Ans: Hyperlink: It is a link between Web pages. When a user clicks a hyperlink on a Webpage, he or
she is redirected either to some other section of the same web page or another webpage.
<a href=”home.html” title=”This is home page”>
Some <a> tag Attribute:
1. Href: The href attribute specifies the URL of the destination web page.