Kerala Plus Two Computer Science Chapter 5 Web Designing Using HTML Questions and Answers

Solutions for Class 12 Computer Science: Chapter 05 Web Designing Using HTML

Explore reliable textbook solutions for Chapter 05 Web Designing Using HTML tailored for Class 12 learners. Utilizing these Computer Science answers ensures thorough preparation and strengthens foundational knowledge before final Kerala Board evaluations.

Practice Class 12 Computer Science Solutions: Chapter 05 Web Designing Using HTML

Access the complete solution PDF for Class 12 Computer Science below. Regular practice with these targeted textbook answers builds familiarity with standard question patterns and helps secure higher marks in final school evaluations.

One Mark Questions and Answers

Question 1: Name the tag to which the attribute FRAME is associated.

Answer:

<TABLE>
The FRAME attribute specifies which border lines are shown around the table. Its values are void, above, below, hsides, lhs, rhs, vsides, box and border.
Eg: <TABLE FRAME="below">

Exam Tips:

a) Remember FRAME as a table attribute: it controls which sides of the table border are displayed.
b) Give the tag name with angle brackets and, if you can, an example as shown.

 

Question 2: The tag used to create a combo box in HTML is _______

Answer:

<SELECT>

Exam Tips:

a) The <SELECT> tag with <OPTION> items creates both combo boxes and list boxes.

 

Question 3: The OPTION attribute is associated with _______ tag.

Answer:

<SELECT>

Exam Tips:

a) The items of a combo box or list box are given with <OPTION> inside <SELECT>.

 

Question 4: Consider the following.

<FRAMESET Cols="50%, *">

What will be the output of the above HTML statement?

Answer:

It divides the browser window into two frames of equal width, placed side by side (column-wise).

Exam Tips:

a) COLS divides the window into vertical frames; 50% and * (the remaining 50%) give two equal columns.

 

Question 5: Consider the following.

<FRAMESET Rows="50%, *">

What will be the output of the above HTML statement?

Answer:

It divides the browser window into two frames of equal height, one above the other (row-wise).

Exam Tips:

a) ROWS divides the window into horizontal frames; the * takes whatever space is left.

 

Question 6: The <SELECT> tag creates a ______ in HTML.

Answer:

Combo box (drop-down list)

Exam Tips:

a) With SIZE=1 (the default) it is a combo box; with SIZE greater than 1 it is a list box.

 

Question 7: The default align value for a table is ______
a) Left
b) Right
c) Center
d) Justify

Answer:

a) Left

Exam Tips:

a) A table is aligned to the left unless the ALIGN attribute is given.

 

Question 8: A submit button can be created by ____ tag
a) <SUBMIT>
b) <INPUT>
c) <SELECT>
d) <ACTION>

Answer:

b) <INPUT>

Exam Tips:

a) Use <INPUT TYPE="submit">; there is no <SUBMIT> tag in HTML.

 

Question 9: _____ tag encloses the heading cells in a table.
a) <TABLE>
b) <TR>
c) <TH>
d) <TD>

Answer:

c) <TH>

Exam Tips:

a) <TH> gives bold, centred heading cells, while <TD> gives ordinary data cells.

 

Question 10: ______ is an empty tag.
a) <FRAME>
b) <FORM>
c) <FRAMESET>
d) <TABLE>

Answer:

a) <FRAME>

Exam Tips:

a) An empty tag has no closing tag; <FRAME> has none, but <FRAMESET>, <FORM> and <TABLE> are container tags.

 

Question 11: Pick the odd one out. Justify your answer.
a) NOFRAMES
b) BODY
c) SRC
d) HEAD

Answer:

c) SRC. It is an attribute, whereas all the others are tags.

Exam Tips:

a) Justify by classifying each item: NOFRAMES, BODY and HEAD are tags; SRC is an attribute of <FRAME> and <IMG>.

 

Question 12: Name the tag which is used as an attribute to another tag.

Answer:

<FRAME>. FRAME is a tag used inside a frameset, and it is also the name of an attribute of the <TABLE> tag.

Exam Tips:

a) Mention both roles of the word FRAME to make the answer complete.

 

Question 13: The border lines around a table are specified by _____ attribute.
a) Frame
b) Cellborder
c) Background
d) Border

Answer:

d) Border

Exam Tips:

a) BORDER sets the thickness of the border; FRAME only chooses which sides are shown.

 

Question 14: To change the background colour of a table, which attribute of the <TABLE> tag is used?

Answer:

BGCOLOR. This attribute specifies the background colour of the table.
Eg: <TABLE BORDER=2 BGCOLOR="Blue">

Exam Tips:

a) BGCOLOR is also used in <BODY>, <TD> and <TH> to colour the page or cells.

 

Question 15: Which tag is used to divide the window into more than one part?

Answer:

<FRAMESET>

Exam Tips:

a) Each part is then filled using one <FRAME> tag.

 

Question 16: _____ tag is used to pass information from web viewers to a web server.

Answer:

<FORM>

Exam Tips:

a) Remember the main attributes of <FORM>: ACTION and METHOD.

 

Question 17: _______ tag provides a label for a form control.

Answer:

<LABEL>

Exam Tips:

a) A label is the text shown next to a control such as a text box.

 

Question 18: A _____ has no <BODY> section.

Answer:

<FRAMESET> tag (a page using frames has no <BODY> section)

Exam Tips:

a) A frame page uses <FRAMESET> in place of <BODY>; using both stops the frames from showing.

 

Question 19: A <FRAMESET> page has no _____ tag.

Answer:

<BODY> tag

Exam Tips:

a) This is the reverse of the previous point; learn it as a pair.

 

Question 20: Name the attribute used to merge two or more rows of a table in an HTML document.

Answer:

ROWSPAN

Exam Tips:

a) COLSPAN merges columns and ROWSPAN merges rows.

 

Question 21: In HTML, ______ tag is used to create a row in a table.

Answer:

<TR>

Exam Tips:

a) TR stands for table row.

 

