Web Design Internship Report
Web Design Internship Report
MOOC PROJECT /
REPORT FILE
ON
CSS & JavaScript
NAME :OSHAN MANHAS
ROLLNO : 221103032
BRANCH :COMPUTER ENGINEERING
SEMESTER :3rd
Submitted to :
HOD
Computer Engineering Department
An endeavor over a long period can be successful only with the advices and support of
many well wishers. I take this opportunity to express my gratitude and appreciation to all
who helped me to complete my course.
First of all I express my gratitude and indebtness to Udemy – Online Courses for their
keen intrest and timely suggestions by which it has been possible for me to complete my
course well with in limited period of time.
I am very grateful to respected principal of G.C.E.T Dr. Sameru Sharma , [Link] Dutta
H.O.D of Computer Department for granting me permission to fulfill my course.
Lat but not the least I’m thankful to my parents and friends who emboldened me when I
was in despair, without their patronization this work would not have been viable.
Submitted by
OSHAN MANHAS
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
functions of
the software
or application.
For example-
PHP,
Java etc.
Nowadays
there are also
some
frameworks
that use
vastly.
Frameworks
are basically
structured
programming
by
using Model,
View and
Controller. It is
also called as
MVC. If
we develop
web based
application
that is very
useful for us
because we
can access it
from anywhere
in the world. It
is very
helpful for our
daily life. That
is why I choose
subject of my
report as “WEB
DESIGN”.
Training in
Universal
Informatics
added huge
experiences in
my upcoming
career. Solving
real
life problems
was another
key issue.
This report
takes us
through all the
details of
WEBSITE
DESIGN
knowledge and
experience
gathered
during this
internship
period.
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
functions of
the software
or application.
For example-
PHP,
Java etc.
Nowadays
there are also
some
frameworks
that use
vastly.
Frameworks
are basically
structured
programming
by
using Model,
View and
Controller. It is
also called as
MVC. If
we develop
web based
application
that is very
useful for us
because we
can access it
from anywhere
in the world. It
is very
helpful for our
daily life. That
is why I choose
subject of my
report as “WEB
DESIGN”.
Training in
Universal
Informatics
added huge
experiences in
my upcoming
career. Solving
real
life problems
was another
key issue.
This report
takes us
through all the
details of
WEBSITE
DESIGN
knowledge and
experience
gathered
during this
internship
period.
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
functions of
the software
or application.
For example-
PHP,
Java etc.
Nowadays
there are also
some
frameworks
that use
vastly.
Frameworks
are basically
structured
programming
by
using Model,
View and
Controller. It is
also called as
MVC. If
we develop
web based
application
that is very
useful for us
because we
can access it
from anywhere
in the world. It
is very
helpful for our
daily life. That
is why I choose
subject of my
report as “WEB
DESIGN”.
Training in
Universal
Informatics
added huge
experiences in
my upcoming
career. Solving
real
life problems
was another
key issue.
This report
takes us
through all the
details of
WEBSITE
DESIGN
knowledge and
experience
gathered
during this
internship
period.
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
functions of
the software
or application.
For example-
PHP,
Java etc.
Nowadays
there are also
some
frameworks
that use
vastly.
Frameworks
are basically
structured
programming
by
using Model,
View and
Controller. It is
also called as
MVC. If
we develop
web based
application
that is very
useful for us
because we
can access it
from anywhere
in the world. It
is very
helpful for our
daily life. That
is why I choose
subject of my
report as “WEB
DESIGN”.
Training in
Universal
Informatics
added huge
experiences in
my upcoming
career. Solving
real
life problems
was another
key issue.
This report
takes us
through all the
details of
WEBSITE
DESIGN
knowledge and
experience
gathered
during this
internship
period.
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
functions of
the software
or application.
For example-
PHP,
Java etc.
Nowadays
there are also
some
frameworks
that use
vastly.
Frameworks
are basically
structured
programming
by
using Model,
View and
Controller. It is
also called as
MVC. If
we develop
web based
application
that is very
useful for us
because we
can access it
from anywhere
in the world. It
is very
helpful for our
daily life. That
is why I choose
subject of my
report as “WEB
DESIGN”.
Training in
Universal
Informatics
added huge
experiences in
my upcoming
career. Solving
real
life problems
was another
key issue.
This report
takes us
through all the
details of
WEBSITE
DESIGN
knowledge and
experience
gathered
during this
internship
period.
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
functions of
the software
or application.
For example-
PHP,
Java etc.
Nowadays
there are also
some
frameworks
that use
vastly.
Frameworks
are basically
structured
programming
by
using Model,
View and
Controller. It is
also called as
MVC. If
we develop
web based
application
that is very
useful for us
because we
can access it
from anywhere
in the world. It
is very
helpful for our
daily life. That
is why I choose
subject of my
report as “WEB
DESIGN”.
Training in
Universal
Informatics
added huge
experiences in
my upcoming
career. Solving
real
life problems
was another
key issue.
This report
takes us
through all the
details of
WEBSITE
DESIGN
knowledge and
experience
gathered
during this
internship
period.
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
functions of
the software
or application.
For example-
PHP,
Java etc.
Nowadays
there are also
some
frameworks
that use
vastly.
Frameworks
are basically
structured
programming
by
using Model,
View and
Controller. It is
also called as
MVC. If
we develop
web based
application
that is very
useful for us
because we
can access it
from anywhere
in the world. It
is very
helpful for our
daily life. That
is why I choose
subject of my
report as “WEB
DESIGN”.
Training in
Universal
Informatics
added huge
experiences in
my upcoming
career. Solving
real
life problems
was another
key issue.
This report
takes us
through all the
details of
WEBSITE
DESIGN
knowledge and
experience
gathered
during this
internship
period.
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
Website Design
and learning
HTML were the
main objective
of this
internship. To
develop a web
based
application
there are
several
programming
languages that
are in use.
Some of them
are only used
for the
frontend and
backend
design of the
software. For
example,
HTML3,
HTML4,
HTML5, CSS,
Bootstrap,
JavaScript etc.
There are also
some other
programming
languages that
are used to
develop the
dynamic
The present course entitled “CSS and JavaScript” has been conducted at
Udemy – Online Courses. The course uses interdisciplinary techniques to
create structureof the website’s using HTML, Adds style and formatting to
these structures using CSS, and then JavaScript turns those stylized
components into something that a user can interact with.
For Example you want to build a website where users can fill out a form for
a contest. HTML will allow you to designate the difference between the
text that announces the contest and the text that asks questions within the
form such as a participant’s name, age, address, and so on. CSS will allow
you to dress all this text up, giving it formatting, color, and style while
helping you build the boxes where users will input their answers.
JavaScript will then enable you to program a little box that pops up and
says “Thanks for entering!” when everything has been filled out and
submitted. It can even insert the first name that the person submitted in the
form for a more personalized message.
CSS
1. CSS (Cascading Style Sheet)
CSS is the language we use to style an HTML document.
What is CSS?
CSS stands for Cascading Style Sheets
CSS describes how HTML elements are to be displayed on screen,
paper, or in other media
CSS saves a lot of work. It can control the layout of multiple web
pages all at once
External stylesheets are stored in CSS files.
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
When tags like <font>, and color attributes were added to the HTML 3.2
specification, it started a nightmare for web developers. Development of
large websites, where fonts and color information were added to every
single page, became a long and expensive process.
To solve this problem, the World Wide Web Consortium (W3C) created
CSS.
[Link] Syntax
A CSS rule consists of a selector and a declaration block.
Example:
In this example all <p> elements will be center-aligned, with a red text
color:
p {
color: black;
text-align: center;
}
[Link] Selectors
CSS selectors are used to "find" (or select) the HTML elements you want
to style.
Example:
Here, all <p> elements on the page will be center-aligned, with a red
text color:
p {
text-align: center;
color: black;
}
Example:
The CSS rule below will be applied to the HTML element with id="para1":
#para1 {
text-align: center;
color: red;
}
You can also specify that only specific HTML elements should be affected
by a class.
Example:
In this example all HTML elements with class="center" will be red and
center-aligned:
.center {
text-align: center;
color: red;
}
In this example only <p> elements with class="center" will be red and
center-aligned:
[Link] {
text-align: center;
color: red;
}
Example:
The CSS rule below will affect every HTML element on the page:
* {
text-align: center;
color: blue;
}
Example:
In this example we have grouped the selectors from the code above:
h1, h2, p {
text-align: center;
color: red;
}
External CSS
Internal CSS
Inline CSS
Each HTML page must include a reference to the external style sheet file
inside the <link> element, inside the head section.
An external style sheet can be written in any text editor, and must be
saved with a .css extension.
The external .css file should not contain any HTML tags.
The internal style is defined inside the <style> element, inside the head
section.
Example:
Internal styles are defined within the <style> element, inside the
<head> section of an HTML page:
<head>
<style>
body {
background-color: linen;
}
h1 {
color: maroon;
margin-left: 40px;
}
</style>
</head>
To use inline styles, add the style attribute to the relevant element. The
style attribute can contain any CSS property.
Example:
Inline styles are defined within the "style" attribute of the relevant
element:
<body>
<h1 style="color:blue;text-align:center;">This is a
heading</h1>
<p style="color:red;">This is a paragraph.</p>
</body>
4.4 Cascading Order
What style will be used when there is more than one style specified for
an HTML element?
All the styles in a page will "cascade" into a new "virtual" style sheet by
the following rules, where number one has the highest priority:
So, an inline style has the highest priority, and will override external and
internal styles and browser defaults.
[Link] Colors
Colors are specified using predefined color names, or RGB, HEX, HSL,
RGBA, HSLA values. In CSS, a color can be specified by using a predefined
color name. CSS/HTML support 140 standard color names.
You can set the color of text, color of borders, background color for HTML
elements.
Each parameter (red, green, and blue) defines the intensity of the color
between 0 and 255.
To display black, set all color parameters to 0, like this: rgb(0, 0, 0).
To display white, set all color parameters to 255, like this: rgb(255, 255,
255).
[Link] Text
CSS has a lot of properties for formatting text.
The default text color for a page is defined in the body selector.
Tip: All links in HTML are underlined by default. Sometimes you see
that links are styled with no underline. The text-decoration: none; is
used to remove the underline from links, like this:
Example:
a {
text-decoration: none;
}
[Link] {
text-transform: lowercase;
}
[Link] {
text-transform: capitalize;
}
The CSS box model is essentially a box that wraps around every HTML
element. It consists of: content, padding, borders and margins. The
image below illustrates the box model:
Explanation of the different parts:
Content - The content of the box, where text and images appear
Padding - Clears an area around the content. The padding is
transparent
Border - A border that goes around the padding and content
Margin - Clears an area outside the border. The margin is
transparent
Important: When you set the width and height properties of an element
with CSS, you just set the width and height of the content area. To
calculate the total width and height of an element, you must also include
the padding and borders.
Example:
This <div> element will have a total width of 350px and a total height of
80px:
div {
width: 320px;
height: 50px;
padding: 10px;
border: 5px solid gray;
margin: 0;
}
Total element width = width + left padding + right padding + left border
+ right border
Note: The margin property also affects the total space that the box will
take up on the page, but the margin is not included in the actual size of
the box. The box's total width and height stops at the border
[Link] Comments
CSS comments are not displayed in the browser, but they can help
document your source code.
Comments are used to explain the code, and may help when you edit the
source code at a later date.
Example:
/* This is a single-line comment */
p {
color: red;
}
[Link] Links
With CSS, links can be styled in many different ways.
Styling Links
Links can be styled with any CSS property (e.g. color, font-
family, background, etc.).
When setting the style for several link states, there are some order rules:
Example:
a:link, a:visited {
background-color: #f44336;
color: white;
padding: 14px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
}
a:hover, a:active {
background-color: red;
}
[Link] Units
CSS has several different units for expressing a length.
Many CSS properties take "length" values, such
as width, margin, padding, font-size, etc.
Note: A whitespace cannot appear between the number and the unit.
However, if the value is 0, the unit can be omitted.
Absolute Lengths
The absolute length units are fixed and a length expressed in any of
these will appear as exactly that size.
Absolute length units are not recommended for use on screen, because
screen sizes vary so much. However, they can be used if the output
medium is known, such as for print layout.
* Pixels (px) are relative to the viewing device. For low-dpi devices, 1px is
one device pixel (dot) of the display. For printers and high resolution
screens 1px implies multiple device pixels.
Relative Lengths
Relative length units specify a length relative to another length property.
Relative length units scale better between different rendering mediums .
Browser Support
The numbers in the table specify the first browser version that fully
supports the length unit.
-----------------------------------------------
----------------------------
JavaScript
[Link] Introduction
JavaScript is the world's most popular programming language.
Example:
[Link]("demo").innerHTML = "HelloJavaSc
ript";
Example:
[Link]("demo").[Link] = "35px";
Example:
[Link]("demo").[Link] = "block";
[Link] Where To
The <script> Tag
In HTML, JavaScript code is insert between <script> and </script> tags.
Example:
<script>
[Link]("demo").innerHTML = "My First
JavaScript";
</script>
<head>
<script>
function myFunction() {
[Link]("demo").innerHTML = "Paragraph
changed.";
}
</script>
</head>
<html>
<body>
<script>
function myFunction() {
[Link]("demo").innerHTML = "Paragraph
changed.";
}
</script>
</body>
</html>
External JavaScript
Scripts can also be placed in external files:
External scripts are practical when the same code is used in many
different web pages.
Example:
<script src="[Link]"></script>
[Link] Output
JavaScript Display Possibilities
JavaScript can "display" data in different ways:
Example:
<html>
<body>
<p id="demo"></p>
<script>
[Link]("demo").innerHTML = 5 + 6;
</script>
</body>
</html>
Example:
<!DOCTYPE html>
<html>
<body>
<script>
[Link](5 + 6);
</script>
</body>
</html>
3.3Using [Link]( )
You can use an alert box to display data.
In JavaScript, the window object is the global scope object. This means
that variables, properties, and methods by default belong to the window
object. This also means that specifying the window keyword is optional:
Example:
<!DOCTYPE html>
<html>
<body>
<script>
alert(5 + 6);
</script>
</body>
</html>
One useful function that's native to JavaScript is the alert() function. This
function will display text in a dialog box that pops up on the screen.
Example:
<!DOCTYPE html>
<html>
<body>
<script>
[Link](5 + 6);
</script>
</body>
</html>
JavaScript Print
JavaScript does not have any print object or print methods.
The only exception is that you can call the [Link]() method in
the browser to print the content of the current window.
Example:
<!DOCTYPE html>
<html>
<body>
</body>
</html>
[Link] Statements
Example:
let x, y, z; // Statement 1
x = 5; // Statement 2
y = 6; // Statement 3
z = x + y; // Statement 4
JavaScript Programs
A computer program is a list of "instructions" to be "executed" by a
computer.
JavaScript Statements
JavaScript statements are composed of:
This statement tells the browser to write "Hello Dolly." inside an HTML
element with id="demo":
Example:
[Link]("demo").innerHTML = "Hello Dolly.";
Semicolons ;
Semicolons separate JavaScript statements.
Examples:
let a, b, c; // Declare 3 variables
a = 5; // Assign the value 5 to a
b = 6; // Assign the value 6 to b
c = a + b; // Assign the sum of a and b to c
JavaScript Keywords
JavaScript statements often start with a keyword to identify the
JavaScript action to be performed.
Here is a list of some of the keywords you will learn about in this tutorial:
[Link] Syntax
JavaScript syntax is the set of rules, how JavaScript programs are
constructed:
JavaScript Values
The JavaScript syntax defines two types of values:
Fixed values
Variable values
JavaScript Literals
The two most important syntax rules for fixed values are:
JavaScript Variables
In a programming language, variables are used to store data values.
JavaScript uses the keywords var, let and const to declare variables.
JavaScript Operators
JavaScript uses arithmetic operators ( + - * / ) to compute values:
JavaScript Expressions
An expression is a combination of values, variables, and operators,
which computes to a value.
JavaScript Keywords
JavaScript keywords are used to identify actions to be performed.
JavaScript Comments
Not all JavaScript statements are "executed".
The rules for legal names are the same in most programming languages.
[Link] Functions
A JavaScript function is a block of code designed to perform a particular
task.
Example:
// Function to compute the product of p1 and p2
function myFunction(p1, p2) {
return p1 * p2;
}
Function names can contain letters, digits, underscores, and dollar signs
(same rules as variables).
Function Invocation
The code inside the function will execute when
You will learn a lot more about function invocation later in this tutorial.
Example:
Calculate the product of two numbers, and return the result:
function myFunction(a, b) {
// Function returns the product of a and b
return a * b;
}
Why Functions?
With functions you can reuse code
You can use the same code with different arguments, to produce
different results.
The ( ) Operator
The () operator invokes (calls) the function:
Example:
Convert Fahrenheit to Celsius:
function toCelsius(fahrenheit) {
return (5/9) * (fahrenheit-32);
}
Local Variables
Variables declared within a JavaScript function, become LOCAL to the
function.
Example:
// code here can NOT use carName
function myFunction() {
let carName = "Volvo";
// code here CAN use carName
}
Since local variables are only recognized inside their functions, variables
with the same name can be used in different functions.
Local variables are created when a function starts, and deleted when the
function is completed.
-----------------------------------------------
---------------------------------