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: The alt attribute of <IMG> tag, specifies an alternative text the browser may show if the image display is not possible or disabled by the user.
<IMG src = “elephant.jpg” alt = “Elephant”>