Chapter No 5
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.
l
Bila
ed
Ahm
2
9th Computer Science Chapter NO.
5
<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
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?
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?
The COLSPAN attribute specifies the number of columns for a cell. The ROWSPAN attribute
the number of rows for a cell,
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:
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
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
l
Bila
ed
Ahm