Question 22: The space between the border of a cell and its content can be adjusted by an attribute of the <TABLE> tag. Identify this attribute.

Answer:

CELLPADDING

Exam Tips:

a) CELLSPACING is the space between cells, while CELLPADDING is the space inside the cell.

 

Question 23: Give the value of the FRAME attribute of the <TABLE> tag to get the outer border only.

Answer:

box

Exam Tips:

a) FRAME="box" draws a border around the whole table but not between the cells.

 

Question 24: Baiju wants to place a picture in a table cell. Which attribute of the <TD> tag will be used for this?

Answer:

BACKGROUND

Exam Tips:

a) Give the image file name as the value, for example <TD BACKGROUND="pic.jpg">.

 

Question 25: ______ tag forms the definition term in a definition list.
a) <DD>
b) <DT>
c) <DL>
d) <DR>

Answer:

b) <DT>

Exam Tips:

a) <DL> is the list, <DT> is the term and <DD> is the description of the term.

 

Question 26: Name the possible values of the TYPE attribute of an unordered list.

Answer:

The <UL> tag can take the values square, circle or disc.

Exam Tips:

a) Disc is the default bullet type.

 

Question 27: To create a list using upper case letters use ______.

Answer:

<OL TYPE="A">

Exam Tips:

a) TYPE="A" gives A, B, C...; TYPE="I" gives upper case Roman numerals.

 

Question 28: To create a list using lower case letters use ______.

Answer:

<OL TYPE="a">

Exam Tips:

a) TYPE="a" gives a, b, c...; TYPE="i" gives lower case Roman numerals.

 

Question 29: To start a list from the count of 3 use ______.

Answer:

<OL START="3">

Exam Tips:

a) START works only with ordered lists and takes a number.

 

Question 30: Mr. Suresh wants to prepare a list of students with register numbers, but he wants to start the numbering from 5. How can it be done using HTML?

Answer:

An ordered list is used for this, with the START attribute: <OL START="5">

Exam Tips:

a) Use <OL> (not <UL>) whenever the items need numbers.

 

Question 31: Pick the wrong one from the statements given below.
a) <OL> and <UL> have the TYPE attribute
b) The default numbering scheme in <OL> is 1, 2, 3...
c) In a definition list, the <DD> tag is used to give the definition of terms
d) The START attribute of an ordered list should always be set to 1

Answer:

d) The START attribute of an ordered list should always be set to 1. START can be any starting number.

Exam Tips:

a) Check each statement against what you know about lists and pick the one that is not always true.

 

Question 32: Which of the following is the correct way to create an email link?
a) <A HREF="abc@xyz">
b) <MAIL HREF="abc@xyz">
c) <MAIL> "abc@xyz">
d) <A HREF="mailto:abc@xyz">

Answer:

d) <A HREF="mailto:abc@xyz">

Exam Tips:

a) The word mailto: must come before the address.

 

Question 33: There are two web pages in the class project created by Mathew. The second page should appear in the browser when a particular text in the first page is clicked. What is this feature called? Name the tag and the attribute needed for creating such a feature.

Answer:

This feature is called a link (hyperlink).
The tag used is <A> and the attribute is HREF.

Exam Tips:

a) Give the three items asked for: the name of the feature, the tag and the attribute.

 

Question 34: Observe a table with two rows. Which of the following is used with the TD tag to merge the cells C and D?
a) Merge=colspan 2
b) ROWSPAN="2"
c) COLSPAN="2"
d) Merge=row2

Answer:

c) COLSPAN="2"

Exam Tips:

a) Cells that are side by side in the same row are merged with COLSPAN; cells one below the other are merged with ROWSPAN.

 

Question 35: Why do we use the <NOFRAMES> tag?

Answer:

The <NOFRAMES> tag is used to give content for browsers that do not support frames (framesets).

Exam Tips:

a) It holds alternative content shown only when frames cannot be displayed.

 

Question 36: Which of the following tags is used to create a list box in an HTML form?
a) <SUBMIT>
b) <INPUT>
c) <SELECT>
d) <ACTION>

Answer:

c) <SELECT>

Exam Tips:

a) A list box is <SELECT> with SIZE of more than 1.

 

Question 37: The tag used for creating a drop-down list in HTML is ______

Answer:

<SELECT> tag

Exam Tips:

a) A drop-down list is the same as a combo box.

 

Two Mark Questions and Answers

Question 38: Manju wants to display 3 web pages on the same screen horizontally. Which HTML statements can be used for this?

Answer:

<FRAMESET ROWS="33%,*,*">
<FRAME SRC="Page1.html">
<FRAME SRC="Page2.html">
<FRAME SRC="Page3.html">
</FRAMESET>

Exam Tips:

a) Use ROWS to place the three pages one below the other (horizontal strips); the sizes can be changed as needed.
b) Do not put a <BODY> tag in a frameset page.

 

Question 39: Adithya College of Engineering wants to create its web site, in which the home page is to be designed as a combination of two vertical panes.

1. Suggest suitable tags used for this.

2. Write the HTML statements to get this type of page.

Answer:

1. The <FRAMESET> and <FRAME> tags.

2. <FRAMESET COLS="50%,*">
<FRAME SRC="Page1.html">
<FRAME SRC="Page2.html">
</FRAMESET>

Exam Tips:

a) Vertical panes are side-by-side columns, so use COLS (not ROWS).
b) Name both tags in part 1.

 

Question 40: "Kerala Communication Channel" conducts a TV programme based on the education policies of the Kerala Government. They want to take feedback from the viewers through their website.

1. While creating this site, which tag is used to accept multiple lines of text from the viewers?

2. Name any two attributes of this tag.

Answer:

1. <TEXTAREA>
2. COLS, ROWS (and NAME)

Exam Tips:

a) <TEXTAREA> is the multi-line text box; <INPUT TYPE="text"> accepts only a single line.
b) ROWS gives the number of lines and COLS the number of characters per line.

 

