Assignment 1 Complete Solution
Assignment 1 Complete Solution
Assignment 1 Complete Solution
Assignment 1
Question 1:
<!-- Write an HTML code to display text in bold, italic and
underlined. -->
Ans:-
<html>
<head>
<title>Bold-Italic-Underline</title>
</head>
<body>
<b>Bold Text</b><hr>
<i>Italic Text</i><hr>
<u>Underlined Text</u><hr>
</body>
</html>
Output:
Question 2:
<!-- Write an HTML code to display moving text -->
Ans:-
<html>
<head>
<title>Moving Text</title>
</head>
<body>
<h1>Moving text</h1>
<marquee behavior="alternative" direction="right">
I am moving from left to right continuously.
</marquee>
<marquee direction="down">
I will go downwards.
</marquee>
</body>
</html>
Output:
Question 3:
<!-- Design an HTML page using background colour and line
break tags. -->
Ans:-
<html>
<head>
<title>
Using Background Colour and line break tags
</title>
</head>
<body bgcolor="antiquewhite">
<p>This page's colour is AntiqueWhite</p>
<br>
<p>I have used line break tag above.</p>
</body>
</html>
Output:
Question 4:
<!-- Design a HTML page using Background Image -->
Ans:-
<html>
<head>
<title>
Using Background image
</title>
</head>
<body background="image.jfif">
<h1>Used an image as background</h1>
</body>
</html>
Output:
Question 5:
<!-- Desin a page to display the BCA Syllabus of Three years by
using list tag (LI, OL, UL, DD & DL). -->
Ans:-
<html>
<head>
<title>
Syllabus till third year
</title>
</head>
<body>
<div style="text-align: center;">
<u> <h1>Karim City College</h1> </u>
<u> <h2>BCA Syllabus</h2> </u>
</div>
<ol>
<li><h3>First Year</h3>
<ul>
<li> <h4>BCA 101 </h4>
<dl>
<dt>Mathematics:</dt>
<dd>Successive differentiation, Leibnitz
Theorem, Taylor’s theorem.</dd>
</dl>
<b>Faculties:</b>
<ol>
<li>Prof. Yashmin Banu</li>
</ol>
</li>
</ul>
</li>
<li>
<h3>Second Year</h3>
<ul>
<li>
<h4>BCA 201</h4>
<dl>
<dt>Data Structures & C++:</dt>
<dd>A First look at a C++ Program,
Variables and Constants, Arithmetic Expressions.</dd>
</dl>
<b>Faculties:</b>
<ol>
<li>Prof. Md. Asghar Ali</li>
</ol>
</li>
</ul>
</li>
<li>
<h3>Third Year</h3>
<ul>
<li>
<h4>BCA 301</h4>
<dl>
<dt>Scientific Computing:</dt>
<dd>Numbers and their accuracy,
Errors and their Computations- Absolute.</dd>
<b>Faculties:</b>
<ol>
<li>Prof. S.S.Sastry</li>
</ol>
</li>
</ul>
</li>
</ol>
</body>
</html>
Output: