Learn with Hafiza Palwasha
OXFORD (Book 8), KEYBOARD
Computer Science With Application Software (Third Edition).
Solution
Chapter No. 4Tables, Links, and Frames in HTML 5
NEW WORDS
Students should extract new words by themselves from chapter No. 1 and write them on neat copies as vocabulary words. There is no need to memorize these words but students should be able to read and understand these words as I explained and discussed in class.
NEW TERMS AND ABBREVIATIONS
Students should learn these terms and abbreviation. It will be the part of exam.
1. Padding:
In system software, there is adjustable spacing between content and the border. The method to adjust this space is called padding.
2. Cell Spacing:
The space between cell and the other cells in the tables is called cell spacing.
3. Hyperlink:
It is the part of hypertext document that we call any other location or any other document. It appears in blue colour. It is a clickable link. When we click it, it will open the desired hypertext document that may contain text or image.
4. HREF:
HREF stands for Hypertext Reference.
5. Embed:
Embed means to attach multiple software or hardware. It is the combination of different modules.
6. Border-collapse:
It determines that either the content and borders of the table collapse or not.
ExerciseSolution
Page No. 78
Objective Type Questions
Q No. 1: Write T for true statement and F for false one. Correct the false statement(s).
Solution:
a. An image cannot be set as a hyperlink. F
b. A cation can be placed only at the top of a table. F
c. The padding property specifies the space between the cells. F
d. An internal link is a link to a point on the current page. T
e. The <a> tag is an empty element. F
Q No. 2: Choose the correct option.
Solution:
a. Which of the following can be embedded in a web page?
iii. both i. and ii. (is correct)
b. The attribute of the <audio> tag that displays controls on the web page.
i. controls (is correct)
c. Which of the following can be added to an HTML document?
iv. all of these (is correct)
d. Which of the following properties can be assigned to the text-align property?
iv. Any of these (is correct)
e. You can use the __________ tag to insert an image in a web page.
ii. <img> (is correct)
f. Which of the following specifies the colour of a link when it is clicked?
i. avtive (is correct)
g. The__________ attribute of the <a> tag specifies the URL of the page where the link should take you.
i. href (is correct)
h. The value of the border-spacing property can be specified in
i. pixels (is correct)
Page No. 79
Descriptive Type Questions
Q No. 1: Answer the following.
a. What is the purpose of the src and control attributes of the <audio> tag?
Answer: src attribute: src attribute associated with the audio tag is used for audio files. It specifies the URL of the audio file.
c. What is the use of the vertical-align property? What values can be assigned to this property?
Answer: Vertical-align property is used to set the vertical alignment of the content in the table. Following are the values that can be assigned to this property:
1. Top
2. Bottom
3. Middle
d. Describe the different kinds of links that can be created on a web page.
Answer: Following are the three different kinds of links that can be created on a web page:
1. Internal
2. Local
3. Global
1. Internal: It is a type of link in which a link to a point on the current page.
2. Local: It is a type of link in which a link to another page on the same website.
3. Global: It is a type of link in which a link to a page on a different website.
e. Name the tag used to create a link. Name one attribute used with this tag.
Answer: The tag used to create a link is an anchor tag which is represented by <a>. HREF is the attribute used with this tag. HREF is associated with the destination page of the link. When it is clicked the user will see the associated content available in the link.
f. Open the home page of your favourite website. Analyse the page carefully, and state why you think that the page has been designed using tables.
Answer: Lab work (will be discuss in Computer lab. Students do not have to do this question on neat copies).
g. HTML allows you to assign different colours to hyperlinks depending on the action taken by the user on that particular hyperlink. Evaluate its usefulness for programmers.
Answer: Following are the advantages of the different colours for programmers:
1. Programmers can easily organize their codes.
2. For complicated and long codes it's difficult to manage and extract the things. So by using colour features, programmers can easily organize the code in a better way.
3. Programmers can easily track all the different actions performed because the colour theme of every module is different. So, it can easily provide a key track for every module in code.
4. For look wise, it gives a beautiful presentation of the code with different modules.
h. Write a programme in which you create two frames on a webpage. One of the frames should have an audio of your favourite song embedded in it, while the other should have a link to its video. Give your webpage an interesting heading and background colour.
Answer: Lab work (will be discuss in Computer lab. Students do not have to do this question on neat copies).
Naheed
ReplyDeleteGood...!!! Keep in touch for more updates.
DeleteMeerab Ahsan seen chapter 4 ❤️
ReplyDeleteMy name is Bibi Sania thank you mam for this link I seen all chapters for this link 👍👍
ReplyDelete