CAMLAB
CAMLAB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>www.techstudy.org</title>
</head>
<body>
<font color="green">1</font><br>
<font color="blue">2</font>
<font color="gray">3</font>
<font color="#008080">4</font>
<font color="#0008B">5</font>
<font color="brown">6</font>
<font color="#dcdcdc">7</font>
<font color="#800000">8</font>
<font color="purple">9</font>
<font color="#688e23">10</font></body>
</html>
2. Use table tag to format web page. Also create the Time Table of your class using table tag
<html>
<head>
<title>time table</title>
</head>
<body bgcolor="skyblue">
<H1><FONT COLOR="DARKCYAN"><CENTER>COLLEGE TIME
TABLE</FONT></H1>
<table border="2" cellspacing="3" align="center">
<tr>
<td align="center">
<td>9:00-10:00
<td>10:00-11:00
<td>11:00-11:30
<td>11:30-12:30
<td>12:30-1:30
<td>1:30-2:30
</tr>
<tr>
<td align="center">SATURDAY
<td align="center">---<td align="center">PYTHON<br>
<td align="center">CAM<br>
<td rowspan="5"align="center">B<br>R<br>E<br>A<br>K<br>
<td align="center">IC<br>
<td align="center">BLS<br>
</tr>
<tr>
<td align="center">SUNDAY
<td align="center">ENG<br>
<td align="center">CAM<br>
<td align="center">PYTHO<br>
<td align="center">---
<td align="center">FEA<BR>
</tr>
<tr>
<td align="center">MONDAY
<td align="center">CAM<br>
<td align="center">FEA<BR>
<td align="center">ARB/KAN<br>
<td colspan="3" align="center">LAB
</tr>
<tr>
<td align="center">TUESDAY
<td align="center">CAM<br>
<td align="center">PYTHON<br>
<td align="center">FEA<BR>
<td align="center">---
<td align="center">IC<br>
</tr>
<tr>
<td align="center">WEDNESDAY
<td align="center">CAM<BR>
<td align="center">FEA<br>
<td align="center">ENG<br>
<td align="center">---
<td align="center">BLS<br>
</tr>
<tr>
<td align="center">THURSDAY
<td align="center">PYTHON<br>
<td colspan="3" align="center">EVENTS
<td align="center">--<br>
<td align="center">--<br>
</tr>
</body>
</html>
3. Print a paragraph that is a description of a book, include the title of the book as
well as its author. Names and titles should be underlined, adjectives should be
italicized and bolded
<!DOCTYPE html>
<html lang="en">
<head>
<title>Book</title>
</head>
<body>
<h1><u>Invisible Man</u></h1><br>
<p>
unnamed African American narrator.<br>Set in the early 20th century, the story
delves into themes of identity, race, and social injustice. Through its
of racism and discrimination, while also celebrating the resilience and strength
<strong><em>unforgettable</em></strong>
</p>
</body>
</html>
Output:
4. Print the squares of the numbers 1 - 20. Each number should be on a separate line, next to it the
number 2 superscripted, an equal sign and the result. (Example: 10^2= 100)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>www.techstudy.org</title>
</head>
<body>
1<sup>2</sup> = 1
<br />
2<sup>2</sup> = 4
<br />
3<sup>2</sup> = 9
<br />
4<sup>2</sup> = 16
<br />
5<sup>2</sup> = 25
<br />
6<sup>2</sup> = 36
<br />
7<sup>2</sup> = 49
<br />
8<sup>2</sup> = 64
<br />
9<sup>2</sup> = 81
<br />
10<sup>2</sup> = 100
</br>
11<sup>2</sup> = 121
<br />
12<sup>2</sup> = 144
<br />
13<sup>2</sup> = 169
<br />
14<sup>2</sup> = 196
</br>
15<sup>2</sup> = 225
<br />
16<sup>2</sup> = 256
<br />
17<sup>2</sup> = 289
<br />
18<sup>2</sup> = 324
<br />
19<sup>2</sup> = 361
<br />
20<sup>2</sup> = 400
</body>
</html>
</html>
Output:
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.card{
width: 1000px;
height: 600px;
background: url(/https/www.scribd.com/image1.jpg)
.card:hover{
background: url(/https/www.scribd.com/image2.jpg);
transition: 0.8s;
</style>
</head>
<body>
<div class="card"></div>
</body>
</html>
Output
7. Setting the font type of text Setting the font size of text, Setting
the font color of text, Setting the font style of text Using CSS
<!DOCTYPE html>
<html lang="en">
<head>
<title>Font</title>
</head>
<style>
p{
font-size: 30px;
color: blueviolet;
font-style: italic;
</style>
<body>
</body>
</html>
Output:
<html lang="en">
<head>
<title>Image</title>
</head>
<style>
body{
background-image: url(/https/www.scribd.com/background.jpeg);
background-size: cover;
h1{
font-size: 145px;
</style>
<body>
<h1>Welcome to AIMCA</h1>
</body>
</html>
Output:
<html>
<body>
<svg width="400" height="110">
<rect
width="300"
height="100"
style="
fill: rgba(0, 217, 255, 0.719);
stroke-width: 3;
stroke: rgb(0, 0, 0);
"
/>
</svg>
<br />
<svg width="400" height="110">
<line
x1="0"
y1="0"
x2="200"
y2="200"
style="stroke: rgb(255, 0, 0); stroke-width: 2"
/>
</svg>
</body>
</html>
Output:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Date</title>
</head>
<body>
<script type="text/javascript">
var hh = today.getHours();
var mm = today.getMinutes();
var ss = today.getSeconds()
</script>
</body>
</html>
Output:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Converter</title>
</head>
<body>
<script type="text/javascript">
document.write(f+"F")
</script>
</body>
</html>
Output:
Converted Temperature :
37.4F
11. Write a program to create line and rectangle using HTML5 SVG
<html>
<body>
<svg width="400" height="110">
<rect
width="300"
height="100"
style="
fill: rgba(0, 217, 255, 0.719);
stroke-width: 3;
stroke: rgb(0, 0, 0);
"
/>
</svg>
<br />
<svg width="400" height="110">
<line
x1="0"
y1="0"
x2="200"
y2="200"
style="stroke: rgb(255, 0, 0); stroke-width: 2"
/>
</svg>
</body>
</html>
Output:
<html>
<body>
<svg height="210" width="500">
<polygon
points="200,10 250,190 160,210"
style="fill: lime; stroke: purple; stroke-width: 1"
/>
</svg>
<svg height="180" width="500">
<polyline
points="0,40 40,40 40,80 80,80 80,120 120,120 120,160"
style="fill: white; stroke: red; stroke-width: 4"
/>
</svg>
</body>
</html>
Output:
<html>
<body>
<svg height="210" width="500">
<polygon
points="100,10 40,198 190,78 10,78 160,198"
style="
fill: rgb(145, 45, 128);
stroke: rgb(0, 128, 117);
stroke-width: 5;
fill-rule: nonzero;
"
/>
</svg>
</body>
</html>
Output:
14. Write a program to create a Line and Rectangle
<html>
<body>
<script>
const c = document.getElementById("myCanvas");
ctx.beginPath();
ctx.lineWidth = "6";
ctx.strokeStyle = "purple";
ctx.stroke();
ctx.beginPath();
ctx.moveTo(250, 200);
ctx.lineTo(10, 200);
ctx.lineWidth = 5;
ctx.strokeStyle = 'blue';
ctx.stroke()
</script>
</body>
</html>
Output:
15. Write a program to create Bezier Curves
<html>
<body>
<script>
const c = document.getElementById("myCanvas");
ctx.beginPath();
ctx.moveTo(20, 20);
ctx.lineWidth="6";
ctx.strokeStyle="red";
ctx.stroke();
</script>
</body>
</html>
Output:
16. Write a program to create Draw Linear Gradient
<html>
<head>
</head>
<body>
<script>
gradient.addColorStop(0, 'purple');
gradient.addColorStop(1, 'pink');
ctx.fillStyle = gradient;
</script>
</body>
</html>
Output:
17. Write a program to rectangle translation
<html>
<body>
<script>
var c = document.getElementById("myCanvas");
ctx.fillStyle="yellow";
ctx.translate(20, 20);
ctx.fillStyle="orange";
ctx.translate(20,20);
ctx.fillStyle="green";
</script>
</body>
</html>
Output:
18. Write a program to rectangle rotation
<html>
<body>
<script>
const c = document.getElementById("myCanvas");
ctx.fillRect(30,20,100,50);
ctx.fillStyle="yellow";
</script>
</body>
</html>
Output:
19. Write a program to rectangle scaling using canvas
html>
<body>
<script>
const c = document.getElementById("myCanvas");
ctx.scale(2,2);
ctx.scale(2, 2);
ctx.scale(2, 2);
</script>
</body>
</html>
Output: