A Summer Internship Report
A Summer Internship Report
REPORT
Submitted by
226480307057
DIPLOMA
in
information technology
Sigma University,Vadodara
[August ,2024]
Page | 1
COMPLETION LETTER
Page | 2
Sigma University
CERTIFICATE
This is to certify that the In-Plant Training report submitted along with training
entitled Web Development has been carried out by Parmar Dev under my
year 2024-25.
Page | 3
DECLARATION
I hereby declare that the In-Plant Training report submitted along with training
Sigma University, Vadodara under the supervision of Prof. Shreyas Patel and
that no part of this report has been directly copied from any students, reports or
Page | 4
ACKNOWLEDGEMENT
We would never have been able to finish our project without the guidance of our
guides, help from friends. Non-technical staff and support from our family. We are
grateful and would like to express our sincere gratitude to our guide, Zinal Prajapati
from Computer Department for her ideas and suggestions, invaluable guidance,
continuous encouragement, his tolerance of our naive mistakes and constant support.
We would like to acknowledge all his comments and suggestions, which was
crucial for the successful completion of this this he has also been abundantly
helpful and has assisted us in numerous ways.
We also appreciate to Shreyas Patel for his valuable advice and inputs which helped
us to deal with The laws and work towards the solution efficiently. We feel highly
privileged to give our sincere gratitude and indebtedness to , Sigma University
Page | 5
Contents
1 Introduction of Domain . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3 Introduction of JAVASCRIPT . . . . . . . . . . . . . . . . . . . . . 17
3.1 Introduction of JS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1.1 Concept of JS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.1.2 Features of JS. . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.1.3 Applications of JS. . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.2 Link JS File in HTML . . . . . . . . . . . . . . . . . . . . . . . . 19
3.3 Flow Control in JS . . . . . . . . . . . . . . . . . . . . . . . . 21
3.3.1 If – Else Statement. . . . . . . . . . . . . . . . . . . . . . 21
3.3.2 Write a JS program to used a If – Else Statement . . . . . . . . 22
3.4 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.4.1 Let Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.4.2 Var Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.4.3 Const Variable. . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4. Programs of JS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.1 Write a simple JS Program to change the image . . . . . . . . . . . . . . . 29
4.2 Write a Program to used the background properties using CSS. . . . . . . 31
5 Conclusion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Page | 6
Chapter – 1
Introduction of Domain
Page | 7
1.1 INTRODUCTION
The first popular Web browser with a Graphical User Interface, Mosaic, was
released in 1993. Accessible to non-technical people, it played a prominent
role in the rapid growth of the early World Wide Web. The lead developers
of Mosaic then founded the Netscape corporation, which released a more
polished browser, Netscape Navigator, in 1994. This quickly became the
most-used.
The goal was a "language for the masses", "to help nonprogrammers create
[15]
dynamic, interactive Web Sites ". Netscape management soon decided
that the best option was for Eich to devise a new language, with syntax
similar to Java and less like Scheme or other extant Scripting language.
Although the new language and its Interpreter implementation were
called LiveScript when first shipped as part of a Navigator Beta in
September 1995, the name was changed to JavaScript for the official
release in December.
1.2 OBJECTIVES
Page | 8
1.5 To reduce the space being used
Page | 9
Chapter 2
Page | 10
2.1 HTML
HTML stands for Hyper Text Mark-up Language. It is used to design
web pages using mark-up language. HTML is the combination of
Hypertext and Mark-up language. Hypertext defines the link between
the web pages. Mark-up language is used to define the text document
within tag which defines the structure of web pages. HTML5 is the
fifth and current version of HTML. It has improved the mark-up
available for documents and has introduced application programming
interfaces (API) and Document Object Model (DOM).
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading of my page.</h1>
<p>Hello, My Name Is OWT!</p>
</body>
</html>
Output :
Page | 11
2.1 CSS
The following example sets the text color of the < h1> element
to blue, and the text color of the <p> element to red:
<!DOCTYPE html>
<html>
<body>
<h1 style="color:blue;">Blue Ball</h1>
<p style="color:red;">Red Apple.</p>
</body>
</html>
Output :
Page | 12
2.2.2 INTERNAL CSS
<!DOCTYPE html>
<html>
<head> <style>
body
{background-
color: pink;}
h1 {color:
blue;} p
{color: brown;}
</style>
</head>
<body>
<h1>Internal CSS</h1>
<p>It's a type of CSS.</p>
</body>
</html>
Output :
Page | 13
2.2.3 EXTERNAL CSS
An External style sheet is used to define the style for many HTML pages.
The external style sheet can be written in any text editor. The
file must not contain any HTML code, and must be saved with
a .css extension.
• Here is what the "styles.css" file looks like:
sbody {
background-color: powderblue;
} h1 {
color:
blue; } p {
color: red;
}
To use an external style sheet, add a link to it in the <head> section of each
HTML page:
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="custom.css">
</head>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Output :
Page | 14
2.2.2 CSS Hover Effect
Select and style a <p>, <h1> and <a> element when you mouse over it:
<!DOCTYPE html>
<html>
<head>
<style>
p:hover, h1:hover, a:hover {
background-color: yellow;
}
</style>
</head>
<body>
<h1>Welcome to My Homepage</h1>
<div class="intro">
<h2 id="firstname">My name is Kuldeep</h2>
<p id="hometown">I live in Surat</p>
<p>My <b>best</b> friend is Hetal Rathod</p>
</div>
<h2>Links:</h2>
<p>Here are my favorite websites:</p>
<a href="https://www.google.com">Google</a>
<a href="http://www.disney.com" target="_blank">Disney</a>
<a href="http://www.wikipedia.org" target="_top">Wikipedia.org</a>
<p><b>Note:</b> Mouse over paragraphs, headers, and
links to see what is getting a style.</p>
</body>
</html>
Output :
Page | 15
2.2.5 SCOPE OF THE PROJECT
Page | 16
Chapter 3
Page | 17
2.1 Introduction of JAVA SCRIPT
JavaScript’s history began in 1993 with the creation of the first popular web
browser, Mosaic. In 1994, Netscape, founded by Marc Andreessen, sought to make
the web more interactive by adding a programming language to web pages.
Brendan Eich was hired to develop this language, initially planning to use Scheme.
However, after Netscape merged with Sun Microsystems, they decided to
incorporate Java into their browser to compete with Microsoft. To avoid confusion
between the new scripting language and Java, Netscape named the scripting
language ―LiveScript,‖ later changing it to ―JavaScript‖ in December 1995. The
first version was called ―Mocha‖ by Marc Andreessen but was renamed to
―JavaScript‖ due to trademark and other reasons.
Page | 18
These are the 7 concepts:
Scope
IIFE
Hoisting
Clousers
Callbacks
Promises
Asyncs & Await
3.1.3 Application of JS
Syntax :
<script>
// JavaScript Code
</script>
Example :
<!DOCTYPE html>
<html lang="en">
<head>
<title>
Basic Example to
Describe JavaScript
</title>
</head>
<body>
<script>
console.log("Welc
ome to My
homieee"); </script>
</body>
</html>
Output :
• Control flow
o Conditional statements
Page | 21
3.3.2 Write a JS Program to used if-else Statement
if ( true ) {
const
myString =
"True.";
console.log(
myString );
}
> "True."
If the condition inside the parentheses
evaluates to false, the statement that follows
it is ignored:
if ( false ) console.log( "True." );
An else keyword immediately following an if
statement and its conditionally-executed
statement specifies the statement to be executed
if the if condition evaluates to false:
if ( false )
console.log(
"True." )'' else
console.log(
"False" );
> "False."
• Input :
o Output
You failed the examination.
3.4 Variables
Syntax :
//Declaration using
var var geek = "Hello
Geek"
// Declaration
using let let $ =
"Welcome"
Page | 23
3.4.1 Let Variables
Syntax :
Example :
console.log
(a);
console.log
(b);
console.log
(c);
console.log
(d);
Page | 24
Output :
Hello
learners
joining
12
joining 12
Syntax :
var name1;
var name1 = value1;
var name1 = value1,
name2 = value2; var
name1, name2 =
value2;
var name1 = value1, name2, /* …, */ nameN = valueN;
Page | 25
Example :
console.lo
g(a);
console.lo
g(b;
console.lo
g(c);
console.lo
g(d);
Output :
Hello
Dear
10
12
22
Syntax :
Example :
const b = 400;
console.log(b);
const c = "12";
console.log(c);
c = "new"
console.log(c)
Output :
Page | 27
Chapter 4
Programs Of JS
Page | 28
4.1 Write a simple JS program to change the image.
Input :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<title>date 5 practice</title>
<style>
*{
margin: auto;
padding: 0;
box-sizing: border-box;
}
body{
height: 100vh;
justify-content: center;
align-items: center;
display: flex;
}
.container{
background-color: rgb(199, 33, 228);
width: 250px;
height: 250px;
padding: 20px;
}
.container img{
width: 100%;
height: 100%;
}
Page | 29
img{
width: 300px;
height: 300px;
}
</style>
</head>
<body>
<button onclick="aaistha()">LOG IN</button>
<button onclick="aaisth()">but</button> <div
id="maincontainer" class="container">
<img id="fimg" src="img/kanha.jpg"
alt=""> </div>
<script>
function aaistha(){
document.getElementById("fimg").src="img/radha.jpg";
}
function aaisth(){
document.getElementById("fimg").src="img/kanha.jpg";
}
</script>
</body>
</html>
Output :
Page | 30
4.2 Write a JS program to give the two inputs from the user and perform
thearithmetic operation.
Input :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<title>Document</title>
</head>
<body>
<input type="text" placeholder="enter a number" id="namejpg">
<input type="text" placeholder="enter a number" id="namejpeg">
<label for="hie" id="namelbl">Arithmatic operation
demo</label> <button onclick="mode()">+</button>
<button onclick="mode1()">-</button>
<button onclick="mode2()">*</button>
<button onclick="mode3()">/</button>
<script>
function mode(){
document.getElementById("namelbl").innerText=(parseInt(doc
ument.getElementById("namejpg").value)+parseInt(document.getElem
entById("namejpeg").value));
}
function mode1(){
document.getElementById("namelbl").innerText=(parseInt(doc
ument.getElementById("namejpg").value)-
parseInt(document.getElementById("namejpeg").value));
}
function mode2(){
document.getElementById("namelbl").innerText=(parseInt(doc
ument.getElementById("namejpg").value)*parseInt(document.getElem
entById("namejpeg").value));
Page | 31
}
function mode3(){
document.getElementById("namelbl").innerText=(parseInt(doc
ument.getElementById("namejpg").value)/parseInt(document.getEleme
ntById("namejpeg").value));
}
</script>
</body>
</html>
Output :
Page | 32
Chapter 5
Conclusion
Page | 33
Conclusion
Page | 34