Question 41: Distinguish between the CELLSPACING and CELLPADDING attributes of the <TABLE> tag.

Answer:

1. CELLSPACING: it specifies the space between two table cells.
2. CELLPADDING: it specifies the space between the cell border and its content.

Exam Tips:

a) Remember: spacing is outside the cells (between cells), padding is inside the cell (around the content).

 

Question 42: Match the following.

Group AGroup B
<TABLE>HREF
<HTML>DIR
<IMG>BORDER
<A>SRC
TYPE

Answer:

<TABLE> – BORDER
<HTML> – DIR
<IMG> – SRC
<A> – HREF

Exam Tips:

a) BORDER belongs to tables, SRC gives the image file of <IMG> and HREF gives the link target of <A>.
b) TYPE is the extra item and is not used in the matching.

 

Question 43: Differentiate the <FRAME> and <FRAMESET> tags.

Answer:

The <FRAMESET> tag defines the frame sections (how the window is divided), and the <FRAME> tag specifies the page to be loaded in each frame.

<FRAMESET> tag<FRAME> tag
Rows: divides the screen row-wiseSRC: gives the name of the web page to be loaded in the frame
Cols: divides the screen column-wiseScrolling: allows the page displayed in the frame to be scrolled

Eg:
<FRAMESET COLS="50%,*">
<FRAME SRC="page1.html">
<FRAME SRC="page2.html">
</FRAMESET>

Exam Tips:

a) Give attributes of both tags and a short example for full marks.
b) <FRAMESET> is a container tag, while <FRAME> is an empty tag.

 

Question 44: How can you merge cells in a table?

Answer:

Cells are merged using the attributes COLSPAN or ROWSPAN.

1. COLSPAN: it is used to stretch a cell over a number of columns. Eg: <TD COLSPAN=3> spans the cell over three columns.

2. ROWSPAN: it is used to stretch a cell over a number of rows. Eg: <TD ROWSPAN=3> spans the cell over three rows.

Exam Tips:

a) Write both attributes with a one-line example each.

 

Question 45: Raju created a web page as follows:

<HTML>
<HEAD>
<TITLE>SampleTable</TITLE>
</HEAD>
<BODY>
<TABLE><TR><TH>Roll.No.</TH><TH>Name</TH><TR>
<TR><TD>1</TD><TD>Raju</TD></TR>
<TR><TD>2</TD><TD>Ramu</TD></TR>
</TABLE>
</BODY>
</HTML>

But he is unable to view any tabular format in the web page when it is displayed in the browser. Find the reason for it and correct it.

Answer:

The BORDER attribute is missing. Without it the table is displayed without lines, so it does not look like a table.

<TABLE BORDER=3>

Exam Tips:

a) Add BORDER=1 (or a higher value) to the <TABLE> tag to see the grid lines.
b) Also close the first row properly with </TR> at the end of the heading row.

 

Question 46: Name the possible values of the TYPE attribute of an ordered list.

Answer:

1. TYPE=1 for 1, 2, 3...
2. TYPE=i for i, ii, iii...
3. TYPE=I for I, II, III...
4. TYPE=a for a, b, c...
5. TYPE=A for A, B, C...

Exam Tips:

a) Learn all five values; number, lower and upper case Roman numerals, lower and upper case letters.

 

Question 47: Predict the output of the following HTML segment.

<OL TYPE="1" START="5">
<LI>Chocolate</LI>
<LI>Milk</LI>
<LI>Coffee</LI>
</OL>

Answer:

5. Chocolate
6. Milk
7. Coffee

Exam Tips:

a) START="5" makes the numbering begin at 5 and TYPE="1" uses ordinary numbers.

 

Question 48: Compare the use of the TYPE attribute in ordered and unordered lists in HTML.

Answer:

1. Unordered list (<UL>): the items are displayed with a square, circle or disc in front. Eg: <UL TYPE="circle">

2. Ordered list (<OL>): the items are numbered according to the TYPE value:

TYPE=1 for 1, 2, 3; TYPE=i for i, ii, iii; TYPE=I for I, II, III; TYPE=a for a, b, c; TYPE=A for A, B, C. Eg: <OL TYPE="A">

Exam Tips:

a) Contrast the two: bullets for unordered lists and numbering styles for ordered lists.

 

Question 49: Differentiate internal linking and external linking with examples.

Answer:

1. External linking: it is used to connect two different web pages.

Eg: <A HREF="School.html">School</A>

2. Internal linking: an internal link points to a section in the same document.

<A HREF="#top">Go to Top</A>
<A HREF="#bottom">Go to Bottom</A>

Exam Tips:

a) For an internal link the target position must be named with <A NAME="top"> and linked using #top.

 

Question 50: While moving the mouse pointer over a web page, the mouse pointer changes its shape to a hand icon.

1. Give the reason for this change in the mouse pointer.

2. Name the tag and attribute used for it.

Answer:

1. The text or picture is a hyperlink.
2. The <A> tag with the HREF attribute.

Exam Tips:

a) The hand pointer always shows that the item is clickable.

 

Question 51: HTML has the facility to provide external and internal hyperlinks.

1. Which tag is used to include a hyperlink?

2. Explain two attributes needed for creating an internal link.

Answer:

1. The <A> (anchor) tag.
2. NAME and HREF. NAME gives a name to a position (target) in the page, for example <A NAME="top">; HREF links to that name, for example <A HREF="#top">.

Exam Tips:

a) Mention that the internal link uses # before the target name.

 

Question 52: Match the following.

AB
EMBEDHREF
OLLOOP
ASTART
BGSOUNDHIDDEN

Answer:

EMBED – HIDDEN
OL – START
A – HREF
BGSOUND – LOOP

Exam Tips:

a) HIDDEN hides the player of <EMBED>, LOOP repeats the background sound, START sets the first number of the list and HREF gives the link address.

 

Question 53: Categorise the following tags into container tags and empty tags: <A>, <FRAME>, <FRAMESET>, <INPUT>

Answer:

