HTML-IMAGE,LINKS AND TABLE

 


Question 1

Which tag is used to insert an image in a web page?

  1. <SRC>
  2. <IM>
  3. <IMG>
  4. None of these

Answer

<IMG>

Reason — <IMG> tag is used to insert an image in a web page.

Question 2

Which attribute of the <IMG> tag allows you to display a text instead of an image?

  1. Alt
  2. Image
  3. Alternate
  4. Border

Answer

Alt

Reason — The Alt attribute can display a phrase instead of the image, in case the image cannot be displayed by the browser.

Question 3

You can use the ............... attribute to control the horizontal space around an image.

  1. Hspace
  2. Rspace
  3. Lspace
  4. None of these

Answer

Hspace

Reason — You can use the Hspace attribute to control the horizontal space around an image.

Question 4

We can present data in a row and column format by using the ............... tag.

  1. <TR><TC>
  2. <TABLE>
  3. <ROW><COL>
  4. None of these

Answer

<TABLE>

Reason — We can present data in a row and column format by using the <TABLE> tag.

Question 5

The column heading is specified by using the ............... tag.

  1. <CH>
  2. <TR>
  3. <TH>
  4. <TD>

Answer

<TH>

Reason — The column heading is specified by using the <TH> tag.

Question 6

<TR> tag is used to create a ............... in a table.

  1. Row
  2. Column
  3. Caption
  4. All of these

Answer

Row

Reason — <TR> tag is used to create a row in a table.

Question 7

............... tag defines the cells or columns of a table which denotes table data.

  1. <TR>
  2. <TD>
  3. <TH>
  4. None of these

Answer

<TD>

Reason — <TD> tag defines the cells or columns of a table which denotes table data.

Question 8

Which attribute is used to set the amount of space between the cell border and the cell data?

  1. Spacing
  2. Cellpadding
  3. Cellspacing
  4. Align

Answer

Cellpadding

Reason — Cellpadding attribute is used to set the amount of space between the cell border and the cell data.

Question 9

The default alignment of the contents of table cells is ............... .

  1. Center
  2. Right
  3. Top
  4. Left

Answer

Left

Reason — The default alignment of the contents of table cells is left.

Question 10

Choose the correct HTML code to right-align the data inside a table cell.

  1. <TRright Align>
  2. <TD Align ="Right">
  3. <TD VAlign ="Right">
  4. <TR "Right">

Answer

<TD Align ="Right">


Question 11

Which is the correct code to merge four columns in a table?

  1. <TD COLSPAN = 4>
  2. <TD COLUMN SPAN= 4>
  3. <COLSPAN = 4>
  4. <TD SPAN = 4>

Answer

<TD COLSPAN = 4>

Reason — The correct HTML code to merge four columns in a table is as follows:

<TD COLSPAN = 4>

Question 12

Which of the following is not the attribute of <A> tag?

  1. NAME
  2. TITLE
  3. HREF
  4. SRC

Answer

SRC

Reason — SRC is not the attribute of <A> tag. The other attributes of <A> tag are used for the following purposes:

  1. HREF — It defines the document to which the link leads.
  2. TITLE — It is used to give a title to the document to which we are linking.
  3. NAME — It specifies the name of the anchor being set up for internal linking in a document.

Question 13

Combining two or more cells either column-wise or row-wise in a table is called ............... .

  1. Merging
  2. Spanning
  3. Combining
  4. None of these

Answer

Spanning

Reason — Combining two or more cells either column-wise or row-wise in a table is called Spanning.

Question 14

The two common attributes of the <IMG> and the <TABLE> tags are ............... .

  1. SRC and HEIGHT
  2. HEIGHT and WIDTH
  3. BORDER and SRC
  4. They do not have any common attributes

Answer

They do not have any common attributes

Reason — The <IMG> and the <TABLE> tags do not have any common attributes.

Question 15

Why is it important to specify width and height attribute in <IMG> tag?

  1. To ensure that the image is not copied.
  2. The image will not render without these.
  3. To stop the image from loading.
  4. Helps the browser to load the web page faster.

Answer

Helps the browser to load the web page faster.

Reason — It is important to specify width and height attribute in <IMG> tag so that the browser can reserve the space for the images when the page is loaded.

Question 16

Which command should we use to link a page with an HTML page?

  1. <A Link= "page.htm"> </a>
  2. <A Href = "page.htm">page</a>
  3. <A Connect= "page.htm"></a>
  4. <A Attach="page.htm" > </a>

Answer

<A Href = "page.htm">page</a>

Reason — We can use the following command to link a page with an HTML page :

<A Href = "page.htm">page</a>

Question 17

Which attribute(s) is/are used to merge rows?

  1. Rowspan
  2. Colspan
  3. Both 1 and 2
  4. None of these

Answer

Rowspan

Reason — Rowspan attribute is used to merge rows.

Question 18

What is the correct syntax in HTML for creating a link to an e-mail address?

  1. <A Href = "E-mail.htm">
  2. <A e-mail:to@address>
  3. <A Href="mailto:e-mail_id">
  4. None of these

Answer

<A Href="mailto:e-mail_id">

Reason — The correct syntax in HTML for creating a link to an e-mail address is as follows:

<A Href="mailto:e-mail_id">

Post a Comment

0 Comments