Step-by-Step Textbook Solutions for Class 12 Computer Science Chapter 04 Web Technology
Explore reliable textbook solutions for Chapter 04 Web Technology tailored for Class 12 learners. Utilizing these Computer Science answers ensures thorough preparation and strengthens foundational knowledge before final Kerala Board evaluations.
Download Chapter 04 Web Technology Textbook Solutions PDF
View or download the dedicated Chapter 04 Web Technology solution resource below. Engaging with these textbook answers under focused study conditions ensures continuous academic progress and mastery of the 2026-27 curriculum for Computer Science.
One Mark Questions and Answers
Question 1: Specify an attribute of the <HTML> tag.
Answer:
DIR: It indicates the direction of the document text. It can take the values "rtl" (right to left) or "ltr" (left to right).
Eg: <HTML DIR="rtl"> specifies that the document is to be read from right to left.
Exam Tips:
a) LANG is another attribute of the <HTML> tag; either one is accepted, but give an example with the value.
Question 2: Mention the default value of the SIZE attribute of the <BASEFONT> tag.
Answer:
3
Exam Tips:
a) Font sizes in HTML range from 1 to 7, and 3 is the normal (default) size.
Question 3: Name the tag which has the 'Noshade' attribute.
Answer:
<HR> tag
Exam Tips:
a) NOSHADE makes the horizontal rule a solid line without the 3-D shading effect.
Question 4: What is the maximum possible value of the SIZE attribute of the <BASEFONT> tag?
Answer:
7
Exam Tips:
a) Remember the range 1 to 7: minimum 1, default 3, maximum 7.
Question 5: Salim developed a personal website in which he has to create an e-mail link. Can you suggest the protocol used to achieve this task?
Answer:
mailto
Eg: <A HREF="mailto:[your email address]">Mail to me</A>
Exam Tips:
a) "mailto:" is written inside the HREF value, followed directly by the e-mail address, without spaces.
Question 6: You want to connect your web page to the web portal www.yahoo.com. Mention the tag that can be used for this.
Answer:
<A> (Anchor) tag
Eg: <A HREF="http://www.yahoo.com">Yahoo</A>
Exam Tips:
a) For an external website, write the full URL including "http://" in HREF; otherwise the browser treats it as a file on your own site.
Question 7: Specify the main attribute of the <IMG> tag used to include an image file in a web page.
Answer:
SRC. It specifies the name (and path) of the image file to be included in the page.
Eg: <IMG SRC="C:/home.jpg">
Exam Tips:
a) SRC is a compulsory attribute of <IMG>; without it no image can be shown.
Question 8: Select the attribute associated with the <IMG> tag from the following: (Name, Size, Align, Value)
Answer:
Align
Exam Tips:
a) Other attributes of <IMG> are SRC, WIDTH, HEIGHT, BORDER, VSPACE, HSPACE and ALT.
Question 9: Write the HTML code for giving a hyperlink in a web page.
Answer:
<A HREF="page2.htm">Page2</A>
Exam Tips:
a) The text between <A> and </A> is what the user clicks; the HREF value is where the link goes.
Question 10: The default colour of VLINK is ________
(a) Blue
(b) Green
(c) Red
(d) Yellow
Answer:
(c) Red
Exam Tips:
a) VLINK sets the colour of visited links, LINK the colour of unvisited links and ALINK the colour of the active link; learn the three together.
Question 11: The default colour of ALINK is ________
(a) Blue
(b) Green
(c) Red
(d) Yellow
Answer:
(b) Green
Exam Tips:
a) ALINK is the colour of a link at the moment it is being clicked (active link). The default colour of LINK (unvisited) is blue.
Question 12: Saritha is assigned the task of writing explanatory notes in HTML code. Which tag can she use?
Answer:
Explanatory notes can be given using the comment tag. It uses two markup elements: <!-- to start the comment and --> to end it.
Eg: <!-- This is a comment -->
Exam Tips:
a) Comments are not displayed by the browser; they only help people reading the code.
Question 13: Pick the odd one out.
(a) BODY
(b) HTML
(c) CENTER
(d) ALIGN
Answer:
(d) ALIGN. It is an attribute; all the others are tags.
Exam Tips:
a) In odd-one-out questions on HTML, check whether each item is a tag or an attribute; that is usually the basis.
Question 14: Your school has a website, www.myschool.org. You want to create a link to this site from your website. Write the code for implementing this.
Answer:
<A HREF="http://www.myschool.org">My School</A>
Exam Tips:
a) Put the URL in double quotes and close the anchor with </A>.
Question 15: HTML was developed by ________
Answer:
Tim Berners-Lee
Exam Tips:
a) Tim Berners-Lee is also known as the inventor of the World Wide Web.
Question 16: What are the two major sections of an HTML document?
Answer:
Head section and Body section
Exam Tips:
a) The head section holds the title and other information about the page; the body section holds the content shown in the browser window.
Question 17: An HTML file is saved with the _____ extension.
(a) .vbp
(b) .mdb
(c) .htm
(d) .frm
Answer:
(c) .htm (or .html)
Exam Tips:
a) Both .htm and .html are valid extensions for HTML files.
Question 18: The software used to view a web page is _____
(a) Notepad
(b) Web browser
(c) Web server
(d) Web editor
Answer:
(b) Web browser
Exam Tips:
a) Notepad is used to write the HTML code; the browser is used to view the result.
Question 19: The default alignment of an image in HTML is _____
(a) Left
(b) Right
(c) Center
(d) Inline with content
Answer:
(a) Left
Exam Tips:
a) The ALIGN attribute of <IMG> can change the position; without it the image appears at the left of the line.
Question 20: _______ is an alternative for centralising a paragraph other than using the <P> tag.
(a) <ALIGN>
(b) <C>
(c) <CENTER>
(d) <CENTRE>
Answer:
(c) <CENTER>
Exam Tips:
a) Note the American spelling "CENTER"; <CENTRE> is not a valid tag.
Question 21: ______ attribute of the <A> tag specifies the URL of the hyperlinked document.
(a) Name
(b) Target
(c) HREF
(d) SRC
Answer:
(c) HREF
Exam Tips:
a) HREF stands for Hypertext REFerence; SRC is used with <IMG>, not with <A>.
Question 22: What does HTML stand for?
Answer:
HyperText Markup Language
Exam Tips:
a) Spell out every word; "Markup" (not "Making") is a common slip.
Question 23: Communication on the web can be classified into _____ and ______.
Answer:
Client to web server communication and Web server to web server communication
Exam Tips:
a) HTTPS is used to protect client-to-server communication; digital certificates are used in server-to-server communication.
Question 24: The protocol which is responsible for splitting the data into smaller packets is _____
Answer:
TCP (Transmission Control Protocol)
Exam Tips:
a) TCP splits data into packets and reassembles them; IP routes the packets. Do not swap their roles.
Question 25: The protocol which is responsible for routing data packets to the correct destination is _____
Answer:
IP (Internet Protocol)
Exam Tips:
a) IP uses the IP address of the destination to route each packet.
Question 26: TCP/IP stands for ________
Answer:
Transmission Control Protocol / Internet Protocol
Exam Tips:
a) Write both expansions separated by the slash.
Question 27: Identify the protocol responsible for e-mail communication.
(a) DNS
(b) HTTP
(c) TCP/IP
(d) SMTP
Answer:
(d) SMTP
Exam Tips:
a) SMTP stands for Simple Mail Transfer Protocol and uses port number 25.
Question 28: In server to server communication, authentication is done with the help of _____
(a) HTTP
(b) Digital certificate
(c) Client
(d) DNS
Answer:
(b) Digital certificate
Exam Tips:
a) Digital certificates are issued by trusted third parties called Certification Authorities.
Question 29: Which server acts between the merchant server and the bank server for transferring data in encrypted format?
Answer:
Payment gateway
Exam Tips:
a) A payment gateway protects card and payment details during online shopping by sending them in encrypted form.
Question 30: Identify the name of a place where servers and networking systems are kept with high security.
(a) Head office
(b) DNS
(c) Data centre
(d) IIS
Answer:
(c) Data centre
Exam Tips:
a) A data centre also has power backup, cooling and high-speed internet connectivity to keep servers running all the time.
Question 31: Identify the port number which handles requests for sending e-mail.
(a) 22
(b) 25
(c) 53
(d) 80
Answer:
(b) 25
Exam Tips:
a) Learn the common ports: 22 – SSH, 25 – SMTP, 53 – DNS, 80 – HTTP, 443 – HTTPS.
Question 32: The IP address corresponding to a domain name is given by the ______ server.
Answer:
DNS (Domain Name System)
Exam Tips:
a) DNS servers translate easy-to-remember domain names into IP addresses.
Question 33: Programs embedded in HTML documents are termed ______
Answer:
Scripts
Exam Tips:
a) Scripts can be client side (e.g. JavaScript) or server side (e.g. PHP, ASP, JSP).
Question 34: Running of ____ scripts can be blocked by the user.
(a) Client side
(b) Server side
(c) Both client side and server side
(d) None of these
Answer:
(a) Client side
Exam Tips:
a) Client-side scripts run in the user's browser, so the user can disable them; server-side scripts run on the server and cannot be blocked by the user.
Question 35: A platform-independent server-side scripting language is ______
Answer:
PHP
Exam Tips:
a) PHP runs on Windows, Linux and other platforms, which is why it is called platform independent.
Question 36: Which among the following tools is used for easy formatting and defining the style of a document written in HTML?
(a) Ajax
(b) CSS
(c) JSP
(d) JavaScript
Answer:
(b) CSS
Exam Tips:
a) CSS stands for Cascading Style Sheets; it separates the style of a page from its content.
Question 37: Pick the odd one from the following list and give the reason. (IMG, FONT, BR, ALIGN, PRE)
Answer:
ALIGN, because it is an attribute; all the others are tags.
Exam Tips:
a) The reason carries the mark in this type of question, so always state it.
Question 38: Choose the correct HTML statement to display an image with the file name "kerala.jpg" as the background of the web page.
(a) <IMG SRC="kerala.jpg">
(b) <BODY BGCOLOR="kerala.jpg">
(c) <BODY SRC="kerala.jpg">
(d) <BODY BACKGROUND="kerala.jpg">
Answer:
(d) <BODY BACKGROUND="kerala.jpg">
Exam Tips:
a) BGCOLOR takes a colour, while BACKGROUND takes an image file; do not confuse the two.
Question 39: Two of the following HTML tags have the same attribute 'Align'. Identify them. (<IMG>, <MARQUEE>, <B>, <P>, <BODY>)
Answer:
<IMG> and <P>
Exam Tips:
a) <B> and <BODY> have no ALIGN attribute, which narrows the choice quickly.
Question 40: Identify the correct HTML statement to draw a horizontal line with half the width of the screen.
(a) <HR WIDTH="50%" SIZE="3">
(b) <HR SIZE="50%" WIDTH="3">
(c) <HR LENGTH="50%" SIZE="3">
(d) <HR WIDTH="50%" LENGTH="3">
Answer:
(a) <HR WIDTH="50%" SIZE="3">
Exam Tips:
a) WIDTH sets the length of the line and SIZE sets its thickness; there is no LENGTH attribute for <HR>.
Question 41: A student wants to display a poem in a web page exactly as he entered it in the text editor. Which HTML tag will help him?
Answer:
<PRE> tag
Exam Tips:
a) <PRE> (preformatted) keeps the spaces and line breaks exactly as typed.
Question 42: A student created a web page about his school. The school name is displayed on the page. He wanted to change the style, colour and size of the school name. Identify the most appropriate HTML tag needed for that.
Answer:
<FONT> tag
Exam Tips:
a) Link each need to an attribute of <FONT>: style – FACE, colour – COLOR, size – SIZE.
Two Mark Questions and Answers
Question 43: A student developed a web page about India. He wanted to display scrolling text moving from the right side to the left side with a blue background colour. The text is "I Love My Country".
1. Identify the tag needed for it.
2. Write the HTML statement to do the task.
Answer:
1. <MARQUEE>
2. <MARQUEE DIRECTION="left" BGCOLOR="blue">I Love My Country</MARQUEE>
Exam Tips:
a) "left" is the default direction of <MARQUEE>, but writing it shows you know the attribute.
b) Close the tag with </MARQUEE>; it is a container tag.
Question 44: Write HTML statements for displaying the following text items:
1. A2B3
2. A>B
Answer:
1. A<SUB>2</SUB>B<SUP>3</SUP>
2. A>B
Exam Tips:
a) <SUB> lowers text (subscript) and <SUP> raises it (superscript).
b) The symbol > must be written as the character entity > because < and > are used for tags.
Question 45: Two HTML tags are given: <BODY> and <FONT>. Identify and write the attributes of each from the following list. (Size, Text, Link, Bgcolor, Color)
Answer:
Attributes of the <BODY> tag: Text, Link and Bgcolor
Attributes of the <FONT> tag: Size and Color
Exam Tips:
a) TEXT in <BODY> sets the colour of text for the whole page, while COLOR in <FONT> sets the colour only for the enclosed text.
Question 46: Write the use of the BORDER and ALT attributes of the <IMG> tag.
Answer:
BORDER: This attribute is used to give a border around an image.
ALT: This attribute is used to give alternate text. When the image is not found in the specified location, or the browser cannot display the image, this text is displayed instead.
Exam Tips:
a) Give a small example: <IMG SRC="school.jpg" BORDER="2" ALT="School photo">.
Question 47: When a client sends a request to a server, the server must know which service is demanded by the client.
1. How does the server identify the type of service requested?
2. Write the name of any one of the services on the web server.
Answer:
1. By the port number.
2. Any one service such as FTP, SMTP or HTTP.
Exam Tips:
a) Each service has its own port number, e.g. HTTP – 80, FTP – 20/21, SMTP – 25; quoting one adds value.
Question 48: The following are the steps for searching the IP address of a domain name by a browser. Rearrange them in the proper order.
1. Look in the local memory of the ISP
2. Look in the DNS servers starting from the root server
3. Look in the local memory of the browser
4. Look in the local memory of the operating system
Answer:
The correct order is 3, 4, 1, 2.
Exam Tips:
a) The search moves from nearest to farthest: browser → operating system → ISP → DNS root server.
Question 49: Categorise the following tags into container tags and empty tags.
<B>, <BR>, <A>, <FRAME>, <FRAMESET>, <LI>, <HR>
Answer:
1. Container tags: <B>, <A>, <FRAMESET>
2. Empty tags: <BR>, <HR>, <LI>, <FRAME>
Exam Tips:
a) Ask yourself whether the tag needs a closing tag like </B>; if not, it is an empty tag.
Question 50: Write the HTML statements to get the following output.
1. Commerce
2. Humanities
Answer:
1. <B>Commerce</B>
2. <I>Humanities</I>
Exam Tips:
a) Look carefully at the output: bold text needs <B> and italic text needs <I>.
Question 51: Write the HTML statements to get the following output.
1. H2SO4
2. a2 + b2
3. Computer
Answer:
1. H<SUB>2</SUB>SO<SUB>4</SUB>
2. a<SUP>2</SUP> + b<SUP>2</SUP>
3. <B>Computer</B>
Exam Tips:
a) Chemical formulas use subscripts (<SUB>); powers in maths use superscripts (<SUP>).
Question 52: Write HTML code to display the following:
The <IMG> tag is used for placing images
Answer:
The <IMG> tag is used for placing images
Exam Tips:
a) If you type <IMG> directly, the browser treats it as a tag and does not show it; use < for < and > for >.
b) Each character entity begins with & and ends with a semicolon.
Question 53: Name some browsers.
Answer:
1. Internet Explorer
2. Netscape Navigator
3. Opera
4. Mozilla Firefox
5. Google Chrome
Exam Tips:
a) Do not list e-mail programs or search engines (like Google Search) as browsers.
Question 54: What is a website?
Answer:
A website is a collection of related web pages. A web page is created using HTML tags.
Exam Tips:
a) You can add that the web pages of a website are linked together and stored on a web server.
Question 55: What is the role of attributes in an HTML tag?
Answer:
Attributes are parameters that give additional information within a tag. Attribute values specify certain characteristics of the tag.
Eg: <P ALIGN="right">
Exam Tips:
a) Attributes are always written inside the opening tag in the form NAME="value".
Question 56: What is HTML?
Answer:
HTML stands for HyperText Markup Language. It is used to create web pages. It has two types of tags: empty tags and container tags. An important rule for container tags is that the tag opened first must be closed last.
Exam Tips:
a) Show correct nesting with an example: <B><I>text</I></B> is right, <B><I>text</B></I> is wrong.
Question 57: Name the main attributes of the <HR> tag.
Answer:
SIZE: specifies the thickness of the line.
WIDTH: specifies the length of the line.
NOSHADE: specifies that no shading is given to the line.
COLOR: specifies the colour of the line.
Exam Tips:
a) WIDTH can be given in pixels or as a percentage of the window, e.g. WIDTH="50%".
Question 58: Mary wants to display her name in various headings. Name the heading tags available in HTML.
Answer:
Headings can be given in six levels, from <H1> to <H6>. The <H1> tag produces the biggest heading and <H6> produces the smallest heading. The heading size reduces step by step from <H1> to <H6>.
Exam Tips:
a) Name all six tags (<H1>, <H2>, <H3>, <H4>, <H5>, <H6>) to be safe.
Question 59: Differentiate between the <FONT> and <BASEFONT> tags.
Answer:
The <BASEFONT> tag sets the normal font for the entire document text. The font specified is taken as the default font for the whole document. Its main attributes are SIZE, FACE and COLOR.
The <FONT> tag defines the font characteristics only for the text enclosed between <FONT> and </FONT>.
So <FONT> changes the font of a selected part of the text, whereas <BASEFONT> specifies the default font for the whole page.
Exam Tips:
a) <BASEFONT> is an empty tag while <FONT> is a container tag; mentioning this adds a clear point of difference.
Question 60: Explain the different types of hyperlinks.
Answer:
The two types of hyperlinks are:
1. External hyperlink: used to connect two different web pages.
2. Internal hyperlink: used to connect different locations within the same web page.
Exam Tips:
a) An internal link needs a NAME for the target location and HREF="#name" in the link.
Question 61: Write the HTML code to display the following list:
o Form
o TextBox
o Label
o Command Button
Answer:
<HTML>
<HEAD>
<TITLE>List</TITLE>
</HEAD>
<BODY BGCOLOR="cyan">
<UL TYPE="circle">
<LI>Form
<LI>TextBox
<LI>Label
<LI>Command Button
</UL>
</BODY>
</HTML>
Exam Tips:
a) The TYPE attribute of <UL> decides the bullet: disc (default), circle or square.
Question 62: The body section forms the content displayed in the browser window. Briefly explain any four attributes of the BODY tag.
Answer:
1. BGCOLOR – sets the background colour of the page.
2. BACKGROUND – sets a picture as the background.
3. TEXT – sets the colour of the text (foreground colour).
4. LEFTMARGIN – sets the left margin of the page.
Exam Tips:
a) LINK, ALINK, VLINK and TOPMARGIN are other attributes you can use if you forget one.
Question 63: HTML has the facility to provide external links as well as internal links.
1. Which tag is used to include an external link?
2. How will you construct an internal link?
Answer:
1. The anchor tag, i.e. <A HREF="filename">
2. An internal link is used to link two places in the same web page. A location is named using the NAME attribute and linked using HREF="#name".
<HTML>
<HEAD>
<TITLE>Internal link</TITLE>
</HEAD>
<BODY BGCOLOR="cyan">
<A NAME="top" HREF="#bottom">Go to Bottom</A>
<UL TYPE="circle">
<LI>Form
<LI>TextBox
<LI>Label
<LI>Command Button
</UL>
<A NAME="bottom" HREF="#top">Go to Top</A>
</BODY>
</HTML>
Exam Tips:
a) The # symbol before the name in HREF tells the browser that the target is inside the same page.
Question 64: Categorise the following HTML tags and write the criterion for the categorisation.
<BR>, <P>, <BODY>, <B>, <HR>, <IMG>
Answer:
The tags are categorised on the basis of whether they need a closing tag.
1. Empty tags (only an opening tag, no closing tag): <BR>, <HR>, <IMG>
2. Container tags (both opening and closing tags): <P>, <BODY>, <B>
Exam Tips:
a) The question asks for the criterion as well; writing only the two groups loses half the marks.
Question 65: Differentiate empty tags and container tags with examples.
Answer:
1. Empty tags: They have only an opening tag and no closing tag.
Eg: <HR>, <BR>
2. Container tags: They have both an opening tag and a closing tag.
Eg: <HTML> </HTML>, <BODY> </BODY>
Exam Tips:
a) Give at least two examples of each type.
Question 66: Write True or False.
1. TEXT is an attribute of the <BODY> tag used to insert text matter in the web page.
2. The <EM> tag functions similar to the <I> tag.
Answer:
1. False (TEXT sets the colour of the text, it does not insert text.)
2. True
Exam Tips:
a) <EM> (emphasis) displays text in italics, just like <I>.
Three Mark Questions and Answers
Question 67: Write and explain any four text formatting tags in HTML.
Answer:
1. <B>: makes the text bold. Eg: <B>Computer Application</B>
2. <I>: makes the text italic. Eg: <I>Computer Application</I>
3. <U>: underlines the text. Eg: <U>Computer Application</U>
4. <S>: strikes out the text. Eg: <S>Computer Application</S>
Exam Tips:
a) Other formatting tags you can use are <BIG>, <SMALL>, <SUB>, <SUP>, <STRONG> and <EM>.
b) Give an example for each tag to get full marks.
Question 68: Match the following.
| A | B | C |
|---|---|---|
| <H2> | Inserting picture | Bgcolor |
| <MARQUEE> | Heading | Src |
| <IMG> | Scrolling text | Align |
Answer:
| A | B | C |
|---|---|---|
| <H2> | Heading | Align |
| <MARQUEE> | Scrolling text | Bgcolor |
| <IMG> | Inserting picture | Src |
Exam Tips:
a) Start with the attribute that belongs to only one tag: SRC goes with <IMG>, which then fixes the other rows.
Question 69: Briefly explain the use of the <Q>, <PRE> and <ADDRESS> tags.
Answer:
1. <Q>: used to display text within double quotes (a short quotation).
2. <PRE>: used to display the content exactly as it was entered in the text editor, keeping spaces and line breaks.
3. <ADDRESS>: used to give information about the author or owner of the document, usually displayed in italics.
Exam Tips:
a) Give a one-line example for each tag if time permits, e.g. <Q>Knowledge is power</Q>.
Question 70: Write HTML code to develop a web page about Kerala State as shown below.
(Figure: a page with the heading "KERALA STATE", below it the subheading "God's Own Country" and the line "Capital: Thiruvananthapuram".)
The specifications for the page are:
1. The main heading must be bigger in size, centralised and bold.
2. Subheadings must be smaller than the main heading and in italics.
3. There should be a picture at the centre of the page with the file name "tree.jpg".
4. The background colour of the page must be blue.
Answer:
<HTML>
<HEAD>
<TITLE>Kerala State</TITLE>
</HEAD>
<BODY BGCOLOR="blue">
<CENTER>
<H1><B>KERALA STATE</B></H1>
<H2><I>God's Own Country</I></H2>
<IMG SRC="tree.jpg">
</CENTER>
<BR>
Capital: Thiruvananthapuram
</BODY>
</HTML>
Exam Tips:
a) Check each specification one by one against your code: heading size, centring, italics, image and background colour.
b) Close tags in the reverse order of opening to keep the nesting correct.
Question 71: PHP is a popular scripting language.
1. Write whether it is client side or server side.
2. Write a brief note on PHP.
Answer:
1. Server side
2. PHP (PHP: Hypertext Preprocessor):
a) It is an open-source, general-purpose scripting language.
b) It is a server-side scripting language.
c) It was introduced by Rasmus Lerdorf.
d) A PHP file is saved with the extension .php.
e) It supports database programming; the database most commonly used with it is MySQL.
f) It is platform independent.
g) On Linux, PHP is commonly run using the LAMP stack (Linux, Apache, MySQL, PHP).
Exam Tips:
a) PHP is a recursive acronym: "PHP: Hypertext Preprocessor".
b) Write at least four points for the note to earn full marks.
Question 72: How does client-side scripting differ from server-side scripting?
Answer:
| Client-side scripting | Server-side scripting |
|---|---|
| The script is copied to the client browser. | The script remains on the web server. |
| It is executed by the client (browser). | It is executed by the server and the result is sent back to the browser window. |
| Used for client-level validation. | Used to connect to the database in the server. |
| It can be blocked by the user. | It cannot be blocked by the user. |
| Depends on the type and version of the browser. | Does not depend on the type and version of the browser. |
Exam Tips:
a) Give examples: JavaScript and VBScript are client side; PHP, ASP and JSP are server side.
b) Write the differences as a table with matching rows; it is easier for the examiner to award marks.
Question 73: Briefly explain the two types of communication on the web.
Answer:
1. Client to web server communication: This communication takes place between a client and a web server (for example, a shopping site). HTTPS technology is used to protect the data transferred from the client to the web server.
2. Web server to web server communication: This communication usually takes place between one web server (the seller) and another web server (normally a bank). For safe transactions, digital certificates issued by third-party agencies (Certification Authorities) are used.
Exam Tips:
a) Use the online shopping example to explain both types; it shows clearly where each one happens.
b) Mention the payment gateway, which handles the data transfer between the merchant server and the bank server.
Question 74: Compare static and dynamic web pages.
Answer:
| Static web pages | Dynamic web pages |
|---|---|
| Content and layout are fixed. | Content and layout may change frequently. |
| Do not use a database. | A database is used. |
| Run directly by the browser. | Run on the server, and the result is sent back to the client (browser). |
| Easy to develop. | Not so easy to develop. |
Exam Tips:
a) An example helps: a page showing a school's address is static, while a page showing exam results for a roll number is dynamic.
Question 75: Differentiate between empty tags and container tags.
Answer:
There are two types of tags: empty tags and container tags.
1. Empty tag: It has only an opening tag and no closing tag.
Eg: <BR>, <HR>
2. Container tag: It has both an opening tag and a closing tag, and it encloses some text or other content.
Eg: <HTML>, <HEAD>, <BODY>
Exam Tips:
a) Do not confuse "opening/closing tag" (parts of a tag pair) with "empty/container tag" (types of tags).
Question 76: Create a web page using HTML to display the following message.
'The symbol H2O represents water'
Answer:
<HTML>
<HEAD>
<TITLE>Subscript</TITLE>
</HEAD>
<BODY>
<B>'The symbol H<SUB>2</SUB>O represents water'</B>
</BODY>
</HTML>
Exam Tips:
a) The 2 in H2O needs the <SUB> tag; this is the key step of the answer.
Question 77: While designing a web page, Neena wants to explain the meaning of each step. Can you help her?
Answer:
Neena can use comments while writing the code. Using comments is a good programming practice. Comments improve readability and are not displayed as part of the page. A comment begins with <!-- and ends with -->.
Eg:
<!-- This page displays information -->
<HTML>
<!-- Head section -->
<HEAD>
<TITLE>Subscript</TITLE>
</HEAD>
<!-- Body section -->
<BODY>
<B>The symbol H<SUB>2</SUB>O represents water</B>
</BODY>
</HTML>
Exam Tips:
a) A comment can be placed anywhere in the code, and the browser simply ignores it.
Question 78: Complete the following table.
| RGB code | Colour name |
|---|---|
| #0000FF | .......... |
| .......... | Yellow |
| #FF0000 | .......... |
| #00FF00 | .......... |
| .......... | White |
| .......... | Black |
Answer:
| RGB code | Colour name |
|---|---|
| #0000FF | Blue |
| #FFFF00 | Yellow |
| #FF0000 | Red |
| #00FF00 | Green |
| #FFFFFF | White |
| #000000 | Black |
Exam Tips:
a) The code is #RRGGBB: two hexadecimal digits each for red, green and blue, from 00 (none) to FF (full).
b) Yellow is red + green (#FFFF00); all FF gives white and all 00 gives black.
Question 79: Give the HTML code to display the sentence "WELCOME TO HTML" as a centralised heading in red colour.
Answer:
<HTML>
<HEAD><TITLE>My page</TITLE></HEAD>
<BODY>
<FONT COLOR="RED">
<H1 ALIGN="CENTER">WELCOME TO HTML</H1>
</FONT>
</BODY>
</HTML>
Exam Tips:
a) ALIGN="CENTER" in the heading tag centres it; COLOR in <FONT> gives the red colour.
Question 80: Explain the main attributes of the FONT tag.
Answer:
The <FONT> tag defines the font properties of the text enclosed in it. Its main attributes are:
1. FACE – specifies the type of font.
2. COLOR – specifies the colour of the enclosed text.
3. SIZE – specifies the font size.
Eg: <FONT FACE="Arial" SIZE="3" COLOR="magenta">
Exam Tips:
a) SIZE takes values from 1 to 7; give one example tag using all three attributes.
Question 81: John visited a website and found that when he clicked on a particular text, the browser opened a new web page. Name the feature and identify the tag used for this purpose. Write the HTML code to link to a file named "main.html".
Answer:
1. Hyperlinking. By clicking on hypertext we can go to other web pages or to another section of the same document.
2. The <A> tag is used.
3. <A HREF="main.html">Main</A>
Exam Tips:
a) Answer all three parts separately: the feature, the tag and the code.
Question 82: Antony visited his school website. He could not see the picture of his school; instead there was a text message "Your browser could not support images". Why did this happen? Write the HTML code for this.
Answer:
This happened because the browser he used could not load or display the image. In such cases the text given in the ALT attribute of the <IMG> tag is displayed.
<IMG SRC="D:\school.jpg" ALT="Your browser could not support images">
Exam Tips:
a) Write the ALT value inside double quotes after an equal sign.
Question 83: Suppose you want to display a picture named school.jpg located in the 'Photos' subdirectory of the directory 'My documents' on the C drive in your web page.
1. Name the tag used for this purpose.
2. Write the HTML code for the web page.
Answer:
1. The <IMG> tag. It is used to display images in a web page.
2. Code for the web page:
<HTML>
<HEAD><TITLE>School</TITLE></HEAD>
<BODY>
<IMG SRC="C:/My documents/Photos/school.jpg">
</BODY>
</HTML>
Exam Tips:
a) Give the full path of the image in SRC, including the drive and folder names.
Five Mark Questions and Answers
Question 84: Explain the main list tags in HTML.
Answer:
HTML provides three basic types of lists: unordered list, ordered list and definition list.
1. Unordered list:
An unordered list shows the list items with bullet symbols in front. The tags <UL> and </UL> enclose an unordered list, and each list item is given by the <LI> tag. The TYPE attribute of <UL> can take the values square, circle or disc. The default type is disc.
Eg:
<UL>
<LI>COMPUTER
<LI>BIOLOGY
</UL>
2. Ordered list:
In an ordered list, the list items are numbered in sequence. The tags <OL> and </OL> enclose an ordered list, and list items are given by the <LI> tag. The TYPE attribute of <OL> can take these values:
a) TYPE = 1 for 1, 2, 3, ...
b) TYPE = i for i, ii, iii, ...
c) TYPE = I for I, II, III, ...
d) TYPE = a for a, b, c, ...
e) TYPE = A for A, B, C, ...
Eg:
<OL>
<LI>COMPUTER
<LI>BIOLOGY
</OL>
3. Definition list:
It is formed by a group of terms and their descriptions. No bullet or number is given for the items. The tags <DL> and </DL> enclose the definition list. The <DT> tag contains the term and the <DD> tag gives its description.
Eg:
<DL>
<DT>E-cheque
<DD>Electronic cheque
</DL>
Exam Tips:
a) For a five-mark answer, explain all three lists and give a code example for each.
b) Mention the START attribute of <OL>, which sets the starting number, as an extra point.
c) Remember that <DL> uses <DT> and <DD>, not <LI>.
Question 85: Explain the use of the <BODY> tag and list any four of its attributes.
Answer:
The contents of a web page are given in the body section, which is enclosed by <BODY> and </BODY>. The attributes of the BODY tag are:
1. BGCOLOR – specifies the background colour of the document body.
Eg: <BODY BGCOLOR="RED">
2. BACKGROUND – sets an image as the background of the document body.
Eg: <BODY BACKGROUND="C:\result.jpg">
3. TEXT – specifies the colour of the text content of the page.
Eg: <BODY TEXT="Red">
4. LINK – specifies the colour of hyperlinks that have not yet been visited by the user.
5. ALINK – specifies the colour of the active hyperlink (the link being clicked).
6. VLINK – specifies the colour of hyperlinks that have already been visited by the viewer.
Eg: <BODY ALINK="Cyan" LINK="Magenta" VLINK="Orange">
7. LEFTMARGIN and TOPMARGIN – set the margin from the left and the top of the document window.
Exam Tips:
a) Even though four attributes are asked, explaining the use of the BODY tag first is part of the question.
b) Give an example line for at least two attributes.
Free study material for Computer Science
Free Kerala Board Textbook Explanations: Class 12 Computer Science Chapter 04 Web Technology
Chapter Exercise Answers for Class 12 Computer Science
Access structured Kerala Board textbook solutions for Chapter 04 Web Technology. Designed in alignment with the latest academic curriculum for Class 12 Computer Science, these answers cover all end-of-chapter exercises to support daily learning and homework completion.
Detailed Answer Guides for Chapter 04 Web Technology
Clear, methodical explanations accompany every challenging problem within the Class 12 Computer Science text. Engaging with these detailed answers lays a solid foundation for advanced learning and improves foundational clarity for upcoming assessments.
Complete Preparation Kit for Class 12 Exams
Consistent practice with these solution guides cultivates faster problem-solving habits and clearer logical structuring. For a complete preparation experience, pair these textbook answers with our dedicated revision notes and sample papers for Class 12 Computer Science.
FAQs
The complete and updated Kerala Plus Two Computer Science Chapter 4 Web Technology Questions and Answers is available for free on StudiesToday.com. These solutions for Class 12 Computer Science are as per latest Kerala Board curriculum.
Yes, our experts have revised the Kerala Plus Two Computer Science Chapter 4 Web Technology 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.
Toppers recommend using Kerala Board language because Kerala Board marking schemes are strictly based on textbook definitions. Our Kerala Plus Two Computer Science Chapter 4 Web Technology Questions and Answers will help students to get full marks in the theory paper.
Yes, we provide bilingual support for Class 12 Computer Science. You can access Kerala Plus Two Computer Science Chapter 4 Web Technology Questions and Answers in both English and Hindi medium.
Yes, you can download the entire Kerala Plus Two Computer Science Chapter 4 Web Technology Questions and Answers in printable PDF format for offline study on any device.