1. Empty tags: <FRAME> and <INPUT>
2. Container tags: <FRAMESET> and <A>

Exam Tips:

a) Container tags have a start and an end tag; empty tags have only a start tag.

 

Question 54: The <FORM> tag is used to accept data and communicate with a server program.

1. Name any two attributes of the FORM tag.

2. How will you create a SUBMIT button and a RESET button within the FORM tag?

Answer:

1. ACTION and METHOD.

2. <INPUT TYPE="submit">
<INPUT TYPE="reset">

Exam Tips:

a) Both buttons are created with <INPUT> and differ only in the TYPE value.

 

Question 55: Aliya wants to display three web pages (A.htm, B.htm, C.htm) on the same screen horizontally in the ratio 20%, 40%, 40%. Write the HTML code for the same.

Answer:

<FRAMESET ROWS="20%,40%,40%">
<FRAME SRC="A.htm">
<FRAME SRC="B.htm">
<FRAME SRC="C.htm">
</FRAMESET>

Exam Tips:

a) The sizes in ROWS must be given in the same order as the frames and should add up to 100%.
b) Use the file names exactly as given in the question.

 

Question 56: Distinguish between the CELLSPACING and CELLPADDING attributes of the <TABLE> tag.

Answer:

CELLSPACING: it specifies the space between table cells.
CELLPADDING: it specifies the space between the cell border and the content.

Exam Tips:

a) This question is asked often; link spacing with "between cells" and padding with "inside a cell".

 

Three Mark Questions and Answers

Question 57: Point out the difference between a relative and an absolute URL.

Answer:

URL means Uniform Resource Locator. There are two types of URL.

1. Absolute URL: the full address of the web page, including the protocol and web site address, is given explicitly. Eg: <A HREF="http://www.hscap.kerala.gov.in">

2. Relative URL: only the path relative to the current page is given, not the full address. Eg: consider the web pages index.html and school.html saved in the folder C:\BVM. The file index.html contains <A HREF="school.html">. The full path of school.html is not specified, but it implicitly points to the file stored in C:\BVM.

Exam Tips:

a) Remember: absolute means the complete address, relative means the address with respect to the current page.
b) Give one example for each type.

 

Question 58: Name the tag which is used to play music in the background while the web page is being viewed.

Answer:

<BGSOUND>

Exam Tips:

a) Its main attributes are SRC (the sound file) and LOOP (number of times to play).

 

Question 59: Differentiate the <FRAME>, <FRAMESET> and <NOFRAMES> tags.

Answer:

1. <FRAMESET>: it is used to divide the window into more than one pane. It has no body section.
2. <FRAME>: it specifies the page to be shown within a frameset.
3. <NOFRAMES>: it gives content for browsers that do not support frames.

Exam Tips:

a) Write one clear point for each tag, three points for three marks.

 

Question 60: In a web page, the user needs to enter the address of persons. Name the tag used for this. List and explain any two main attributes of it.

Answer:

The tag is <TEXTAREA>. It is used to enter multiple lines of text in a text box of a web page. The main attributes are:

1. ROWS: it specifies the height of the text area, that is, the number of lines.

2. COLS: it specifies the width, that is, the number of characters per line.

3. NAME: it gives a variable name to the text area control.

Eg: <TEXTAREA NAME="Address" COLS=20 ROWS=5>

Exam Tips:

a) The question asks for two attributes only, but a third one with an example does no harm.

 

Question 61: Consider the following table.

BatchBoysGirls
Science2526
Commerce2030

Write the HTML code for the above.

Answer:

<HTML>
<HEAD>
<TITLE>TABLE</TITLE>
</HEAD>
<BODY>
<CENTER><B>TABLE</B></CENTER>
<TABLE BORDER=1>
<TR>
 <TH>Batch</TH>
 <TH>Boys</TH>
 <TH>Girls</TH>
</TR>
<TR>
 <TH>Science</TH>
 <TD>25</TD>
 <TD>26</TD>
</TR>
<TR>
 <TH>Commerce</TH>
 <TD>20</TD>
 <TD>30</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Exam Tips:

a) The row labels (Science, Commerce) are written with <TH> in this table.
b) Each <TR> must be closed with </TR> and the table with </TABLE>.

 

Question 62: Name the tag which permits a user to add more than one web page in a single window. List any attributes of it with explanation.

Answer:

The <FRAMESET> tag together with the <FRAME> tag.

Attributes of <FRAMESET>:

1. ROWS: used to divide the screen row-wise.

2. COLS: used to divide the screen column-wise.

Attributes of <FRAME>:

3. SRC: specifies the name of the web page to be loaded in the frame.

4. NAME: gives a name to the frame.

Eg: <FRAMESET ROWS="50%,*">
<FRAME SRC="page1.html">
<FRAME SRC="page2.html">
</FRAMESET>

Exam Tips:

a) List at least the attributes ROWS, COLS and SRC with a short explanation of each.

 

Question 63: In VB, a programmer can use option buttons, text boxes, combo boxes, etc. to accept input from the user. But in HTML the <INPUT> tag is used for creating all of the above controls. Which attribute of the <INPUT> tag is used for this? List and explain the possible values of it.

Answer:

The TYPE attribute of the <INPUT> tag is used to create the different controls. Its main values are:

1. Text: creates a single-line text box. Eg: <INPUT TYPE="text">

2. Password: creates a password box in which the characters are displayed as symbols such as asterisks (*). Eg: <INPUT TYPE="password">

3. Checkbox: creates a check box. Eg: <INPUT TYPE="checkbox">

4. Radio: creates an option (radio) button. Eg: <INPUT TYPE="radio" NAME="sex" VALUE="M">Male

5. Reset: creates a reset button, which clears all the data entered. Eg: <INPUT TYPE="reset">

6. Submit: creates a submit button; when it is clicked, the data entered in the form is sent to the web server. Eg: <INPUT TYPE="submit">

Exam Tips:

a) Explain each value in one line with a tag example.
b) Radio buttons of one group must have the same NAME so that only one can be selected.

 

