0% found this document useful (0 votes)
39 views9 pages

Chapter No 5

Uploaded by

bilal Janjua
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)
39 views9 pages

Chapter No 5

Uploaded by

bilal Janjua
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/ 9

1

9th Computer Science Chapter NO.


5

DESIGNING WEBSITE
SHORT QUESTIONS
Q. What is HTML?

Ans. HTML stands for Hyper Text Markup Language. It is a formatting language used to
develop web pages. It uses tags or markups to specify how the contents of web page will
be displayed. HTML code can be written in any text editor like Notepad,
Q. Define the term hypertext.

Ans. The term hypertext is used to refer to the special text in a webpage called hyperlinks.
The hyperlinks can be clicked to move from one webpage to another. They are used to
navigate the World Wide Web (WWW).

l
Bila
Q. What do you know about markup language?

Ans. HTML is a markup Llanguage. It stands for hypertext markup language and is used to
create webpages. A webpage consists of different elements that are represented by tags,
each tag marks specific text to appear in a specific way on the webpage, that is why it is
called markup language.
Q. Define HTML tag and element.
ed
HTML tags are the keywords that denote different elements in HTML document. The HTML
tags are surrounded by two angle brackets < The text between the start and end tags is
called element.
Q. What are the attributes of HTML tags?
Ahm

The attributes of HTML are used to specify the working of HTML tags. They provide
additional information about the tags.
Q. What are two types of HTML tags?

Two types of HTML tags are paired tags and singular tags. The paired tags have start tag
and end tag such as <HI> and </HI>. The singular tags have start tags but no end tag such
as
Q. Which are two main sections of an HTML page?

The two main sections of an HTML page are Head section and Body section. The Head
section identifies the heading or title of document. The Body section contains the text that
is displayed on a web page. The body section is enclosed within <BODY> and </BODY> tags.
Q. Describe the basic text formatting tag.

Ans. The basic text formatting tag is <FONT>. It has different attributes that can be used to
specify different formatting such as font size, font colour and font face. Some other
formatting tags are <B> for bold, <l> for italic, <U> for underline, <SUP> for superscript and
<SUB> subscript.

For more Notes, Books and Guess Papers, visit


www.rashidnotes.com

l
Bila
ed
Ahm
2
9th Computer Science Chapter NO.
5

Q. What is the difference between <BR> tag and <P> tag?

<BR> is a line break and subsequent text will move to the line below. <P> is the paragraph
tag and text will move two lines below. There will be a blank line between text before the
<P> tag and text after <P> tag,
Q. List some important attributes of BODY tag.

Ans. Some important attributes of tag are BGCOLOR, BACKGROUND and TEXT, The
BGCOLOR specifies the background colour of the Web page, BACKGROUND specifies the
background picture of the webpage. TEXT specifies the colour of text displayed on
webpage.

l
Q. Name the tag to add images in HTML.

Bila
Ans. The tag to add images is <IMG>.
Q. Describe the attributes of <img> tag?

Ans. The SRC attribute of this tag is used to specify the address of the image to be
displayed. The BORDER attribute is used to apply border. The WIDTH and HEIGHT attributes
are used to specify the width and width of the image. The ALT attribute is used to specify
alternate text.
ed
Q. How can you apply background colour to a webpage?
Ans. The BGCOLOR attribute of BODY tag is used to apply a background colour in HTML
documents.
Ahm

This attribute is not supported in HTML 5.


Q. How can you assign a background image to the webpage?
Ans. The BACKGROUND attribute of BODY tag is used to apply a background image HTML
documents.
Q. Write HTML code to set background colour to green and foreground text colour to
white.
Ans. <HTML>
<BODY BGCOLOR=”green” TEXT=”White”>
This text appears in white colour.
</BODY>
</HTML>
Q. Which types of lists can be created in HTML?
Ans. Different types of lists are Ordered Lists, Unordered Lists and Definition Lists.
Q. What is an ordered list?

