Chapter 4 – HTML – II: Images, Links, and Tables
Sumita Arora Book Solution
Type – A: Theoretical Questions – Answers
Que 1. What is meant by inline images in HTML?
Answer: Inline images means image display in line with the text i.e <img> tag used in between or with the text. Example of the inline image –
<body>
You must share the link of <img src=”asacademy.gif”> anjeev singh academy with your friends.
</body>
Que 2. Name the various types of alignments available for images.
Answer: The HTML specifies the five types of image alignments. These are – left, right, top, middle, and bottom.
Que 3. Which attributes of <A> facilitate external linking?
Answer: href
Que 4. Which attributes of <A> facilitate internal linking?
Answer: name or id, and href
Que 5. What for its Mailto function used?
Answer: Mailto is used to send the mail via clicking on link. Mailto is used with <A> tag.
<A href = “mailto:info@anjeevsinghacademy.com?SUBJECT = ‘Testing mail’ “> Send mail to Anjeev Singh Academy </A>
Que 6. Write HTML code to create the following ordered list :
x. Xylophone
y. Yak
z. Zebra
Answer: HTML Code
<html>
<head>
<title> Que 6 </title>
</head>
<body>
<ol type='A' start = 24>
<li> Xylophone </li>
<li> Yak </li>
<li> Zebra </li>
</ol>
</body>
</html>
Output:

Que 7. How would you indent a single word and put a square bullet in front of it?
Answer: By using an unordered/unnumbered/bulleted list. For example
<UL type=’square’> <LI> Single </LI></UL>

Que 8. Write the HTML code to create the following indentation effect :
Apple pie,
pudding,
and pancake,
All begin with an A.
Answer: HTML Code
<html>
<head> <title>Indentation </title></head>
<body>
<DL>
<DD>Apple pie,
<DD>pudding,
<DD>and pancake,
<DD>All begin with an A.
</DL>
</body>
</head>
Output

Que 9. Use a definition list in a table to show that the word “glunch” means “a look of disdain, anger, or displeasure” and that the word “glumpy” means “sullen, morose, or sulky”?
Answer: HTML Code
<html>
<head> <title>Indentation </title></head>
<body>
<DL>
<DT>glunch</DT>
<DD>a look of disdain, anger, or displeasure</DD>
<DT>glumpy</DT>
<DD>sullen, morose, or sulky</DD>
</DL>
</body>
</head>
Output: –

Que 10. How would you make the word Elephant appear whenever the actual elephant.jpg image couldn’t be displayed by a Web browser?
Answer: HTML Code
Que 11. Write the HTML to make the ‘elephant.jpg’ image appear on the rightside of the page, with a big headline reading “Elephant of the World Unit!” on the left side of the page next to it.
Answer: HTML Code
Que 12. How would you insert an image file name elephant.jpg at the very top of a Web page?
Answer: HTML Code
Que 13. Suppose you have a large picture of a standing elephant named elephant.jpg. Now make a small named fly.jpg appear to the left of the elephant’s head and mouse.jpg appear next to the elephant’s right foot.
Answer: HTML Code
Que 14. Your home page will be at http://www.mysite.com/home.htm when you put it on the Internet. Write the HTML code to go on that page so that when someone clicks the words “All About Me” , they see the page located at http://www.mysite.com/mylife.htm .
Answer: HTML Code
Que 15. You plan to publish a CD-ROM disk containing HTML pages. How do you create a link from a page in the \guide folder to the \guide\mains\kolkata.htm page?
Answer: HTML Code
Que 16. Name the following with respect to HTML – Element to create a hyperlink.
Answer: <A> anchor tag. <A href=”www.mycstutorial.in”> My CS Tutorial </A>
Que 17. What is table? Which tag is used to create tables in HTML?
Answer: HTML Code
Que 18. Which attributes are used to give border to a table?
Answer: HTML Code
Que 19. Which attribute lets you control the display of select border sides of a table?
Answer: HTML Code
Que 20. Which attribute is used to control the inside table border?
Answer: HTML Code
Que 21. How is spacing in cells of the table controlled?
Answer: HTML Code
Que 22. What is the role of ALIGN attribute of <TABLE> tag?
Answer: HTML Code
Que 23. What is the use of having a SUMMARY attribute in <TABLE> tag?
Answer: HTML Code