Question 64: Write the HTML code for the following.

ComputerAcerHP
PC30,00032,000
Laptop40,000

Answer:

<HTML>
<HEAD>
<TITLE>TABLE</TITLE>
</HEAD>
<BODY>
<TABLE BORDER="1">
<TR>
 <TH>Computer</TH>
 <TH>Acer</TH>
 <TH>HP</TH>
</TR>
<TR>
 <TH>PC</TH>
 <TD>30,000</TD>
 <TD>32,000</TD>
</TR>
<TR>
 <TH>Laptop</TH>
 <TD COLSPAN=2>40,000</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Exam Tips:

a) The single price 40,000 stretches over two columns, so use COLSPAN=2 in that cell.

 

Question 65: Write the HTML code for the following.

SubjectType of ExamMark
Computer ApplicationTheory45
Practical26

Answer:

<HTML>
<HEAD>
<TITLE>TABLE EXAMPLE</TITLE>
</HEAD>
<BODY>
<TABLE BORDER="1">
<TR>
 <TH>Subject</TH>
 <TH>Type of<BR>Exam</TH>
 <TH>Mark</TH>
</TR>
<TR>
 <TH ROWSPAN=2>Computer<BR>Application</TH>
 <TD>Theory</TD>
 <TD>45</TD>
</TR>
<TR>
 <TD>Practical</TD>
 <TD>26</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Exam Tips:

a) The subject name is shown once and spans two rows, so use ROWSPAN=2 in its cell.
b) In the second row do not write the subject cell again.

 

Question 66: Name the attributes in HTML which can be present in more than one tag.

Answer:

1. BORDER: it can be used in the <TABLE> tag and in the <FRAMESET> tag.
2. BGCOLOR: it can be used in the <TABLE> tag and in the <BODY> tag.
3. TYPE: it can be used in the <OL> tag and in the <INPUT> tag.

Exam Tips:

a) Give each attribute with the two tags in which it is used.

 

Question 67: What are the main attributes of the <FORM> tag?

Answer:

1. METHOD: it determines how the form data is sent to the server. GET and POST are the two methods. POST is used to pass a large volume of data and is more secure because the data entered is not visible during submission. GET is faster and is used to send a smaller volume of data, but it is not secure.

2. ACTION: it gives the URL of the server-side program which processes the form data.

Eg: <FORM ACTION="http://www.scert.com/asp/process.asp">

Exam Tips:

a) The two main attributes are ACTION and METHOD.

 

Question 68: What are the differences between the GET method and the POST method?

Answer:

POST methodGET method
Used to pass a large volume of dataUsed to pass a smaller volume of data
The data is not visible during submissionThe data is visible during submission
It is slowerIt is faster
It is secureIt is not secure

Exam Tips:

a) Learn the four points as pairs: volume, visibility, speed and security.

 

Question 69: Lena wants to create a web page to select a district name from a combo box. By default the combo box should show the district Trichur. Help her to do so.

Answer:

<HTML>
<HEAD>
<TITLE>COMBOBOX</TITLE>
</HEAD>
<BODY>
DISTRICT
<SELECT>
 <OPTION SELECTED>TRICHUR
 <OPTION>ERNAKULAM
 <OPTION>PALAKKAD
</SELECT>
</BODY>
</HTML>

Exam Tips:

a) SELECTED in an <OPTION> makes it the default item shown in the combo box.

 

Question 70: Ram creates a web page to record the sex of a student, but he has made a mistake so that the student can select both the male and female choices at a time. What is the reason? Help him to correct the mistake.

Answer:

Radio buttons are used to record the sex of a student. Radio buttons are provided as a group from which exactly one can be selected at a time, which is done by giving the same NAME to all the buttons in the group. Ram did not give the same name to both buttons, so both can be selected. The correct code is:

<HTML>
<HEAD>
<TITLE>RADIO BUTTON</TITLE>
</HEAD>
<BODY>
Sex
<INPUT TYPE="radio" NAME="sex" VALUE="Male"> Male
<INPUT TYPE="radio" NAME="sex" VALUE="Female"> Female
</BODY>
</HTML>

Exam Tips:

a) The same NAME groups the radio buttons; the VALUE is what is sent to the server.

 

Question 71: Explain the attributes of the <FRAMESET> tag.

Answer:

1. COLS: it determines the dimensions of the vertical frames (columns) in the frameset page. Eg: <FRAMESET COLS="50%,*"> creates two vertical frames of equal width.

2. ROWS: it determines the dimensions of the horizontal frames (rows) in the frameset page. Eg: <FRAMESET ROWS="50%,*"> creates two horizontal frames of equal height.

3. BORDER: it specifies the thickness of the border of the frames.

4. BORDERCOLOR: it specifies the colour of the frame border.

Exam Tips:

a) Write four attributes with a short explanation each; examples for ROWS and COLS add value.

 

Question 72: Explain the attributes of the <FRAME> tag.

Answer:

1. SRC: it specifies the URL of the document to be loaded in the frame.
2. SCROLLING: it indicates whether a scroll bar is to be shown in the frame; the values are yes, no or auto.
3. NORESIZE: it stops the resizing of the frame; no value is assigned.
4. MARGINWIDTH and MARGINHEIGHT: they set the horizontal and vertical margins; the values are in pixels.
5. NAME: it gives a name to the frame.
6. TARGET: it specifies the target frame.

Exam Tips:

a) NORESIZE is written without any value, for example <FRAME SRC="page1.html" NORESIZE>.

 

Question 73: Mr. Sonet visited a website that contains two frames. He tried to resize the first frame with the mouse, but he failed. What is the reason behind it? Explain.

Answer:

The web designer used the NORESIZE attribute of the <FRAME> tag while designing the page. The NORESIZE attribute stops the resizing of the frame, and no value is assigned to it.

Eg: <FRAME SRC="page1.html" NORESIZE>

Exam Tips:

a) Name the attribute (NORESIZE) and show how it is written.

 

