You are on page 1of 10

HTML

MCQ
1. Long form of HTML is ______

2. BORDER is attribute used in __________ tag of HTML


a)<PRE> b)<ADDRESS> c)<TABLE> d)<CAPTION
3. ____________tag is used to put a line break in HTML code

a)<HR> b)<BR> c)<P> d)<LI>


4. In html for red colour ,RGB code is
a)#00 00 00 b) #ff 00 00 c) #00 ff 00 d) #00 00 ff
5_________tag is used to create a row in a table
a) <tr> b)<th> c)<ch> d)<td>
6. 1)BULLETTED list in html is created by___________tag
i)<ul> ii)<ol> iii)<b> iv)<br>
7. An attribute which defines URL of document to be linked in <A> tag is
_____________
i)RFF ii)VREF iii)HREF iv)ALT
ANS IN SHORT
1.Give function of following tags with an example each
a)<IMG>
b)<EM> c)<DL>
2.advantages and disadvantages of html
3. Explain any three tags in HTML which do not have ending tags
4.Explain the structure of HTML webpage with a diagram
5. Explain <ol> and <ul>tag used in html with example.
6.. Explain the following HTML tags with an example of each:
i)<pre>
ii)<br>
iii)<sub>
CODES
Q] Write the output of the following HTML code
1) <html>
<body>
<h1 align=”center”>HSC Board Exam </h1>
<p align=”center”> <i> Subject:Computer Science </i></p>
<p align=”center”> <b> Theory and Practical Exam </b></p>
<p align=”center”> <u>Total </u> __________ 200 marks</p>
</body>
</html>

2) <HTML>
<HEAD><TITLE> abc </TITLE> </HEAD>
<body>
<H1 align=”Center” > KBC Restuarant </H1>
<Table border=2>
<tr><th rowspan=2> <font size =”5”>Pavbhaji</font>
</th>
<td> with cheese </td>
<td> 35</td>
</tr>
<tr>
<td> without cheese</td>
<td>25</td>
</tr>
</table>
</body>
</html>
3)<html>
<title> Introduction </title>
<body>
<h1><b> Computer Science </b> </h1>
<hr>
<u>Paper-I </u>
<hr>
<u>Paper-I </u>
<hr>
<u>Paper – II </u>
</body>
</html>
4)
<html>
<body>
<ul type="circle">
<li>two
<li>three
<ul type ="square">
<li>Monday
<li>Tuesday
<li>Wednesday
</ul>
</ul>
</body>
</html>
5) <html>
<body>
<ol start=”110”>
<li>English</li>
<li>second language
</ol>
<ol type=”a”>
<Li>compulsory</li>
<li>optional</li>
</ol>
<ul type=”square”>
<li>science</li>
<li>arts</li>
<li>commerce</li>
</ul>
</body>
</html>
6) <html>
<body>
<table border=”3” cellspacing=”10”>
<tr>
<th colspan=”3” >stream</th>
</tr>
<tr>
<td>
<a href=”science.html”> science </a>
</td>
<td>
<a href=”commerce.html”>commerce</a>
</td>
<td>
<a href=”arts.html”>arts</a>
</td>
</table>
</body>
</html>
Q)Write the html code for the following output

1. i)Arts
A.History
B.Geography
ii)Science
I. Computer Science
II.Physics
iii)Commerce
O English
O Accounts

2.
Year Students
Boys Girls Total
2004 25 30 55
2005 80 25 105
3.Write html code for the following output

College h1 and center


Principal
• Vice Principal
• Professors
• Non-teaching staff

For more details click here


(The words click here act as hyperlink to next page whose address is “C:\my
documents\A1.html”)

4.

Computer science Paper I Paper II Total

100 100 200

5.
Cricket Analysis
Country Played Won Lost
India 30 27 03
Pakistan 30 03 27
6.

My page

HTML is hypertext Markup language.The basic language of


HTML is ASCII code.
The start tag and end tag

This is only text oriented language


▪ One
▪ two

1. one
2. two

7.
Subject paper 1 paper2

computer theory 50 50
science
practical 50 50
HSC EXAM SCHEME
8)

You might also like