Ques 1. Write A HTML Code To Display The Different Paragraphs With Different Alignments. Solution
Ques 1. Write A HTML Code To Display The Different Paragraphs With Different Alignments. Solution
Solution:
<html>
<head>
</head>
<body>
<p align="right">The purpose of a web browser is to read HTML documents and compose them into
visual or audible web pages.</p>
</body>
</html>
OUTPUT:
Ques2. Write a HTML code to display your syllabus. Use at least three Container tags and
empty tags.
Solution:
<html>
<head>
<title>syllabus</title>
</head>
<body>
<center><h1>IITM - JP</h1></center>
<hr>
<br><br>
1. Taxation Law
<br><br>
2. Business Law
<br><br>
3. Computer Application
<br><br>
4. Marketing Research
<br><br>
<hr>
</body>
</html>
OUTPUT:
Ques3. Write a HTML code to print the quadratic equation as follows: ax2+bx+c = 0
Solution:
<html>
<head>
<title>quadratic equation</title>
</head>
<body>
<h2><p>ax<sup>2</sup>+bx+c = 0</p></h2>
</body>
</html>
OUTPUT:
Ques4. Write a HTML code which display the following expression. Put the heading as
“Chemical Equation” : 4H3PO3 = 3H3PO4 + PH3 and the other expression as: Pnew = Pold + x2 -
yacosx
Solution:
<html>
<head>
<title>chemical equation</title>
</head>
<body>
<h1><p>Chemical Equation:</p></h1>
<br>
P<sub>new</sub> = P<sub>old</sub>+x<sup>2</sup>-y<sup>acosx</sup></p></h2>
</body>
</html>
OUTPUT:
Ques5. Create a web page describing you. Use <block quote> to display address, for sub
headings <pre> tag and use <em> tag wherever you are using numbers.
Solution:
<html>
<head>
<title>Aparajita</title>
</head>
<body>
<h1><p>MYSELF:</p></h1>
<pre><h2><p>Introduction:</p></h2></pre>
<br>
<pre><h2>Address:</h2></pre>
</body>
</html>
OUTPUT:
Ques6. Create a web page describing your friend, where default font size should be 6 and
friend’s name should be moving front and back. Assign a suitable background color and text
color.
Solution:
<html>
<head>
<title>friends</title>
</head>
<basefont="6">
<h1><p>MY FRIEND:</p></h1>
<br>
she is a very sweet person. She is very dear to me. My frends help me whenever I need them</p>
<hr>
</body>
</html>
OUTPUT:
Ques7. Create a web page document that the shows the usage of div and span tag. By
changing the background color, font size and border.
Solution:
<html>
<head>
<title>div/span</title>
</head>
<body>
<span style="background-color:green">Hello</span>
<br>
</body>
</html>
OUTPUT:
Ques8. Create a web page document that shows the usage of different attributes of font.
Solution:
<html>
<head>
<title>attributes of font</title>
</head>
<body>
<br>
<br>
</body>
</html>
OUTPUT:
Ques9. Write a HTML code to display the information about your house using ordered list.
(like features of your house, vehicles you own, etc.)
Solution:
<html>
<head>
<title>ordered list</title>
</head>
<body>
<p><h1>My House</h1></p>
<h2><ol type="1">
</body>
</html>
OUTPUT:
Ques10. Write code to display the name of planets using different type of unordered list.
Solution:
<html>
<head>
<title>ordered list</title>
</head>
<body>
<p><h1>Planets:</h1></p>
<h2><ul>
<li type="disc">Murcury
<li type="square">Venus
<li type="circle">Mars
<li type="square">Saturn
<li type="disc">Uranus
<li type="square">Neptune
<li type="circle">Pluto</h2>
</body>
</html>
OUTPUT:
Ques11. Write a HTML code to produce the following output:
A. Vegetables
Onion
Potato
B. Fruits
Mango
Grapes
Solution:
<html>
<head>
</head>
<body>
<h2><ol type="A">
<li>Vegetables
<ul type="disc">
<li>Onion
<li>Potato
</ul>
<li>Fruits
<ul type="square">
<li>Mango
<li>Grapes>
</ul>
</ol></h2>
</body>
</html>
OUTPUT:
Ques12. Write a HTML code to display the following list:
Newspapers
1. Times of India
2. Hindustan Times
3. Navbharat Times
Magazines
1. The week
2. India Today
Solution:
<html>
<head>
<title>Journals</title>
</head>
<body>
<h2><ul type="disc">
<li>Newspapers
<ol type="1">
<li>Times of India
<li>Hindustan Times
<li>Navbharat Times
</ol>
<li>Magazines
<ol type="i">
<li>The Week
<li>India Today
</ol>
</ul></h2>
</body>
</html>
OUTPUT:
INSTITUTE OF INNOVATION IN
TECHNOLOGY AND MANAGEMENT
HTML
Submitted to:
Mr. Hemant
Assistant Professor
Submitted by:
Aparajita Mukherjee
00290401709
BBA(G) M1