Question 1Medium
Image maps are most often used as
- navigational aids
- server-side includes
- world maps
- conversion tools for HTML
Answer: A. navigational aids
Explanation
Image maps are most often used as navigational aids because they allow users to click on different areas of an image, each leading to a different webpage or action. This makes them useful for creating interactive and user-friendly websites with clickable images.
Step-by-step solution
- Image maps let users click on parts of an image.
- Each part links to a different page or action.
- This helps visitors navigate a website easily.
- So they are used as navigational aids.
- Final answer: navigational aids.
Why the other options are wrong
- B. Server-side includes are for adding content dynamically, not image maps.
- C. World maps are geographical, not interactive clickable images.
- D. Conversion tools change formats, not create clickable areas in images.
Tip: Remember image maps help with website navigation through clickable image parts.
Question 2Medium
When defining a rectangular region in an image map how many values do you need to specify?
- 2
- 3
- 4
- 5
Answer: C. 4
Explanation
A rectangular image-map region needs four values: x1,y1,x2,y2 (two opposite corners).
Step-by-step solution
- A rectangular image-map area is set with the coords attribute of the area tag.
- A rectangle needs x1, y1, x2, y2, which are the top-left and bottom-right corners.
- That is 4 values, so the correct answer 2 (4) is right.
Why the other options are wrong
- A. 2 values give only one point, not a rectangle.
- B. 3 values are used for a circle (x, y, radius), not a rectangle.
- D. 5 values do not match any standard image-map shape.
Tip: Rect takes 4 numbers, circle takes 3 numbers, poly takes pairs of x and y.
Question 3Medium
USEMAP is an attribute of which tag?
- Area
- Shape
- Img
- Href
Answer: C. Img
Explanation
Usemap is an attribute of the img tag.
Step-by-step solution
- The usemap attribute names an image map and is set on the img element.
- The img points to a map element, which holds area shapes that are clickable.
- So usemap is an attribute of img.
- The answer is Img, option C.
Why the other options are wrong
- A. Area is a child element that defines clickable regions; usemap is not its attribute.
- B. Shape is an attribute of area, not a tag that owns usemap.
- D. Href is an attribute of a and area, not of usemap.
Tip: Usemap goes on img; the map and area sit inside a map element.
Question 4Medium
When defining a circular region in an image map how many values do you need to specify?
- 2
- 3
- 4
- 5
Answer: B. 3
Explanation
To define a circular region in an image map, you need to specify the center coordinates (x, y) and the radius of the circle. This requires three values: x, y, and radius.
Step-by-step solution
- Center x-coordinate is one value.
- Center y-coordinate is another value.
- Radius is the third value needed.
- Total values required are three.
- Final answer is 3.
Why the other options are wrong
- A. Only two coordinates are not enough to define a circle.
- C. Four values include extra information not needed for a circle.
- D. Five values overdefine the circular region.
Tip: Remember: x, y, and radius make three values for a circle.
Question 5Medium
Which tag is used to define an entire image map?
- Map
- Mapping
- Imap
- Area
Answer: A. Map
Explanation
<map name="planetmap">...</map> is the correct tag used to define an entire image map.
Step-by-step solution
- The whole image map is defined by the map tag.
- Area tags sit inside the map tag and define the clickable regions.
- So the correct answer is option A, Map.
Why the other options are wrong
- B. Mapping is not an HTML tag.
- C. Imap is not an HTML tag.
- D. Area defines one clickable region inside a map, not the whole image map.
Tip: The whole image map is the map tag; area is one region inside it.