Question 74: We know that an HTML document contains two sections, head and body. While designing a web page as follows, what will happen?

<HTML>
<HEAD>
</HEAD>
<BODY>
<FRAMESET COLS="50%,*">
<FRAME SRC="page1.html" NORESIZE>
<FRAME SRC="page2.html">
</FRAMESET>
</BODY>
</HTML>

Answer:

There is no output (the frames are not displayed), because a <FRAMESET> page must not have a <BODY> tag. The correct code is:

<HTML>
<HEAD>
</HEAD>
<FRAMESET COLS="50%,*">
<FRAME SRC="page1.html" NORESIZE>
<FRAME SRC="page2.html">
</FRAMESET>
</HTML>

Exam Tips:

a) Remember the rule: a frameset replaces the <BODY> section.

 

Question 75: Create a web page as follows to display a list containing items.

(Figure: a browser window showing the text "House Hold Items" and below it a list box with the items TV, Fridge and Washing Machine; Washing Machine is highlighted.)

Answer:

To create a list box, set the SIZE attribute of the <SELECT> tag to more than 1.

<HTML>
<HEAD>
</HEAD>
<BODY>
House Hold Items<BR>
<SELECT SIZE=3>
 <OPTION>TV
 <OPTION>Fridge
 <OPTION SELECTED>Washing Machine
</SELECT>
</BODY>
</HTML>

Exam Tips:

a) SELECTED makes the Washing Machine item highlighted when the page opens.

 

Question 76: In VB there are separate controls to create a list box and a combo box. But in HTML these controls can be created using a single tag.

1. Name the tag used for this.

2. Which attribute is used for this and how?

Answer:

1. <SELECT>
2. The SIZE attribute. <SELECT SIZE=1> gives a combo box and <SELECT SIZE=3> gives a list box.

Exam Tips:

a) SIZE=1 gives a drop-down (combo) box; a value greater than 1 gives a list box showing that many items.

 

Question 77: Write the HTML code for creating the following web page using the list tags.

(Figure: the centred bold headings "Net Link Ltd." and "Bangalore", then the heading "Our Products" followed by a numbered list: 1. Television, 2. Washing Machine, and under Washing Machine a bulleted list of "Model 2005 XP series" and "Model 2006 ST series".)

Answer:

<HTML>
<HEAD>
<TITLE>List Tag</TITLE>
</HEAD>
<BODY>
<H2 ALIGN="center"><B>Net Link Ltd.</B></H2>
<H2 ALIGN="center"><B>Bangalore</B></H2>
<HR>
<B>Our Products</B>
<BR>
<OL TYPE=1>
 <LI>Television
 <LI>Washing Machine
 <UL>
 <LI>Model 2005 XP series
 <LI>Model 2006 ST series
 </UL>
</OL>
</BODY>
</HTML>

Exam Tips:

a) A bulleted <UL> list is placed inside the <LI> of the numbered list to make a nested list.
b) Close every heading tag properly (</H2>).

 

Question 78: Write the HTML code for creating the following web page using list tags.

(Figure: the centred bold heading "COMPUTER TERMS" and below it a definition list: CPU – Central Processing Unit, ALU – Arithmetic and Logic Unit, WWW – World Wide Web.)

Answer:

<HTML>
<HEAD>
<TITLE>Definition List Tag</TITLE>
</HEAD>
<BODY>
<H1 ALIGN="center"><B>COMPUTER TERMS</B></H1>
<BR>
<DL>
 <DT>CPU
 <DD>Central Processing Unit
 <DT>ALU
 <DD>Arithmetic and Logic Unit
 <DT>WWW
 <DD>World Wide Web
</DL>
</BODY>
</HTML>

Exam Tips:

a) In a definition list, <DT> gives the term and <DD> its description.

 

Question 79: What will be the output of the following?

<HTML>
<HEAD>
</HEAD>
<BODY>
<OL TYPE="A" START=5>
<LI>COMPUTER
<LI>BIOLOGY
</OL>
</BODY>
</HTML>

Answer:

The output is:
E. COMPUTER
F. BIOLOGY

Exam Tips:

a) START=5 refers to the 5th letter when TYPE="A", so the list begins with E.

 

Question 80: Find the errors in the following and correct them.

1. <UL TYPE="A" START=5>
2. <IMG SRC="picture.jpg" SIZE=100>

3. <HTML>
<HEAD><TITLE></HEAD></TITLE>
<BODY>This is a sample web page</BODY>

Answer:

1. <UL> has only the types disc, circle and square, and it has no START attribute. Correct form: <UL TYPE="square">.

2. <IMG> has no SIZE attribute; use the HEIGHT and WIDTH attributes. Correct form: <IMG SRC="picture.jpg" WIDTH=100 HEIGHT=100>.

3. <HTML>
<HEAD><TITLE></TITLE></HEAD>
<BODY>This is a sample web page</BODY>
</HTML>

Exam Tips:

a) In part 3 the tags must be closed in the reverse order of opening, and the closing </HTML> tag is also needed.

 

Question 81: Your brother requested you to prepare a list of best friends from your class using HTML.

1. Which type of list will you prefer?

2. Write the HTML code to create such a list of 4 students.

Answer:

1. An ordered list <OL> can be used.

2. <HTML>
<HEAD>
<TITLE>List</TITLE>
</HEAD>
<BODY>
<CENTER><B><U>List of best friends</U></B></CENTER>
<OL TYPE=1>
 <LI>Christeena
 <LI>Vijitha
 <LI>Archa
 <LI>Tija
</OL>
</BODY>
</HTML>

Exam Tips:

a) Use <OL> for numbered items and <UL> for bulleted items.

 

Question 82: Ravi wants to display the names of 6 subjects as a list using upper case Roman numerals. Help him to do so.

Answer:

<OL TYPE="I">
 <LI>English
 <LI>Sanskrit
 <LI>Business Studies
 <LI>Accountancy
 <LI>Economics
 <LI>Computer Applications
</OL>

Exam Tips:

