0% found this document useful (0 votes)
28 views

Computer

Free
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Computer

Free
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Chapter-6 Inserting Images and Lists in HTML5

New words: (The students will find and write the new words in their notebook.)

Q.1. Define List.


Ans. In HTML, a list is a collection of items that are ordered or unordered. Lists are used to organize and
present information in a structured manner.

Q.2. What are the uses of the <img> tag?


Ans. The <img> tag is used in HTML to embed images on a webpage. It is a self-closing tag and includes
attributes like src (source), alt (alternative text), width, and height to define various properties of the
image.

Q.3. What is an ordered list?


Ans. An ordered list is a type of HTML list that represents a sequence of items in a specific order. Each
item in an ordered list is marked with a number or another ordered marker.
Q.4. List any two properties of the <img> tag.
Ans. The two properties are: -
1. Src: Specifies the source URL or file path of the image.
2. Alt: Provides alternative text for the image, which is displayed if the image cannot be loaded
Q.5. Explain the various CSS properties that are used to insert images on a webpage.
Ans. The CSS properties are: -
1. Width: Sets the width of the image.
2. Height: Sets the height of the image.
3. Margin: Controls the spacing around the image.
4. Float: Positions the image to the left or right within its container
Q.6. What is the difference between ordered and unordered lists?
Ans. Ordered List: Represents a sequence of items with a specific order, and each item is marked with a
number or another ordered marker (e.g., 1, 2, 3).
Unordered List: Represents a list of items without any specific order, and each item is typically marked
with a bullet point or other unordered marker.

Q.7. What are the different attributes of <video> tag?


Ans. The attributes of <video> tag are:
1. Src: Specifies the source URL or file path of the video.
2. Controls: Adds video playback controls (play, pause, volume, etc.).
3. Autoplay: Starts playing the video automatically when the page loads.
4. Width and Height: Set the dimensions of the video player.

Q.8. Write down the various CSS properties that are used for adding lists in HTML.
Ans. The CSS properties are:
1. list-style-type: Specifies the type of marker for list items (e.g., disc, circle, decimal, etc.).
2. list-style-image: Allows using a custom image as the marker.
3. list-style-position: Defines the position of the marker (inside or outside the list item box).
4. list-style: Shorthand property to set all list style properties at once.
Chapter-7 Tables and Linking in HTML5

New words: (The students will find and write the new words in their notebook.)

Q.1. Define table.


Ans. In HTML, a table is an element used to organize and display data in rows and columns. It
consists of the <table> tag, which contains one or more rows (<tr>), and each row contains one or
more cells (<td> or <th>).

Q.2. Name the different attributes of <table> tag?


Ans. The different attributes of <table> tag are:
a. Border: Specifies the width of the border around the table.
b. Width: Sets the width of the table.
c. Height: Sets the height of the table.
d. Cellpadding: Specifies the space between cell content and cell borders.
e. Cellspacing: Specifies the space between cells.

Q.3. What is the usage of <caption> tag?


Ans. The <caption> tag is used to add a title or caption to a table. It is placed immediately after the
opening <table> tag and before the first <tr>.

Q.4. What is the significance of <a> tag?


Ans. The <a> (anchor) tag in HTML is used to create hyperlinks. It defines a hyperlink, allowing
users to navigate to another page, resource, or location on the web.

Q.5. Name two different types of table alignments.


Ans. The two different types of table alignments are:
a. Horizontal Alignment: align="left" or align="center" or align="right"
b. Vertical Alignment: valign="top" or valign="middle" or valign="bottom"

Q.6. Write the various attributes of <a> tag.


Ans. The various attributes of <a> tag are:
a. Href: Specifies the URL or location of the linked resource.
b. Target: Specifies where to open the linked document (e.g., in a new window or tab).
c. Title: Adds a title or tooltip text for the link.
d. Download: Specifies that the target will be downloaded when a user clicks on the hyperlink.

Q.7. What is the difference between border-spacing and border-padding?


Ans. The difference between border-spacing and border-padding is as follows:
1. Border-spacing: Sets the distance between the borders of adjacent cells in a table.
2. Border-padding: No such property exists in HTML/CSS. It might be a reference to padding
used to set the space between the content of a cell and its borders.

Q.8. What are the different attributes of linking in HTML?


Ans. The different attributes of linking in HTML are: -
a. Href: Specifies the URL of the linked resource.
b. Target: Specifies where to open the linked document (e.g., _blank for a new window).
c. Download: Specifies that the target will be downloaded when clicked.
d. Rel: Specifies the relationship between the current document and the linked document.

Q.9. Write the steps to create a link using an image.


Ans. The steps to create a link are:
a. Wrap the <img> tag with an <a> tag.
b. Set the href attribute of the <a> tag to the URL or destination.

Q.10. What is the difference between rowspan and colspan?


Ans. ‘rowspan’ affects vertical merging, while ‘colspan’ affects horizontal merging in a table.

You might also like