HTML Practical File - Chapter 8 Short Answer Type Questions
HTML Practical File - Chapter 8 Short Answer Type Questions
Ans. <HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
Ans. <HTML
<HEAD>
</HEAD>
<BODY>
<P> < and < and > & are special characters that are displayed
</BODY>
</HTML>
(C) link colour of the page should be GREEN’ and visited link colour be BLUE’.
(D) all font face in the page are ARIAL and BLACK except the heading !!MAHARAJA!!, which is in COURIER
face and of RED colour.
Indian dishes: vegetarian dishes as Indian.html internally named VEG non vegetarian dishes as
Indian.html internally named NONVEG
Continental dishes: vegetarian dishes as continental.html internally named VEG non vegetarian
disesascontinental. Html internally named NONVEG
(G) the horizontal rule before the bottom message of size “5” with NOSHADE attribute. Note: you can
assume any other attributes which are not otherwise mentioned above to produce a similar output.
Ans. <HTML>
<HEAD>
COLOR = “BLACK” SIZE = “5” <PALIGN=”ALIGN CENTER”> (a restaurant) </P> <BR> <ul type=”disc”> <LI>
India dishes </LI> <OL TYPE = “1”> <li>
<A HREF = “Indian. Html.# veg”> vegetarian dishes </A> </LI> <A HREF = INDIAN. Html#NONVEG”> non
vegetarian dishes</A>
Q.2. write the HTML code for the following web page as seen on the internet explorer. The details are
given below: note the following points while generating the web page.
(D) size of test of text is 7 and the title “computer, history and maths” will be in ordered list.
(F) their colour is black and thickness is 10 pixels. They are not shaded.
(G) the list items are hyperlinks and the linked files are:
</title> </head>
<HR size = “10” color = “black”> <H4> India’s leading publications house </H4>
</LI <LI>
<BR> <BR> <BR> <center> design by <BR> M.saif Naqvi </center> </font> </body>
</HTML>
Q.3. consider the following points while writing the code. Background of the page is “pink”, link colour is
green, active link colour is blue and visited link colour is red. Title of the page is “social networking”
heading of the page is maroon image used is “SN.jpg” 1st paragraph colour is purple and size is 5 second
paragraph colour is black and size is 5. Caption of table is blue table border is blue and of size 2. The 4
links are one.html,two.html,three.html and [email protected].
<CENTER><H1> <FONT COLOR z=” maroon”> what is social networking?</font> </H1> </center> <IMG
SRC = “SN.jpg” ALIGN = “right” HEIGHT = 125 width = 250> <font color = “purple” size = 5>
Social networking is the grouping of individuals into specific groups like small rural communities or a
neighbourhood subdivision, if you will. Although social networking is possible in person, especially in
schools or in the workplace, it is most popular online.
</FONT> </P> <FONT COLOR = “black” size = 5> when it comes to online social networking, websites are
commonly used. These websites are known as social sites. </FONT><P> <CENTER><TABLE BORDER = 2
BORDERCOLOR = “blue” CELLSPACING = 5 > <FONT COLOR = “BULE”>
<CAPTION> list of major social networking websites </CAPTION> <TR> NAME </TH><TH> description /
focus </TH></TR> <TR> <TD> advogato </TD><TD> free and open source software developers </TD>
</TR> <TR> <TD> ANoblii </TD> <TD> books </TD> </TR>
<TR>
<TD> avatars united </TD> <TD> online games </TD> </TR> </TABLE> </CENTER>
<BR>
<UL><LI> <A> HREF = “one.html”> social networking and websites </A> <LI>
<A HREF = “two.html”> starting your own network </A> <LI> <A HREF= mailto:[email protected]”> us </A>
</UL>
</BODY>
</HTML>
Q.4. create a simple web page using HTML giving user of carbohydrates along with their source. Set the
following properties in the web page:
Paragraph text should be in green and justified. Font size should be large and font should be comic sans
MS.
Heading level one should be centre-aligned, blue colored, in uppercase, and in arial font.
<html>
<head>
P {color: green; text-align; justify; text-height: 8; font-family:” comic sans Ms;” font-size: large}
</style>
</head>
<body>
<hr>
<p> carbohydrates provide energy to the body. Some of the sources of carbohydrates are rich, fruits,
bread, corn, honey, and whole grains. </p>
</body>
</html>
Q.5. create two linked pages providing information on the structure of an atom. You should be able to
move from one page to another and back. The following details should be present on both the pages
respectively.
Page1: this page should give details about the structure of atom, as proposed by the scientist J. J.
Thomson. The name J. J. Thomson should be hyperlinked to the second page
Ans. let us create the first page detailing the structure of an atom and providing a hyperlink to the
second page. We have named this web page as atom html.
Atom.html
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h2> the structure of an atom </h2>
Structure of atom, as proposed by the scientist <A href = Thomson. Html> J.J Thomson. </A>
<p> <A model for the structure of an atom. He proposed that: </p>
<ul>
<li> an atom consists of a positively charged sphere and the electrons are embedded in it, </li>
<li> the negative and positive charges are equal in magnitude, </li>
</ul>
</body>
</html>
The following is the HTML code for the second page, which gets displayed on clicking the hyperlink in
the page atom html. This page is named as Thomson html, as given is the code for atom html.
Thomson. Html
<!DOCTYPE html>
<html>
<head>
</dead>
<body>
Physicist, was born in Cheetham hill. A suburd of Manchester, in December 1856. He. Was awarded
the noble prize in physics in 1906 for his work on the discovery of electrons. </p>
</body>
</html>
Q.6. create a web page to demonstrate how to create a link within the same page.
<html>
<body>
<p> an object continues to be in a state of rest or of uniform motion along a straight line unless acted
upon by an unbalanced force.</p>
<br> <br>
<h2> second law of motion </h2> <br> <br> <p> the rate of change of momentum of an object is
proportional to the applied unbalanced force in the direction of force. </p> <br> <br>
<P> to every action, there is an equal and opposite reaction and they act on two different bodies. </p>
<br> <br>
</body> </html>
Ans.HTML Code:
<html>
<body>
<CAPTION>
<TR>
/TR>
<TR>
<TR>
</TR>
<TR>
</TR>
<TR>
</TR>
<TR>
<TD> align = “center”>IV</TD>
</TR>
<TR>
</TR>
<TR>
</TR>
<TR>
</TR>
</TABLE>
</body>
</html>
Output:
I Mathematics 2 4 4 0 8
II Science 6 0 2 6 8
III English 6 4 8 0 12
IV Social 8 2 4 8 14
science
V Languages 10 4 4 6 14
VI Computer 10 4 4 6 14
applications
Total 42 18 26 26 70
Q.8. create a static web page which defines all text formatting tags of HTML in tabular format code
Ans. <html>
<body>
<center>
<caption align = “top”><font size = “+2” color = “red”> text formatting tags</font></caption>
<tr>
</tr>
cbsepractice.in
<tr>
</tr>
<tr>
Hell world
</font></td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</body>
</html>
Output:
Q.9. create employee registration webpage using HTML form object code:
Ans. <html>
<body>
<center>
<BR>
<table>
<tr>
<td></td>
</tr><tr>
</tr><tr>
</tr><tr>
</tr>city<tr>
</tr><tr>
</select>
</td>
</tr><tr>
<td> zip</td>
</tr> <tr>
<td>E-Mail </td>
</tr> <tr>
</tr> <tr>
Checked>Tamil</td>
</tr><tr>
<td> </td>
</tr><tr>
<td></td>
</tr><tr>
<td></td>
</tr><tr>
</tr><tr>
<td></td>
<td> <input type = submit value = submit> <input type = reset value = reset> </td>
</table>
</form>
</body>
</html>
Q.10. apply style sheet in web page. [inline, embedded and linked] code
Ans. ext.css
Hr
{Color:sienna;}
{margin-left:20px;}
Body
{background-image: url(“sheet.jpg”);}
Stylesheet.html
<html>
<head>
<style>
H1
{background color:#6495ed;}
{background color:#e0ffff;}
Div
{background color:#b0c4de;}
</style>
</head>
<body>
</div>
</body>
<html>