Ans. An ordered list is a list of items in which each item is marked with a number. Ordered
list is also known as numbered list.
Q. What is the use of OL tag?

For more Notes, Books and Guess Papers, visit

l
Bila
ed
Ahm
3
9th Computer Science Chapter NO.
5

Ans. <OL> tag is used to create an ordered list. It stands for ordered list. <LI> tag is used
with each item in the list. It stands for list item. It has no closing tag. </OL> tag is used to
close an ordered list.
Q. What is an unordered list?
Ans. An unordered list is a list of items in which each item is marked with a symbol.
Q. What is the use of UL tag?

Ans. <UL> tag is used to create an unordered list. It stands for unordered list. <LI> tag is
used with each item in the list. </UL> tag is used to close an unordered list.
Q. What is a definition list?
Ans. A definition list is not a list of items. It consists of terms and description of terms.

l
Q. What is the use of DL tag?

Bila
Ans. <DL> tag is used to create a definition list. It stands for definition list. <DT> tag is used
with each term in the definition list.
Q. What is hyperlink?

Ans. Hyperlink is an icon, graphic or text in a document that links to another document or
object. Each website on the Internet contains many pages that are linked with one another.
The links are used to move from one page to another on the Internet.
ed
Q. Define <A> tag and HREF.

Ans. All hyperlinks are created with the anchor tag such as <A>. Its closing tag is </A>. The
HREF attribute of <A> is used to specify the link destination such as <A
Ahm

Q. What is use of <TABLE> tag? Write three any three attributes of TABLE tag.

Ans. The <TABLE> tag is used to define a table. Three attributes of TABLE tag include
BORDER, COLSPAN and ROWSPAN.
Q. What are the three basic table elements?
The three basic table elements are <TABLE> <TR> <TD>.
Q. What is the use of <TR>, <TD> and <TH> tag.

Ans. <TR> tag is used to define a row in a table and <TD> tag is used to define a data cell.
<TH> tag is used to define the header row of the table.
Q. Differentiate between <TD> and <TH> tag.

Ans. The <TD> tag is used to define a data cell. The <TH> tag is used to define the header
cell. The text in <TD> tag appears normal but the text in <TH> tag appears bold.
Q. What is the use of COLSPAN and ROWSPAN attribute of table?

For more Notes, Books and Guess Papers, visit


4
9th Computer Science Chapter NO.
5

The COLSPAN attribute specifies the number of columns for a cell. The ROWSPAN attribute
the number of rows for a cell,

Multiple Choice Questions


1. A collection of different web pages on the Internet is called:
a. Word Wide Web b. World Wide Net c. Web Link d. Web Net
2. WWW stands for:

a. World Wide West b. World Was Web c. World Wide Work d. World Wide Web
3. A single document on the World Wide Web is known as:
a. Web net b. Web page c. Web Link d. Webcam

l
4. A ---------------- is a collection of related web pages.

Bila
a. Website

a. Web server
b, Web page

b, Web Browser

b, Email server
c. Web Browser

c. Web Explorer
6. It is a computer on which a web page or website is stored.
c. Web Browser
d. Webcam
5. The software that is used to access and view web pages is called:
a. Web Server d. Web Linker

d. Workstation
ed
7. The first page of a website is called:
a. Home page b. Address page c. Start page d Initial page
8. HTML stands for:

a. Hyper Text Markup b. Hash Tag Markup Language


Ahm

Language c. Hyper Tech d, High Tech Machine Language


Markup Language
9. Which of the following is required to create HTML Page?
a. Text Editor b. Web Browser c. Both a and b d. None
10. What type of language is HTML?
a. Markup b. Scripting c. Programming d. OOP
11. What is the extension of HTML file?
a. hml b. html c. htl d. htnl
12. Tags and text that do not show directly on the web page are placed in:
a. Head b. Body c. Title d. Table
13. Which section is used for text and tags that are shown directly on web page?
a. Head b. Body c. Title d. None
14. The keywords that denote different elements in a HTML document is called:

For more Notes, Books and Guess Papers, visit


5
9th Computer Chapter NO.
Science 5
a. Hashtag b, Tags c. Tabs d, Bookmarks
15. HTML tags are enclosed in:
a. () b. ( ) c. < > d. \ \
16. The HTML tags are:
a. Lower case b. Upper case c. Case sensitive d. Not case sensitive
17. This element contains the contents of the document:
a. Body b. Head c. Anchor d. HTML
18. The BODY tag is usually used after:
a. HTML tag b. Head tag c. Title tag d. None
19. Which of the following is the HTML tag for the largest heading?

l
a. <HEADING> b. <H10> c. <H6> d. <HI>

Bila
20. How many types of heading tags are available in HTML?
a. 4 b. 5 c. 6
21. Which of the following is the smallest size of heading in HTML?
a. <Heading> b. <H6> c. <H1>
22. What is the correct HTML tag for inserting a line break?
d. 9

d. <H9>
ed
a. <BREAK b. <Newiine> c. <BR> d. <BL>
23. Which tag is used to create a paragraph on a Web page?
a. <H1></H1> b. <BR> </BR> c. <P> </P> d. <BR>
24. Which tag is used to specify the font in HTML document?
Ahm

a. <DEFAULTFONT>b. <TARGETFONT> c. BASEFONT> d. <FONT>


25. Which of the following tag is used to make a text bold?
a. <B> b. <BOLD> c. <BLD> d. <BB>
26. Choose the correct HTML tag to make a text italic:
a. <||> b. <ITALICS> c. IT> d. <I>
27, The HTML tags < sub> and < /sub> cause text to be displayed as:
a. Substitute b. Superscript c. Subscript d. All
28. It is a list of terms with description of each item.
a. Unordered b. Definition c. Nested d. Ordered
29. Which of the following is not a valid list tag in HTML?
a. <DL> b. <ML> c. <UL> d. <OL>
30. What kind of list will <OL> tags create?

For more Notes, Books and Guess Papers, visit


6
9th Computer Chapter NO.
Science 5
a. Number list b. Bullet list c. Unordered list d. Blank List
31. What kind of list will <UL> tags create?
a. Number list b. Alphabet list c. Unordered list d. Blank list
32. Which tag is used to insert images in to the web page?
a. IMO b. SCR c. 1M d. PIC
33. It links a document to another document or file.
a. Hyperlink b. Frame c. List d. URL
34. Which of the following can be a hyperlink?
a. Text b. Pictures c. Both a and b d. None
35. <a> and </a> tags are used for:

l
a. Create links to page b. Adding image

Bila
c. Aligning text

b. HREF
d. Formatting text
36. Link URL in HTML is specified using------------------attribute.
a. SRC c. LINK d. REL
37. Which of the following HTML tags indicate the start and end of a table?
a. < TABLE> < /TABLE> b. <TR> </TR>
ed
c. < TH> < /TH> d. <TD> </TD>
38. The main container for <TR>, <TD> and <TH> is:
a. <GROUP> b. <TSBLE> c. <DATA> d. <FRAME>
39. The tag for table row is:
Ahm

a. <TR> b. <TD> c. <TH> d. <TT>


40. What will be added by using <td> and </td> tag?
a. Columns b. Rows c. Cells d. Frame
41, Which of the following is not an attribute of <Table> tag?
a. SRC b. Border c. Colspan d. Rowspan
Answers
1. a 2. d 3. b 4. a 5. b 6. b 7. a 8. a 9. c 10. a
17.
11. b 12. a 13. b 14. b 15. c 16. d a 18. b 19. d 20. c
27.
21. b 22. c 23. c 24. d 25. a 26. d c 28. b 29. b 30. a
37.
31. c 32. a 33. a 34. c 35. a 36. b a 38. b 39. a 40. c
41. a
For more Notes, Books and Guess Papers, visit

l
Bila
ed
Ahm

You might also like