Industrial Training Report File
Industrial Training Report File
CERTIFICATE
ACKNOWLEDGEMENT
I’ve got this golden opportunity to express my kind gratitude and sincere thanks to my Head
of Department of “CSE” for their kind support and necessary counselling in the preparation of
this report. I ’m also indebted to each person responsible for the making up of this project
directly or indirectly.
I must also acknowledge or deep debt of gratitude each one of my colleagues who led this
project come out in the way it is. It’s my hard work and untiring sincere efforts and mutual
cooperation to bring out the project work. Last but not the least, I would like to thank my
parents for their sound counselling and cheerful support. They have always inspired us and
kept our spirit up.
Kashak Sogani
PREFACE
The main objective of any computer science student is to get as much of practical knowledge
as possible. Being an able to have a practical knowledge by developing a project is a lifetime
experience. As practical knowledge is as important as theoretical knowledge we are thankful
of having a project.
Through the development of the project we had a great experience of various strategies that
can be applied in development of project. This project is the stepping stone for our carrier.
We are pleased to present this project. Proper care has been taken while organizing the project
so that it is to comprehend.
CONTENTS
List of Figures
Figure Caption Page
5.1 If else statement 20
List of Tables
Table Caption Page
3.1 HTML input elements 13-14
1.1 Objectives
1.2 Motivation
For internship to induce the sensible expertise within the field of technology and
Engineering. It's extraordinarily vital that knowing about hypothetical information
and actualize inside the reasonable field to broaden our gifted ability in building work
advertise. The motivation of this internship actually came from the intention of
learning more about the job sectors and the work environment of IT farms. A desktop
base system of creating websites is easy to learn. Before joining the internship, i knew
that I am in a primary stage and beginner level in learning web development, my first
task is to learn and create and be creative. The learning curve of a web development
is such interesting and charming. It is very simple to build a project fully by HTML,
CSS and js when you know what you are doing.
This part Deals with the details of introduction of web development. It is a overview
of the parts included in the full report. .
• Chapter 1
This chapter is dedicated to describe the course I am doing the internship in. The
motto and the goal of the course is stated in this chapter.
• Chapter 2
This chapter describes frontend concepts learnt during the internship.
• Chapter 3
This chapter describes the projects implemented during the internship.
• Chapter 4
This chapter summarises the learnings during the 2 month internship.
Everything you see on a website, like buttons, links, animations, and more, were created by a
front end web developer. It is the front end developer's job to take the vision and design concept
from the client and implement it through code.
HTML : HTML stands for Hyper Text Markup Language. It is used to design the frontend
portion of web pages using markup language. It acts as a skeleton for a website since it is used
to make the structure of a website.
CSS : Cascading Style Sheets fondly referred to as CSS is a simply designed language intended
to simplify the process of making web pages presentable. It is used to style our website.
CHAPTER 3: HTML
HTML:
3.1) Introduction
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
• The <!DOCTYPE html> declaration defines that this document is an HTML5
document
• The <html> element is the root element of an HTML page
• The <head> element contains meta information about the HTML page
• The <title> element specifies a title for the HTML page (which is shown in the
browser's title bar or in the page's tab)
• The <body> element defines the document's body, and is a container for all the visible
contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
• The <h1> element defines a large heading.
10
The HTML style attribute is used to add styles to an element, such as color, font,
size, and more.
• Background Color
The CSS background-color property defines the background color for an HTML
element.
• Text Color
The CSS color property defines the text color for an HTML element.
• Text Size
The CSS font-size property defines the text size for an HTML element
• Text Alignment
The CSS text-align property defines the horizontal text alignment for an
HTML element.
button A push button with no default behavior displaying the value of the value
attribute, empty by default.
color A control for specifying a color; opening a color picker when active in
supporting browsers.
date A control for entering a date (year, month, and day, with no time). Opens a
date picker or numeric wheels for year, month, day when active in supporting
browsers.
datetime- A control for entering a date and time, with no time zone. Opens a date picker
local or numeric wheels for date- and time-components when active in supporting
browsers.
email A field for editing an email address. Looks like a text input, but has validation
parameters and relevant keyboard in supporting browsers and devices with
dynamic keyboards.
13
file A control that lets the user select a file. Use the accept attribute to define the
types of files that the control can select.
hidden A control that is not displayed but whose value is submitted to the server.
There is an example in the next column, but it's hidden!
image A graphical submit button. Displays an image defined by the src attribute. The
alt attribute displays if the image src is missing.
month A control for entering a month and year, with no time zone.
number A control for entering a number. Displays a spinner and adds default
validation when supported. Displays a numeric keypad in some devices with
dynamic keypads.
password A single-line text field whose value is obscured. Will alert user if site is not
secure.
radio A radio button, allowing a single value to be selected out of multiple choices
with the same name value.
range A control for entering a number whose exact value is not important. Displays
as a range widget defaulting to the middle value. Used in conjunction min and
max to define the range of acceptable values.
reset A button that resets the contents of the form to default values. Not
recommended.
search A single-line text field for entering search strings. Line-breaks are
automatically removed from the input value. May include a delete icon in
supporting browsers that can be used to clear the field.
text The default value. A single-line text field. Line-breaks are automatically
removed from the input value.
url A field for entering a URL. Looks like a text input, but has validation
parameters and relevant keyboard in supporting browsers and devices with
dynamic keyboards.
14
<address> The <address> HTML element indicates that the enclosed HTML
provides contact information for a person or people, or for an
organization.
<footer> The <footer> HTML element represents a footer for its nearest sectioning
content or sectioning root element. A <footer> typically contains
information about the author of the section, copyright data or links to
related documents.
<h1>, <h2>, The <h1> to <h6> HTML elements represent six levels of section
<h3>, <h4>, headings. <h1> is the highest section level and <h6> is the lowest.
<h5>, <h6>
<main> The <main> HTML element represents the dominant content of the body
of a document. The main content area consists of content that is directly
related to or expands upon the central topic of a document, or the central
functionality of an application.
<nav> The <nav> HTML element represents a section of a page whose purpose
is to provide navigation links, either within the current document or to
other documents. Common examples of navigation sections are menus,
tables of contents, and indexes.
15
CHAPTER 4: CSS
CSS:
4.1 Introduction
CSS is the language for describing the presentation of Web pages, including colours, layout,
and fonts. It allows one to adapt the presentation to different types of devices, such as large
screens, small screens, or printers. CSS is independent of HTML and can be used with any
XML-based mark up language. The separation of HTML from CSS makes it easier to
maintain sites, share style sheets across pages, and tailor pages to different environments.
This is referred to as the separation of structure (or: content) from presentation.
After creating and saving the CSS file, we just need to link the CSS and HTML files together
so the browser knows where to look for the CSS file.
In the head of the HTML document ,add link tag
Format:
<head>
⋮
<link href=”css/main.css” rel=”stylesheet”
</head>
The link element is used to associate different types of documents to your HTML, primarily
CSS, but also blog feeds, help documents, licenses, etc.
• href - this attribute is used to point to the location of the CSS file.
• rel - this attribute is used to define this item as a stylesheet
Some Basic CSS properties -
• CSS Colors
16
• CSS Backgrounds
• CSS Borders
• CSS Margins
• CSS Padding
• CSS Height/Width
• CSS Outline
• CSS Text
• CSS Fonts
• CSS Icons
• CSS Links
• CSS Lists
• CSS Tables
• CSS Display
• CSS Max-width
• CSS Position
• CSS Z-index
• CSS Overflow
• CSS Float
• CSS Inline-block
• CSS Align
• CSS Combinators
• CSS Dropdowns
• CSS Forms
17
• CSS Units
• CSS Backgrounds
18
CHAPTER 5: JAVASCRIPT
5.1 Introduction :
JavaScript is the world's most popular programming language. JavaScript is the programming
language of the Web. JavaScript is a light-weight object-oriented programming language which
is used by several websites for scripting the webpages. It is an interpreted, full-fledged
programming language that enables dynamic interactivity on websites when applied to an
HTML document. JavaScript is easy to learn.It is also known as scripting language for web
pages
How to add javascript to your HTML file:
• Internal JS: We can add JavaScript directly to our HTML file by writing the code
inside the <script> tag. The <script> tag can either be placed inside the <head> or the
<body> tag according to the requirement.
• External JS: We can write JavaScript code in other file having an extension .js and
then link this file inside the <head> tag of the HTML file in which we want to add this
code.
Syntax to link javascript file to html : <script src="main.js"></script>
Syntax -
<script>
// JavaScript Code
</script>
A JavaScript variable is simply a name of storage location. There are two types of variables in
JavaScript : local variable and global variable.
There are some rules while declaring a JavaScript variable (also known as identifiers).
1. Name must start with a letter (a to z or A to Z), underscore( _ ), or dollar( $ ) sign.
2. After first letter we can use digits (0 to 9), for example value1.
3. JavaScript variables are case sensitive, for example x and X are different variables.
Correct js variables :
1. var x = 10;
2. var _value="sonoo";
Incorrect JavaScript variables:
19
1. var 123=30;
2. var *aa=320;
var name;
• declaring multiple variables
• initializing variables
name = "Rakesh";
If-else Statement in JavaScript - The JavaScript if-else statement is used to execute the code
whether condition is true or false. There are three forms of if statement in JavaScript.
20
1. If Statement
2. If else statement
3. if else if statement
Syntax:
if (condition)
statement;
else if (condition)
statement;
.
.
else
statement;
Functions are one of the fundamental building blocks in JavaScript. A function in JavaScript is
similar to a procedure—a set of statements that performs a task or calculates a value, but for a
procedure to qualify as a function, it should take some input and return an output where there
is some obvious relationship between the input and the output. To use a function, you must
define it somewhere in the scope from which you wish to call it.
Function Definition:
Before, using a user-defined function in JavaScript we have to create one. We can use the above
syntax to create a function in JavaScript. A function definition is sometimes also termed as
function declaration or function statement.
Rules for creating a function in JavaScript:
Function names can contain letters, digits, underscores, and dollar signs (same rules as
variables).
The parentheses may include parameter names separated by commas: (parameter1, parameter2,
...) .
JavaScript Function Syntax:
function name(parameter1, parameter2, parameter3) {
// code to be executed
}
21
Calling Functions : After defining a function, the next step is to call them to make use of the
function. The JavaScript Function call() method calls a function with a given this value and
arguments provided individually. The call() method calls a function by passing this and
specified values as arguments.
Syntax :
functionName( Value1, Value2, ..);
Return Statement : The return statement ends function execution and specifies a value to be
returned to the function caller.When a return statement is used in a function body, the execution
of the function is stopped. If specified, a given value is returned to the function caller. For
example, the following function returns the square of its argument, x, where x is a number.
Onclick event : The onclick event generally occurs when the user clicks on an element. It
allows the programmer to execute a JavaScript's function when an element gets clicked. This
event can be used for validating a form, warning messages and many more.
document.querySelector: When a return statement is used in a function body, the execution
of the function is stopped. If specified, a given value is returned to the function caller. For
example, the following function returns the square of its argument, x, where x is a number.The
querySelector() method returns the first element that matches a CSS selector. To return all
matches (not only the first), use the querySelectorAll() instead. Both querySelector() and
querySelectorAll() throw a SYNTAX_ERR exception if the selector(s) is invalid.
Syntax:
document.querySelector(CSS selector)
22
CHAPTER 6: PROJECT
After learning many of the things in web development area, it’s time to build something upon
the learnt things to show our skills and learn them more. So, we made a project using the things
we learnt so far. We have used following technologies in our project:
- HTML
- CSS
- Javascript
Fashion newsletter template.
23
24
CHAPTER 7: CONCLUSION
On the whole, this internship was a useful experience. I have gained new knowledge, skills . I
achieved several of my learning goals,. I got insight into professional practice. I learned the
different facets of working I experienced that financing, as in many organisations, is an
important factor for the progress of projects.There is still a lot to discover and to improve. The
internship was also good to find out what my strengths and weaknesses are. This helped me to
define what skills and knowledge I have to improve in the coming time. It would be better that
the knowledge level of the language is sufficient to contribute fully to projects.
25
References
26