0% found this document useful (0 votes)
46 views3 pages

Chapter 5:Html Iii:Tables, Links and Css A. Multiple Choice Questions

This document contains multiple choice questions and short answer questions about HTML tables, links, and CSS. It covers topics like table structure using <table>, <tr>, <th>, <td> tags, link attributes like href and mailto, CSS properties for fonts, text alignment, colors, borders, and inserting images as links. CSS properties discussed include color, background-color, font-style, text-align, and border styles. The short answer questions define parts of a table, compare traditional and presentation focused table methods, and describe attributes of <tr> and how to span cells across rows and columns.

Uploaded by

Tarang Agrawal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views3 pages

Chapter 5:Html Iii:Tables, Links and Css A. Multiple Choice Questions

This document contains multiple choice questions and short answer questions about HTML tables, links, and CSS. It covers topics like table structure using <table>, <tr>, <th>, <td> tags, link attributes like href and mailto, CSS properties for fonts, text alignment, colors, borders, and inserting images as links. CSS properties discussed include color, background-color, font-style, text-align, and border styles. The short answer questions define parts of a table, compare traditional and presentation focused table methods, and describe attributes of <tr> and how to span cells across rows and columns.

Uploaded by

Tarang Agrawal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CHAPTER 5:HTML III:TABLES,LINKS AND CSS

A. Multiple Choice Questions:

a. Table rows all the ​horizontal​ elements of the table grid.


b. Bottom vertical alignment aligns the baseline of the text across the cells in
the row.
c. The width of the inside cell borders of the table cells is called ​cellwidth​.
d. Which of the following tags is used to link the URL? <A>
e. Link URL in the HTML is specified using the​ HREF​ attribute.
f. Value of the attribute HREF is also called as the ​URL of the destination
webpage.
g. Which attribute is used to link the bookmark? HREF
h. What is used for specifying an email to be sent? MAILTO
i. Which of the following properties can have the value normal Italic and
oblique? Font-style
j. What is the CSS code used to specify the background colour? Background-
color
k. Which of the following is used to set only the top margin of an element in a
web page? Top margin
l. Which of the following can be the value of the border style property of an
element in a web page? All of these

B. Very short answer questions:

a. What is the mailto?


Ans: Mailto link is a type of HTML link that activates the default mail client on
the computer for sending an e-mail.

b. Why is linking between web pages required?


Ans: Linking between web pages is required to move around on internet i.e
for moving from one webpage to another webpage.

c. What is the <TR> tag used for?


Ans:<TR> is used for creating a row in a table.

d. What are alignment attributes?


Ans: Alignment attributes are used to set alignment of text in a table such as
align and valign.

e. What are width and height attributes?


Ans: The width and height attributes of the TABLE and ​TD (​TH​) element
specifies the width and height of a cell.

f. Name the command to add background colour to the table?


Ans: <table bgcolor="yellow">

g. What will the following command do :<Table border=”0”>?


Ans: It will display a table without a border.

h. Write the disadvantages of CSS?


Ans: Disadvantages of the CSS are:
- All the files, images, object etc have to be in same directory
- Embedding a stylesheet requires more coding than linking it from the
HTML file.
- CSS is not supported by some of the editors.

i. Name the different font properties?


Ans: Different font properties are: · font-variant · font-weight · font-size ·
font-family, font-style.

j. State the values of text-align text property?


Ans: Values of text-align property are:left,right,center,justify and initial.

C. Short answer questions:

a. What are the different parts of a table?


Ans: Different part of the tables are:
- <table>- define the table
- <TR>- define a row in a table
- <TH>- define header cell in a table
- <TD>- defines a cell in a table
- <CATION>- define table capital

b. Compare traditional and presentation focused methods of tables.


Ans: Traditional method is to simply display data in the form of rows and
columns in an organised manner whereas the presentation method is to make
a table more attractive and eye-catching by adding formatting features like
borders , background colour etc.

c. Describe the various attributes of <tr> tag.


Ans: The various attributes of <TR> tag are:
- Align: Specifies the alignment of the cell content Horizontally.
- Valign: Specifies the alignment of the cell content vertically.
- Height: Specifies the height of the cell.
- Bordercolor: Specifies the border colour of rows and columns.
- Bgcolor: Specifies the background colour of rows and columns.:

d. How do you span cell across various rows and columns?


Ans: We can span cells across the rows and columns by using rowspan and
colspan attributes of the TD and TH tags, such as<TD rowspan=”2”
colspan=”2”>. This will merge the cell to two rows and two columns.

e. Consider the HTML code <A href=”#intro”> introduction </A> in the above
code,
i. What is the purpose of #?
Ans: # is used to a location or fragment name given with the name
attribute of the <A>tag.

ii. What will happen when the user clicks Introduction?


Ans: When the user clicks Introduction, the user would be taken to the
location or fragment of text named intro.

f. How can you use an image as a link?


Ans:<A HREF=”flower.jpg”><IMG SRC=”flower.jpg”></A>

g. State the colour and background properties of CSS. Also give their respective
values.
Ans:The COLOR property is used to give color to the element present on the
web page. For e.g H1{color:red;}
The BACKGROUND-COLOR property is used to give color to the element
present on the web page. For e.g BODY{background-color:yellow;}

h. Explain the different border property?


Ans: Different border style property values are: Solid, double, groove, ridge,
inset and outset.For e.g P{border-style:groove;}

You might also like