a) TYPE="I" gives I, II, III...; TYPE="i" would give lower case Roman numerals.

 

Question 83: Your class selected you as the group leader of Group V. In your group there are 5 students with roll numbers 20 to 24. Prepare a list using the appropriate tag in HTML.

Answer:

<HTML>
<HEAD>
<TITLE>Ordered list</TITLE>
</HEAD>
<BODY>
<B><U>Group V</U></B>
<OL START=20>
 <LI>Manisha
 <LI>Anisha
 <LI>Nisha
 <LI>Isha
 <LI>Sha
</OL>
</BODY>
</HTML>

Exam Tips:

a) The START attribute gives the first number, so the five items are numbered 20 to 24 automatically.

 

Question 84: Write the HTML code to get the following output.

(Figure: a browser window showing "a. computer" in bold and, under it, a bulleted list with the items Laptop and desktop.)

Answer:

<HTML>
<HEAD>
<TITLE>Unordered list</TITLE>
</HEAD>
<BODY>
<OL TYPE="a">
 <LI><B>Computer</B>
 <UL>
 <LI>Laptop
 <LI>desktop
 </UL>
</OL>
</BODY>
</HTML>

Exam Tips:

a) This is a nested list: an unordered list inside an item of an ordered list with lower case letters.

 

Question 85: Write the HTML code to get the following table as output.

NameScore
Raju90
Reena84

Answer:

<HTML>
<HEAD>
<TITLE>Table</TITLE>
</HEAD>
<BODY>
<TABLE BORDER=1>
<TR>
 <TH>Name</TH>
 <TH>Score</TH>
</TR>
<TR>
 <TD>Raju</TD>
 <TD>90</TD>
</TR>
<TR>
 <TD>Reena</TD>
 <TD>84</TD>
</TR>
</TABLE>
</BODY>
</HTML>

Exam Tips:

a) Use <TH> for the heading row and <TD> for the data rows; BORDER=1 shows the grid lines.

 

Question 86: Write the tags to define the following: text box, submit button, reset button and radio button.

Answer:

Text box: <INPUT TYPE="text" NAME="txtname">
Submit button: <INPUT TYPE="submit" VALUE="Send">
Reset button: <INPUT TYPE="reset" VALUE="Clear">
Radio button: <INPUT TYPE="radio" NAME="sex" VALUE="Male">Male
<INPUT TYPE="radio" NAME="sex" VALUE="Female">Female

Exam Tips:

a) All four controls use the <INPUT> tag with different TYPE values.
b) The VALUE attribute of a button gives the text shown on it.

 

Five Mark Questions and Answers

Question 87: Write HTML code to create a web page with 3 frames as shown below.

(Figure: a browser window divided into a top frame (30% of the height) showing Main.htm and, below it, two frames side by side, Page1.html on the left (50%) and Page2.html on the right (50%).)

Answer:

Step 1: Take a Notepad, type the following and save it as main.html on the Desktop.

<HTML>
<HEAD>
<TITLE>Main page</TITLE>
</HEAD>
<BODY BGCOLOR="red">
<CENTER>main page.</CENTER>
</BODY>
</HTML>

Step 2: Take another Notepad, type the following and save it as page1.html on the Desktop.

<HTML>
<HEAD>
<TITLE>page1</TITLE>
</HEAD>
<BODY BGCOLOR="yellow">
<CENTER>page 1</CENTER>
</BODY>
</HTML>

Step 3: Take another Notepad, type the following and save it as page2.html on the Desktop.

<HTML>
<HEAD>
<TITLE>page 2</TITLE>
</HEAD>
<BODY BGCOLOR="blue">
<CENTER>page 2</CENTER>
</BODY>
</HTML>

Step 4: Take another Notepad, type the following and save it as frame.html on the Desktop.

<HTML>
<HEAD>
<TITLE>frame</TITLE>
</HEAD>
<FRAMESET ROWS="30%,*">
 <FRAME SRC="main.html">
 <FRAMESET COLS="50%,*">
 <FRAME SRC="page1.html">
 <FRAME SRC="page2.html">
 </FRAMESET>
</FRAMESET>
</HTML>

Step 5: Finally, open (run) the frame.html file in the browser.

Exam Tips:

a) Create the three content pages first and the frame page last, because the frame page only refers to them.
b) Nest a second <FRAMESET> inside the first one to split the lower frame into two columns.
c) Save all files in the same folder so that the file names in SRC work.

 

Question 88: Explain any three attributes of the <FORM> tag.

Answer:

1. ACTION: here we give the name of the program (including the path) stored in the web server which processes the form data.

2. METHOD: there are two methods, GET and POST.

GET methodPOST method
FasterSlower
Used to send a small volume of dataUsed to send a large volume of data
Less secureMore secure
Data is visible during submissionData is not visible during submission

3. TARGET: it specifies the target window for displaying the result. The values are:

_blank – opens in a new window

_self – opens in the same frame

_parent – opens in the parent frameset

_top – opens in the main browser window

name – opens in the window with the specified name

Exam Tips:

a) The three attributes asked for are ACTION, METHOD and TARGET.
b) A two-column comparison of GET and POST is a quick way to score the METHOD marks.

 

Question 89: Explain the attributes of the <TABLE> tag. Name any six attributes of the <TABLE> tag that determine the general layout of a table.

Answer:

1. BORDER: it specifies the thickness of the border lines around the table.
2. BORDERCOLOR: it specifies the colour of the border lines.
3. ALIGN: it specifies the alignment of the table; the values can be left, right or center.
4. BGCOLOR: it specifies the background colour of the table.
5. CELLSPACING: it specifies the space between two table cells.
6. CELLPADDING: it specifies the space between the cell border and the content.
7. COLS: it specifies the number of columns.
8. WIDTH: it determines the width of the table.
9. FRAME: it specifies the border lines around the table; the values are void, box, above, below, etc.

Exam Tips:

a) Write at least six attributes, each with a one-line explanation.
b) Learn the pair CELLSPACING and CELLPADDING together; it is asked often.

 

