Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
9 views41 pages

Wad Labs File

The document contains a series of questions and tasks related to creating HTML web pages and JavaScript programs. It includes instructions for displaying text, images, lists, forms, and implementing CSS styles. Additionally, it covers basic JavaScript functionalities such as arithmetic operations, sorting arrays, and user input handling.

Uploaded by

gameamazono10
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)
9 views41 pages

Wad Labs File

The document contains a series of questions and tasks related to creating HTML web pages and JavaScript programs. It includes instructions for displaying text, images, lists, forms, and implementing CSS styles. Additionally, it covers basic JavaScript functionalities such as arithmetic operations, sorting arrays, and user input handling.

Uploaded by

gameamazono10
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/ 41

Q1. Create a simple HTML page using basic tags.

 HTML CODE :-

 WEBPAGE:-
Q2. Create a web page that displays your name to
the screen.

 HTML CODE:-

 WEBPAGE:-

ROHIT MAJUMDER
Q3. Create a web page and show the WEBPAGE
from 1 to 10 in separate lines.

 HTML CODE:-

 WEBPAGE:-
Q4. Create a web page and show the
WEBPAGE from 1 to 10 in separate lines, each
number being in different color.

 HTML CODE:-

 WEBPAGE:-
Q5. How do I make a picture as a background on
my web pages?

 HTML CODE:-

 WEBPAGE:-
Q6. Create a web page to print a paragraph with
4-5 sentences, each sentence shall have a
different font.

 HTML CODE:-

 WEBPAGE:-
Q7. Write HTML HTML CODE to print a paragraph
that is description of a book, it shall include the title
of the book, its author name; name and title should
be underlined and all adjectives shall be bold and
Italics.

 HTML CODE:-
 WEBPAGE:-
Q8. Write HTML HTML CODE to print your name
using Heading tag, every letter shall be of different
heading size.

 HTML CODE:-

 WEBPAGE:-
Q9.Write HTML code to print the sequence of
numbers 1-20. Each number shall be in different
line with number 2 next to it as subscript, an
equal sign and the result.
 HTML CODE:-
 WEBPAGE:-
Q10. Write HTML code to display an image with
border of size with width 200, height 200 pixels,
leaving Hspace and Vspace of your choice with
image hanging in the right side on the screen.
 HTML CODE:-

 WEBPAGE:-
Q11. Write HTML code to create a web page with
heading. The heading shall be displayed at the
top-center of the page and the image shall be at
the centre, just below the heading.
 HTML CODE:-

 WEBPAGE:-
Q12. Write a HTML code using multimedia tags
Q:13 Create a Table using Rowspan and
Colspan taking example of student
Record.
Q14.
Write HTML code using table tag <table> and
cellpadding and cell spacing as its attributes.
HTML CODE:
Q:15 Create unordered, ordered and definition
Lists taking example of your subjects in BCA
IST, IInd and IIIrd Semester .
Q16. Write a HTML code using <frame> and
<framest> tag

OUTPUT
Q:17 Write HTML code to design a form in HTML
using controls and buttons such as Teaxtbox,
Textarea, password, submit button, browse button,
drop-down menu .
Q18 & 19 Write an create a registration form :
Q:20 Create a proper home page of your own
using any components and styles.
Q20 & 21. Create a HTML code to create a
internal hyperlink
OUTPUT

Q22. Create a HTML code including External


hyperlink.
OUTPUT
Q:24 Write code to show External CSS with HTML
CODE
Q:25 Write code to show Internal CSS with HTML
code.

Q:26 Write code to show Inline CSS with HTML


code.
Q 27.Write a program to add two numbers using form in
JavaScript.
<!doctype html>
<html>
<head>
<title>Add Two Numbers</title>
<script>
var numOne = 10;
var numTwo = 20;
var sum = numOne+numTwo;
document.write("Sum = " + sum);
</script>
</head>
<body>

Save this code in a file with .html extension. Open the file in a web
browser. Here is the output you will see:
Q28 .Write a program in JavaScript to swap two
images.

<!DOCTYPE html>
<html>
<body>
<h2>What Can JavaScript Do?</h2>
<p>JavaScript can change HTML attribute values.</p>
<p>In this case JavaScript changes the value of the src (source) attribute of an
image.</p>
<button onclick="document.getElementById('myImage').src='pic_bulbon.gif'">Turn
on the light</button>
<img id="myImage" src="pic_bulboff.gif" style="width:100px">
<button onclick="document.getElementById('myImage').src='pic_bulboff.gif'">Turn off
the light</button>
</body>
</html>
Q29. Write a simple JavaScript program to sort an
array.

Sample array : var arr1 = [ -3, 8, 7, 6, 5, -4, 3, 2, 1 ];


Sample Output : -4,-3,1,2,3,5,6,7,8
var arr1=[-3,8,7,6,5,-4,3,2,1];
var arr2=[];
var min=arr1[0];
var pos;
var max=arr1[0];
for (i=0; i<arr1.length; i++)
{
if (max<arr1[i]) max=arr1[i];
}

for (var i=0;i<arr1.length;i++)


{
for (var j=0;j<arr1.length;j++)
{
if (arr1[j]!="x")
{
if (min>arr1[j])
{
min=arr1[j];
pos=j;
}
}
}
arr2[i]=min;
arr1[pos]="x";
min=max;
}
console.log(arr2);

OUPTUT:

[-4,-3,1,2,3,5,6,7,8]
Q 30Write a JavaScript program to take as input three numbers
from the user. Find the minimum and maximum of the three
numbers. Print the following output in BOLD in the following
format:
MINIMUM = MAXIMUM =

Output:
Enter first number: 54
Enter second number: 53
Enter third number: 65
The largest number is 65

You might also like