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).
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.
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?
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.homeofedu.com
2
9th Computer Science Chapter NO. 5
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.
Q. Name the tag to add images in HTML.
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.
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.
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
www.homeofedu.com
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.
Q. What is the use of DL tag?
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.
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
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
www.homeofedu.com
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,
Answers
1. a 2. d 3. b 4. a 5. b 6. b 7. a 8. a 9. c 10. a
11. b 12. a 13. b 14. b 15. c 16. d 17. a 18. b 19. d 20. c
21. b 22. c 23. c 24. d 25. a 26. d 27. c 28. b 29. b 30. a
31. c 32. a 33. a 34. c 35. a 36. b 37. a 38. b 39. a 40. c
41. a
N
O
.
www.ho