0% found this document useful (0 votes)
29 views

Assignment 1 Complete Solution

The document contains an HTML assignment with 5 questions and answers. Question 1 demonstrates how to display text in bold, italic, and underlined formats. Question 2 shows how to create moving text with different marquee behaviors and directions. Question 3 uses background color and line break tags in a simple page. Question 4 applies a background image. Question 5 designs a page listing the BCA syllabus over 3 years using various list tags.

Uploaded by

Keshava Dhrita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Assignment 1 Complete Solution

The document contains an HTML assignment with 5 questions and answers. Question 1 demonstrates how to display text in bold, italic, and underlined formats. Question 2 shows how to create moving text with different marquee behaviors and directions. Question 3 uses background color and line break tags in a simple page. Question 4 applies a background image. Question 5 designs a page listing the BCA syllabus over 3 years using various list tags.

Uploaded by

Keshava Dhrita
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

HTML

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 behavior="slide" direction="left">


I will go from right to left and stop there.
</marquee>

<marquee behavior="scroll" direction="up">


I will go upwards 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:

You might also like