Question 90: Explain the attributes of the <TH> and <TD> tags.

Answer:

1. ALIGN: it specifies the horizontal alignment of the content; the values can be left, right, center and justify.

2. VALIGN: it specifies the vertical alignment of the content; the values can be top, middle, bottom and baseline.

3. BGCOLOR: it specifies the background colour of the cell.

4. COLSPAN: it is used to stretch a cell over a number of columns. Eg: <TD COLSPAN=3> spans the cell over three columns.

5. ROWSPAN: it is used to stretch a cell over a number of rows. Eg: <TD ROWSPAN=3> spans the cell over three rows.

Exam Tips:

a) ALIGN and VALIGN are the two alignment attributes: horizontal and vertical.
b) Give an example for COLSPAN and ROWSPAN.

 

Question 91: Create an HTML page as shown below using lists.

The recipe for preparation
1. The ingredients
• 100 g flour
• 10 g sugar
• 1 cup water
• 2 egg
• Salt and pepper
2. The procedure
A. Mix dry ingredients thoroughly
B. Pour in wet ingredients
C. Mix for 10 minutes
D. Bake for 1 hour at 100 degree C temperature

Answer:

<HTML>
<HEAD>
<TITLE>List Demo</TITLE>
</HEAD>
<BODY BGCOLOR="Green">
The recipe for preparation
<OL>
 <LI>The ingredients</LI>
 <UL TYPE="disc">
 <LI>100 g flour</LI>
 <LI>10 g sugar</LI>
 <LI>1 cup water</LI>
 <LI>2 egg</LI>
 <LI>Salt and pepper</LI>
 </UL>
 <LI>The procedure</LI>
 <OL TYPE="A">
 <LI>Mix dry ingredients thoroughly</LI>
 <LI>Pour in wet ingredients</LI>
 <LI>Mix for 10 minutes</LI>
 <LI>Bake for 1 hour at 100 degree C temperature</LI>
 </OL>
</OL>
</BODY>
</HTML>

Exam Tips:

a) The outer list is an ordered list with numbers; the ingredients use a nested <UL> and the procedure a nested <OL TYPE="A">.
b) Close the inner lists before starting the next item of the outer list.

 

Question 92: Create HTML code for the following output.

1. Flowers
• Jasmine
• Rose
• Lily
2. Vegetables
• Beetroot
• Cabbage
• Cucumber
3. Fruits
i. Apple
ii. Orange
iii. Pineapple

Answer:

<HTML>
<HEAD>
<TITLE>Nested List</TITLE>
</HEAD>
<BODY BGCOLOR="Blue">
<OL>
 <LI>Flowers</LI>
 <UL TYPE="disc">
 <LI>Jasmine</LI>
 <LI>Rose</LI>
 <LI>Lily</LI>
 </UL>
 <LI>Vegetables</LI>
 <UL TYPE="disc">
 <LI>Beetroot</LI>
 <LI>Cabbage</LI>
 <LI>Cucumber</LI>
 </UL>
 <LI>Fruits</LI>
 <OL TYPE="i">
 <LI>Apple</LI>
 <LI>Orange</LI>
 <LI>Pineapple</LI>
 </OL>
</OL>
</BODY>
</HTML>

Exam Tips:

a) Use TYPE="i" for the lower case Roman numerals i, ii, iii in the innermost list.
b) Indent the code to see clearly which list is inside which.

 

Free Kerala Board Textbook Explanations: Class 12 Computer Science Chapter 05 Web Designing Using HTML

Textbook Solutions for Class 12 Computer Science Chapter 05 Web Designing Using HTML

Review comprehensive exercise answers for Class 12 Computer Science Chapter 05 Web Designing Using HTML. Fully updated to match current Kerala Board syllabus guidelines, these textbook solutions help students verify their work and maintain accurate study notes.

Mastering Theoretical and Practical Questions

Beyond providing final answers, these guides offer step-by-step breakdowns for complex queries in the Class 12 Computer Science module. This approach helps students balance theoretical depth with practical problem-solving skills required for Kerala Board exams.

Effective Self-Study and Homework Assistance

These resources act as an effective roadmap for daily homework tasks and independent study. Supplement your review of Chapter 05 Web Designing Using HTML with official sample papers and interactive practice tests available on our platform free of charge.

FAQs

Where can I find the latest Kerala Plus Two Computer Science Chapter 5 Web Designing Using HTML Questions and Answers for the 2026-27 session?

The complete and updated Kerala Plus Two Computer Science Chapter 5 Web Designing Using HTML Questions and Answers is available for free on StudiesToday.com. These solutions for Class 12 Computer Science are as per latest Kerala Board curriculum.

Are the Computer Science Kerala Board solutions for Class 12 updated for the new 50% competency-based exam pattern?

Yes, our experts have revised the Kerala Plus Two Computer Science Chapter 5 Web Designing Using HTML Questions and Answers as per 2026 exam pattern. All textbook exercises have been solved and have added explanation about how the Computer Science concepts are applied in case-study and assertion-reasoning questions.

How do these Class 12 Kerala Board solutions help in scoring 90% plus marks?

Toppers recommend using Kerala Board language because Kerala Board marking schemes are strictly based on textbook definitions. Our Kerala Plus Two Computer Science Chapter 5 Web Designing Using HTML Questions and Answers will help students to get full marks in the theory paper.

Do you offer Kerala Plus Two Computer Science Chapter 5 Web Designing Using HTML Questions and Answers in multiple languages like Hindi and English?

Yes, we provide bilingual support for Class 12 Computer Science. You can access Kerala Plus Two Computer Science Chapter 5 Web Designing Using HTML Questions and Answers in both English and Hindi medium.

Is it possible to download the Computer Science Kerala Board solutions for Class 12 as a PDF?

Yes, you can download the entire Kerala Plus Two Computer Science Chapter 5 Web Designing Using HTML Questions and Answers in printable PDF format for offline study on any device.