Maths Internet Lab
Maths Internet Lab
AIM :
ALGORITHM :
Step 3: Open the <html> tag with the appropriate language attribute (lang="en").
Step 4: Inside the <head> section, set the character set and viewport.
Step 7: Use various text formatting tags within the body to demonstrate their effects.
Step 10: Open the file in a web browser to see the formatted text.
<head >
</head>
<body>
</body>
</htm>
OUTPUT :
RESULT :
Thus the html program was executed successfully and the result is verified.
Ex :No: 2
Aim :
To design a web page with links to different pages and allows navigation between
web pages.
ALGORITHM :
Step 3: Create content for each page and link the each page used href attribute used
<a> tag .
Step 6 Open the file in a web browser to see the navigation between the web pages.
Navigation.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Navigation </title>
</head>
<body>
<h1>Welcome to My Website!</h1>
<nav>
<ul>
<li><a href="kerala.html">Kerala</a></li>
<li><a href="delhi.html">Delhi</a></li>
<li><a href="tamilnadu.html">Tamilnadu</a></li>
</ul>
</nav>
</body>
</html>
Kelala.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>kerala</title>
</head>
<body>
<h1>Welcome to kerala!</h1>
<img src="kerala.jpeg"width="600">
<br>
<a href="navigation.html">Home</a>
<br>
<a href="delhi.html">Next</a>
</nav>
</body>
</html>
Delhi.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Delhi</title>
</head>
<body>
<h1>Welcome to Delhi</h1>
<nav>
<p> Delhi is a city and a union territory of India containing New Delhi, the capital
of India.</p>
<img src="delhi.jpg"width="600">
<br>
<a href="navigation.html">Home</a>
<br>
<a href="tamilnadu.html">Next</a>
</nav>
</body>
</html>
Tamilnadu.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tamilnadu</title>
</head>
<body>
<h1>Welcome to Tamilnadu!</h1>
<nav>
<p>Tamil Nadu is the southernmost state of India.The capital and largest city is
Chennai.</p>
<img src="tamilnadu.jpeg"width="600">
<br>
<a href="navigation.html">Home</a>
<br>
<a href="navigation.html">Exit</a>
</nav>
</body>
</html>
OUTPUT :
Navigation.html
RESULT :
Thus the html program was executed successfully and the result is verified.
Ex :No: 3
AIM :
To design a web page demonstrating all style sheet types .
ALGORITHM :
Step 1: Start with the basic HTML structure .
Step 2: Inline Style: Applied directly to an HTML element using the style attribute.
Step 3: Internal Style: Defined within the <style> element in the HTML <head> .
Step 4: External Style: Linked to an external CSS file using the <link> element in the
HTML <head>.
Step 7: Open the file in a web browser to see the formatted text.
Style sheet.html
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</body>
</html>
External.css
.external-style
body
text-align: center;
h2
{
font-style: bold italic;
font-size:60px;
OUTPUT :
RESULT :
Thus the html program was executed successfully and the result is verified.
Ex :No: 4
AIM :
To design a web page with image maps.
ALGORITHM :
Step 1: Start with the basic HTML structure.
Step 2:Use the <map> tag to define the clickable area on the image.
Step 4:With in each <area> tag specify the href attribute to link the area to another
Step 5: Use the <map> tag to insert the image into your html document.
Step 8: Open the file in a web browser to see the image maps.
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<h1>Image Map</h1>
<map name="examplemap">
</map>
</body>
</html>
OUTPUT :
RESULT :
Thus the html program was executed successfully and the result is verified.
Ex :No: 5
Date : SEMANTICS
AIM :
To design a web page demonstrating different semantics.
ALGORITHM :
Step 1: Start with the basic HTML structure.
Step 2:Open the <body> tag to start the body section of the html document .
Step 3: Use the <header> tag to define the header section of the web page, including
<h1> tag .
Step 6:Use the <footer> tag to define the footer section of the web page.
Step 7: Open the file in a web browser to see the different semantics.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Semantic HTML Example</title>
<style>
body
{
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
header, nav, section, article, aside, footer {
padding: 20px;
margin-bottom: 20px;
background-color: #f0f0f0;
border: 1px solid #ccc;
}
</style>
</head>
<body>
<header>
<h1>This is a Header</h1>
<p>Some introductory text goes here.</p>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<section>
<h2>This is a Section</h2>
<article>
<h3>Article 1</h3>
<p>This is the content of article 1.</p>
</article>
<article>
<h3>Article 2</h3>
<p>This is the content of article 2.</p>
</article>
</section>
<aside>
<h2>This is an Aside</h2>
<p>Some additional information goes here.</p>
</aside>
<footer>
<p>© 2024 My Website. All rights reserved.</p>
</footer>
</body>
</html>
OUTPUT :
RESULT :
Thus the html program was executed successfully and the result is verified.
Ex :No: 6
Date : TABLES
AIM :
To design a web page with different tables.
ALGORITHM :
Step 1: Start with the basic HTML structure.
Step 2:Open the <body> tag to start the body section of the html document .
Step 3: Use the <header> tag to define the header section of the web page, including
<h1> tag .
Step 5: Include various table elements , like <tr >, <th >,<td> represent different part
of content .
Step 6:Use the <colspan> ,<rowspan>tag to define the combined cells of the table .
Step 7: Open the file in a web browser to see the time table.
<!DOCTYPE html>
<html>
<body>
<tr>
</tr>
<tr>
<td align="center"height="50"><b>monday</b></td>
<td align="center"height="50">ss</td>
<td align="center"height="50">eng</td>
<td align="center"height="50">web</td>
<td align="center"height="50">la</td>
<td rowspan="8"align="center" height="50">
<h3>L<br>U<br>N<br>C<br>H<br><br>B<br>R<br>E<br>A<br>K<br></h
3></td>
<td align="center"height="50">tam</td>
<td align="center"height="50">tt</td>
</tr>
<tr>
<td align="center"height="50"><b>tuesday</b></td>
<td align="center"height="50">la</td>
<td align="center"height="50">web</td>
<td align="center"height="50">eng</td>
<td align="center"height="50">tt</td>
<td align="center"height="50">ss</td>
<td align="center"height="50">tam</td>
</tr>
<tr>
<td align="center"height="50"><b>wednesday</b></td>
<td align="center"height="50">ss</td>
<td align="center"height="50">la</td>
<td align="center"height="50">tam</td>
<td align="center"height="50">web</td>
<td align="center"height="50">eng</td>
<td align="center"height="50">nme</td>
</tr>
<tr>
<td align="center"height="50"><b>thursday</b></td>
<td align="center"height="50">la</td>
<td align="center"height="50">ss</td>
<td align="center"height="50">tt</td>
<td align="center"height="50">web</td>
<td align="center"height="50">eng</td>
<td align="center"height="50">la</td>
</tr>
<tr>
<td align="center"height="50"><b>friday</b></td>
<td align="center"height="50">ss</td>
<td align="center"height="50">tt</td>
<td align="center"height="50">eng</td>
<td align="center"height="50">tam</td>
</tr>
<tr>
<td align="center"height="50"><b>saturday</b></td>
<td align="center"height="50">tt</td>
<td align="center"height="50">eng</td>
<td align="center"height="50">tam</td>
<td align="center"height="50">web</td>
<td align="center"height="50">la</td>
<td align="center"height="50">ss</td>
</tr>
</table>
</body>
</html>
OUTPUT :
RESULT :
Thus the html program was executed successfully and the result is verified.
Ex :No: 7
AIM :
To design a web page with a form that uses all types of input controls.
ALGORITHM :
Step 1: Start with the basic HTML structure.
Step 2:Open the <body> tag to start the body section of the html document .
Step 3: Use the <header> tag to define the header section of the web page, including
<h2> tag .
Step 5: Include various input control elements , <select >, <label >,<input types>
Step 6:Use the checkbox and radio buttons to the selection purpose of the form .
Step 7: Open the file in a web browser to see the input control form.
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<h2>STUDENT DATA</h2>
<input type="text"id="text_input"name="text_input"><br><br>
<input type="text"id="text_input"name="text_input"><br><br>
<label for="Female">Female</label>
<label for="Male">Male</label><br><br>
<input type="date"id="date_input"name="date_input"><br><br>
<select id="'select_input"name="select_input">
<option value="select">select</option>
</select><br><br>
<input type="checkbox"id="checkbox_input"value="checkbox_value">B.Sc
(Maths)<br>
<input type="checkbox"id="checkbox_input"value="checkbox_value">
B.Sc(CS)<br>
<input type="checkbox"id="checkbox_input"value="checkbox_value">BCA
<br>
<input type="checkbox"id="checkbox_input"value="checkbox_value">B.Sc
(chemistry)<br>
<input type="checkbox"id="checkbox_input"value="checkbox_value">
B.Com <br><br>
<label for="number_input">Mobile Number:</label>
<input type="number"id="number_input"name="number_input"><br><br>
</body>
</html>
OUTPUT :
RESULT :
Thus the html program was executed successfully and the result is verified.
Ex :No: 8
AIM :
To design a web page embedding with multimedia features.
ALGORITHM :
Step 1: Start with the basic HTML structure ..
Step 2: Open the <body> tag to start the body section of the html document .
Step 3: Use the <header> tag to define the header section of the web page, including
<h1> tag .
Step 5: Use the <video> and <audio> elements to embed video and audio on your
pages.
Step 8: Open the file in a web browser to see the image maps.
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<h1>Embedding image</h1>
<img src="computer.jpg"alt="image"width="300"height="300">
<br>
<br>
</video>
<br>
<br>
<h1>Embedding Audio</h1>
<audio controls>
</audio>
</body>
</html>
OUTPUT :
RESULT :
Thus the html program was executed successfully and the result is verified.
Ex :No: 9
AIM :
To write a JavaScript program to find the factorial value.
ALGORITHM :
Step 1: Start with the basic HTML structure .
Step 2: Open the <body> tag to start the body section of the html document .
Step 6: The loop iterates from 1 to the entered number (i=1; i<=a; i++).
Step 9: Open the file in a web browser to see the image maps.
<!DOCTYPE html>
<html>
<body>
<script>
function factorial()
var fact=1,i;
for (i=1;i<=a;i++)
fact=fact*i;
</script>
<form>
</form>
</body>
</html>
OUTPUT :
RESULT :
Thus the java script program was executed successfully and the result is verified.
Ex :No: 10
AIM :
To write a JavaScript program to print the Fibonacci series.
ALGORITHM :
Step 1: Start with the basic HTML structure .
Step 2: The button has an onclick attribute that triggers the fibonacci() function when
clicked.
Step 5: it calculates the next Fibonacci number (fib) by adding the previous two
Step 6: It uses a while loop to generate the Fibonacci series up to the specified length.
Step 9: Open the file in a web browser to see the image maps.
<!DOCTYPE html>
<html>
<body>
<script>
function fibonacci ()
var a=0,b=1,fib=0,n,i;
document.write (a+"<br>"+b+"<br>");
i=2;
while (i<n)
fib=a+b;
document.write (fib+"<br>");
a=b;
b=fib;
i++;
</script>
<form>
<input type ="button" value="fibonacci" title="fibonacci series"
onclick="fibonacci()";>
</form>
</body>
</html>
OUTPUT :
RESULT :
Thus the java script program was executed successfully and the result is verified.
Ex :No: 11
AIM :
To design a form and validate all the controls placed on the form using Java Script.
ALGORITHM :
Step 1: Start with the basic HTML structure .
(onsubmit="return validateForm()").
Step 5: If the name field is empty (x == ""), it displays an alert message: “Name must
be filled out”.
Step 8: Open the file in a web browser to see the image maps.
<!DOCTYPE html>
<html lang="en">
<head>
<title>Form Validation</title>
</head>
<body>
<label for="name">Name:</label>
<br>
<label for="email">Email:</label>
<br>
<label for="password">Password:</label>
<br>
</form>
</body>
</html>
OUTPUT :
RESULT :
Thus the java script program was executed successfully and the result is verified.
Ex :No: 12
AIM :
To write a JavaScript program to display all the prime numbers between 1 to 100.
ALGORITHM :
Step 1: Start with the basic HTML structure .
Step 2: Open the <body> tag to start the body section of the html document .
Step 3: Use the <header> tag to define the header section of the web page, including
<h1> tag .
Step 6: The PrimeNumbers array is populated with prime numbers up to 100 using the
getPrimes(100) function.
Step 9: Open the file in a web browser to see the image maps.
<script>
RESULT :
Thus the java script program was executed successfully and the result is verified.
Ex :No: 13
AIM :
To write a JavaScript program to accept a number from the user and display the
sum of digits.
ALGORITHM :
Step 1: Start with the basic HTML structure .
Step 2: Open the <body> tag to start the body section of the html document .
Step 3: A button labeled “Calculate Sum” that triggers the calculateSum() function
when clicked.
Step 5: The getSum(number) function calculates the sum of digits for the given
number.
Step 9: Open the file in a web browser to see the image maps.
<!DOCTYPE html>
<html>
<head>
<title>Sum of Digits</title>
</head>
<body>
<p id="result"></p>
<script>
function calculateSum()
function getSum(number)
sum = 0;
return sum;
</script>
</body>
</html>
OUTPUT :
RESULT :
Thus the java script program was executed successfully and the result is verified.
Ex :No: 14
AIM :
To write a program in JavaScript to accept a sentence from the user and display
the number of words in it.
ALGORITHM :
Step 1: Start with the basic HTML structure .
Step 2: Open the <body> tag to start the body section of the html document .
Step 3: A button labeled “Calculate Sum” that triggers the calculateSum() function
when clicked.
Step 5: A button labeled “Count Words” that triggers the countWords() function when
clicked.
Step 6: The countWords() function is called when the user clicks the “Count Words”
button (onclick="countWords()").
Step 9: Open the file in a web browser to see the image maps.
<script>
function countWords() {
let text = document.getElementById("textInput").value;
let count = 0, inWord = false;
document.getElementById("wordCount").textContent = "Words:
" + count;
}
</script>
</body>
</html>
OUTPUT :
RESULT :
Thus the java script program was executed successfully and the result is verified.
Ex :No: 15
Date : CALCULATOR
AIM :
To write a JavaScript program to design simple calculator.
ALGORITHM :
Step 1: Start with the basic HTML structure .
Step 2: Open the <body> tag to start the body section of the html document .
Step 3: A button labeled “Calculate Sum” that triggers the calculateSum() function
when clicked.
Step 5: operator buttons (+, -, *, /), add the operator to the input value.
Step 6: The equals button (=), evaluate the expression using eval() and display the
Step 9: Open the file in a web browser to see the image maps.
<!DOCTYPE html>
<html lang="en">
<head>
<title>JavaScript Calculator</title>
<style>
h2 {
text-align: center;
padding: 23px;
color: white;
#clear {
width: 270px;
border-radius: 3px;
padding: 20px;
.formstyle {
width: 300px;
height: 600px;
margin: auto;
padding: 20px;
input {
width: 20px;
border-radius: 5px;
padding: 26px;
margin: 5px;
font-size: 15px;
#calc {
width: 250px;
border-radius: 3px;
padding: 20px;
margin: auto;
</style>
</head>
<body>
<form name="form1">
<br><br>
<br><br>
<br><br>
<br><br>
<br>
</form>
</div>
</body>
</html>
OUTPUT :
RESULT :
Thus the java script program was executed successfully and the result is verified.