Computer Science
Class-VIII
Chapter-2 Special Effect in HTML
A. Tick the correct answer:
1. ________ arrange datain rows and columns.
a. Lists b.Tables c. Forms d. Images
Answer: Tables
2. Each row within a table begins with the ______ table row tag.
a. <TR> b. </TR> c. <TD> d. <TD/>
Answer: <TR>
3. If a table border is not given or its value is ____ then no border will be displayed there.
a. Three b. Two c. One d. Zero
Answer: Zero
4. _______ is used to specify the background colour of a table.
a. ALIGN b. BGCOLOR c. VALIGN d. BORDER
Answer: BGCOLOR
5. ______ are used to type letters, numbers, etc. in a form.
a Textarea b. Text fields c. Checkboxes d. Radio buttons
Answer: Text fields
6. The <FORM> tag is used to define a ________.
a. Form b. Frame c. Table d. Title
Answer: Form
7. To split the window horizontally, use the _______ attribute.
a. COLS b. ROWS c. SRS d. none of them
Answer: ROWS
B. Write True or False:
1. Each column is devided into data cell.
Answer: F
2. We can enhance the appearance of a table by using border attributes.
Answer: T
3. The BORDERCOLOR attribute is used to set the size of a table.
Answer: F
4. Values of ALIGN attribute are 'Left' , 'Center' and 'Right'.
Answer: T
5. We can set the table height by adding the width tag to the table code.
Answer: F
6. In HTML, images are defined with the <img> tag.
Answer: T
7. Textarea tags appear within the text box.
Answer: T
C. Fill in the blanks:
1. You can define various attributes of a table in the ______ tag.
Answer: <TABLE>
2. _______ attribute appears in the <TABLE> tag.
Answer: Border, BGColor
3. _______ attribute adjusts the space between two cells in a table.
Answer: Cellspacing
4. The <img> tag is an ________ tag.
Answer: Empty
5. In the tag "SRC" means source or the location of the ________.
Answer: Image
6. The <INPUT> tag allows the user to enter _________ in a from.
Answer: Information
7. ________ are an easy way to make any page look more professional.
Answer: Frames
D. Answer the following questions in short:
1. Which tag is used to begin a table?
Answer: To create a table in HTML, we use the <TABLE> tag.
2. How can you change the color of a table border?
Answer: We can change the color of a table border by adding the BORDERCOLOR attribute.
3. Which attribute is used to adjust the space between two cells in a table?
Answer: Cellspacing attribute adjusts the space between two cells in a table.
4. What are checkboxes used for in a form?
Answer: Checkboxes are used to select one or more options.
5. What do you understand by HTML form?
Answer: Forms are a simple way that a person viewing your web page can send you data.
E. Answer the following questions in detail:
1. What is a table and what is its significance in HTML?
Answer: Tables arrange data in rows and columns and provide an attractive way to represent information. Each row is divided into data cell. A data cell contains text, images, lists, paragraphs, forms etc.
2. Which tags are used in a table? Explain with an example.
Answer: Tags are used in a table:
<TR> Tag: Each row in a table begins with the <TR> table row tag.
<TD> Tag: The columns contain cells, each of which begins with the <TD> table data tag.
<TH> Tag: Table heading begins with the <TH> tag.
<TH> Tag: Table heading begins with the <TH> tag.
3. Explain briefly the different table attributes.
Answer: Table Attributes are:
* Border: This attribute is used to draw border around table.
* Bordercolor: This attribute is used to change the table border color.
* Align: This attribute is used to align data in a table.
* Cellspacing: Cellspacing is used to adjusts the space between two cells in a table.
4. What is hyperlink? Explain with an example.
Answer: Hyperlink is used to link word, sentence, image or icon. To create a hyperlink, <A> tag is used. The HREF attribute of the <A> tag stores the reference of the document that is to be linked. The text that appears on the hyperlink is enclosed between the starting tag <A> and ending tag</A>.
5. How will you insert an image by using img tag?
Answer: In HTML images are defined with the <img> tag. The <img> tag is an empty tag. The tag to insert an image in HTML file is <img src=>.
Example to insert image using img tag is:
<html>
<head>
<title> Image</title>
</head>
<body>
<li><img src="dog2.jpg" width=400 height=400 alt="dog is black" border=3/></li>
</body>
</html>
6. What is the difference between frames and frameset tags?
Answer:
Frames: Frames are an easy way to make any page look more professional. Frames aremainly used to display more than one HTML document in the same browser window.
Frameset: It is used to split the screen into two or more parts, each with separate web page. To do this we use FRAMESET tag. In the frameset tag, we can split the window vertically and horizontally.
F. Define the terms:
1. BGCOLOR 2. ALIGN 3. VALIGN 4. NOWRAP 5. TEXT FIELDS 6. RADIO BUTTONS 7. FRAME TAG
Answer:
1. BGCOLOR: BGCOLOR attribute is used to change the background color.
2. ALIGN: ALIGN attribute is used to change the alignment the data in table.
3. VALIGN: This attribute is like Align but it aligns the data vertically.
4. NOWRAP: This attribute indicates that the data within this cell cannot be broken to fit the width the cell.
5. TEXT FIELDS: Text fields are used to type letters, numbers, etc. in a form.
6. RADIO BUTTONS: Radio buttons are similar to checkboxes. However, they have some limitations that checkboxes do not.
7. FRAME TAG: The <frame> tag defines the HTML document to be into each frame.
G. Write what the following tags are used for in HTML.
1.<Table> tag 2. <TR> tag 3. <TD> tag 4. <A HREF-> tag 5. <img> tag 6. <input> tag 7. <FORM> tag
Answer:
1.<Table> tag: This tag is used to draw a table.
2. <TR> tag: This tag is used to insert row in a table.
3. <TD> tag: This tag is used to insert data in a table row.
4. <A HREF-> tag: This tag is used to insert hyperlink in HTML document.
5. <img> tag: This tag is used to insert image in a HTML document.
6. <input> tag: This tag is used to enter information ina form.
7. <FORM> tag: This tag is used to define a form.
Some other Links:
No comments:
Post a Comment