Learn with Hafiza Palwasha
OXFORD (Book 8), KEYBOARD
Computer Science With Application Software (Third Edition).
Solution
Chapter No. 3Lists and Images 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. URL:
URL stands for Uniform Resource Location.
2. PNG:
PNG stands for Portable Network Graphics.
3. JPEG:
JPEG stands for Joint Photographic Expert Group.
4. GIF:
GIF stands for Graphics Interchange Format.
5. HTML:
HTML stands for Hypertext Markup Language.
6. WWW:
WWW stands for World Wide Web.
7. Web Browser:
It is an application software which opens the websites when a user requests.
8. Cascading:
A connected series of sheets or the series of pages, devices, modules, images etc is called cascading.
9. Hexadecimal Colour Value:
It is the combination of six colours code having values between 0 to 255. Each code combination presents a unique colour.
10. RGB:
RGB stands for Red Green Blue.
ExerciseSolution
Page No. 62
Objective Type Questions
Q No. 1: Choose the correct option.
Solution:
a. An __________ list is used for items in which the ordering is not specific.
ii. Unordered (is correct)
b. Which of the following values can be specified for the list-style-type property?
iv. all of these (is correct)
c. Which of the following property is used to specify an image as the list-item marker?
i. list-style-image (is correct)
d. In an ordered list, the ordering is given by a numbering scheme using
iv. Any one of these (is correct)
e. The __________ tag specifies an image to be displayed in an HTML document?
i. <img> (is correct)
f. The attribute of the <img> tag that specifies the URL of an image.
i. src (is correct)
g. __________ is the default value of the front-size property.
ii. medium (is correct)
h. Each item in the list is specified using the __________ tag.
i. <li> (is correct)
Page No. 62 & 63
Descriptive Type Questions
Q No. 1: Answer the following.
a. Differentiate between an ordered and an unordered list.
c. Name the tags used for creating ordered and unordered lists.
Answer: Following are the tags used for creating ordered lists:
1. <ol> tag
2. <li> tag
Following are the tags used for creating unordered lists:
1. <ul> tag
2. <li> tag
* <li> tag used to create both types of list. We can use this tag and arrange the items in ordered or unordered form according to our choice, so we can create customized list using this tag.
d. What is the purpose of the <dd> tag?
Answer: <dd> tag is used to create the description list and this list has the list of definitions.
e. What are the tags required to create a description list?
Answer: Following are the tags required to create a description list:
1. <dd>
2. <dl>
3. <dt>
f. Which tag is used for inserting an image to be displayed in an HTML document? Mention any two attributes of this tag.
Answer: The <img> is used for inserting an image to be displayed in an HTML document. Following are the two attributes of this tag:
1. src: It needs the URL of the required image that we want to insert.
2. alt: It allows us to specify an alternate text for an image.
g. What are the various ordering styles that can be given to the items of an ordered list?
Answer: Following are the various ordering styles that can be given to the items of an ordered list:
1. Lower Roman
2. Upper Roman
3. Decimal
4. Lower Alpha
5. Upper Alpha
h. What do GIF and PNG stand for?
Answer: GIF stands for Graphics Interchange Format.
PNG stands for Portable Network Graphics.
i. Your teacher has asked you to write a program in HTML which lists some difficult scientific words and their definitions. Identify three of the HTML methods used to create lists. Which method would you prefer to use and why?
Answer: Lab work (will be discuss in Computer lab. Students do not have to do this question on neat copies).
j. Analyse the importance of inserting images in HTML codes.
Answer: Following are the importance of inserting images in HTML codes:
1. It makes web pages attractive.
2. It makes web pages more informative.
3. It takes less time to understand difficult things.
k. a) Using your knowledge of HTML, write a code for a web page to show:
* the winners of the last 4 football world cups
* the years when they were played
* the picture of the winning team's star player
b) To improve the presentation of your web page, include relevant headings and think carefully about its format.
Answer: Lab work (will be discuss in Computer lab. Students do not have to do this question on neat copies).
Additional Question
Q: What are the various types of lists available in HTML?
Answer: Following are the various types of lists available in HTML:
1. Ordered List
2. Unordered List
3. Description List
4. Nested List
1. Ordered List: It is a type of list in which the items are not arranged and are not fixed.
2. Unordered List: It is a type of list in which the items are arranged and are fixed.
3. Description List: It is a type of list which creates the description list and this list has the list of definitions.
4. Nested List: It is a type of list which is created inside any other type of list. List within list is called a Nested list.
Naheed
ReplyDelete