Kishore
Kishore
ON
Submitted to
BACHELOR OF TECHNOLOGY
in
COMPUTER SCIENCE AND ENGINEERING
By
V.Venkata Kishore
Regd. No:
22P11A05B2
Of
Mrs. C. Saraswati
Assistant
Professor
CERTIFICATE
First, I would like to thank Saloni Madam, HR, of EXCELR for giving me the opportunity to
do an internship within the organization.
I also would like all the people that worked along with me EXCELR with their patience and
openness they created an enjoyable working environment.
It is indeed with a great sense of pleasure and immense sense of gratitude that I acknowledge
the help of these individuals.
I would like to thank our Chairman Dr Chadalawada Krishna Murthy sir for the facilities
provided to accomplish this internship.
I am highly indebted to Principal Dr P. Ramesh Kumar sir for providing the opportunity to
do my internship course and others.
I am very much thankful to Dean (Academics) Dr C. Subhas sir for his continuous support in
academics.
I would like to thank the Head of the Department Dr. D. SHOBA RANI, madam for his
constructive criticism throughout my internship.
I would like to thank Mrs. C. Saraswathi Madam, internship coordinator, Department of CSE
for her support and advices to complete the internship in above said organization.
I am sincerely thankful to my Guide Mrs. C. Saraswathi Madam, Department of CSE for her
guidelines and support from beginning to end of internship.
I am extremely great full to the department staff members and friends who helped me in
successful completion of this internship.
DECLARATION
I further declare that this internship Report has not been Previously submitted before
either in part or full for the award of any degree to any organization or any other
Universities.
(V Venkata Kishore)
Regd.No:22P11A05B2
ABSTRACT
Key features include user authentication, real-time data updates, and a dynamic content
management system. The project also emphasizes best practices in web development,
focusing on performance optimization, accessibility, and security measures. Through rigorous
testing and user feedback, the application has been refined to ensure usability across various
devices and browsers.
This report outlines the development process, challenges encountered, and solutions
implemented, providing insights into effective web application design and deployment. The
final product not only meets the initial requirements but also sets a foundation for future
enhancements and scalability.
WEEKLY OVERVIEW OF INTERNSHIP ACTIVITIES
Web is the process of building and maintaining websites. It encompasses a variety of tasks
and skills, which can be broadly categorized into two main areas: frontend development
and backend development.
1. Frontend Development
This is everything that users see and interact with in their web browsers. It involves:
HTML (Hyper Text Markup Language): The structure of web pages. It defines
elements like headings, paragraphs, links, and images.
CSS (Cascading Style Sheets): The styling of web pages. CSS controls the layout,
colors, fonts, and overall visual appearance.
JavaScript: The scripting language that adds interactivity to web pages. With
JavaScript, you can create dynamic content, animations, and handle user events.
2. Backend Development
This involves the server-side of web applications, which users don’t see. Key components
include:
Server: A computer that hosts the website and manages requests from users'
browsers.
Database: A system for storing and retrieving data. Common databases include
MySQL, PostgreSQL, and MongoDB.
Programming Languages: Languages like Python, Ruby, PHP, or Node.js are used to
write the logic that processes requests, interacts with databases, and sends
responses back to the frontend.
3. Full Stack Development
Full stack developers work on both the frontend and backend, giving them a comprehensive
view of the web application.
5. Development Process
The web development process typically includes:
What is HTML?
HTML stands for Hyper Text Markup Language
<style>
table, th, td
{
border:1px solid black;
}
</style>
<body>
<h2>A basic HTML table</h2>
<table style="width:100%">
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
</table>
<p>To understand the example better, we have added borders to the table.</p</body>
</html>
LINKS
The <link> tag defines the relationship between the current document and an external
resource.
The <link> tag is most often used to link to external style sheets or to add a favicon to your
website.
The <link> element is an empty element, it contains attributes only.
<head>
<link rel="stylesheet" href="styles.css">
</head>
IMAGES
Images can improve the design and the appearance of a web page.
<!DOCTYPE html>
<html>
<body>
<h2>HTML Image</h2>
</body>
Paragraphs:-
The <p> tag in HTML signifies a paragraph. Enclosed within the opening <p> and closing </p>
tags, any content is recognized as a paragraph. As a block-level element, a new paragraph
inherently starts on a fresh line, with browsers intuitively adding space before and after a
paragraph for enhanced readability.
Syntax:
<p> Content </p>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<title>The p tag</title>
</head>
<body>
<p>A Computer Science portal for geeks.</p>
<p>It contains well written, well thought articles.</p>
</body>
</html>
Output:
-
Attributes:-
HTML attributes provide additional information about HTML elements.
HTML Attributes
All HTML elements can have attributes
Attributes provide additional information about elements
Attributes are always specified in the start tag
Output:-
The href Attribute
HTML links are defined with the a tag. The link address is specified in the href attribute:
Inline Elements:-
An inline element does not start on a new line.
An inline element only takes up as much width as necessary.
This is a <span> element inside a paragraph.
<span>Hello World</span>
Output:-
HTML lists:-
An HTML list is a structured record of related information used to display data or
information on web pages in an ordered or unordered form. Lists are fundamental for
organizing content in a clear and readable way.
1. Unordered Lists
2. Ordered Lists
3. Description
The HTML class attribute is used to assign one or more CSS classes to an HTML element. By
using classes, you can group elements together and apply consistent styles across them,
streamlining both design and functionality.
HTML Forms:-
HTML Forms use the <form> tag to collect user input through various interactive controls.
These controls range from text fields, numeric inputs, and email fields to password fields,
checkboxes, radio buttons, and submit buttons.
<!DOCTYPE html>
<html>
<body>
<h2>HTML Forms</h2>
<form action="/action_page.php">
<label for="fname">First name:</label><br>
<input type="text" id="fname" name="fname" value="John"><br>
<p>If you click the "Submit" button, the form-data will be sent to a page called
"/action_page.php".</p>
</body>
</html>
<input type="color">
<input type="date">
<input type="datetime-local">
<input type="email">
Fig:-input type
Html Comments:-
HTML comments allows you to add notes, explanations, or instructions within the code
without affecting the appearance of the webpage. These comments are not visible on the
rendered webpage but are present in the source code, making it easier for developers to
collaborate, debug, and maintain clean code.
Department of CSE, P a g e | 10
WEB DEVELOPMENT AND JAVA SCRIPT
2. Selectors: CSS uses selectors to target HTML elements. Common selectors include
element selectors (e.g., h1), class selectors (e.g., .classname), and ID selectors (e.g.,
#idname).
3. Box Model: CSS describes how elements are structured in a box model, including
margins, borders, padding, and the actual content area.
4. Responsive Design: With media queries, CSS enables responsive design, allowing
websites to adapt to different screen sizes and devices.
5. Styling Capabilities: CSS provides a wide range of properties for styling, including
color, typography, layout (flexbox and grid), transitions, and animations.
6. Cascading Nature: The "cascading" aspect allows multiple stylesheets to apply, with
rules that determine which styles take precedence based on specificity and order.
Table of Content
Inline CSS
Internal CSS
External CSS
Inline, Internal and External CSS Use Cases
Department of CSE, P a g e | 11
WEB DEVELOPMENT AND JAVA SCRIPT
Inline CSS:
Inline CSS is a way of defining the styling of an HTML element by adding CSS rules
directly to the element’s tag using the “style” attribute. It is used for quick and
simple styling changes to specific elements, without creating a separate CSS file.
Internal CSS:
Internal CSS, also known as embedded CSS, involves adding CSS rules directly within
the <style> element in the <head> section of an HTML document. It allows styling
specific to that document
External CSS:
External CSS is used to place CSS code in a separate file and link to the HTML
document. To use external CSS, create a separate file with the .css file extension that
contains your CSS rules. You can link this file to your HTML document using the “link”
tag in the head section of your HTML document.
}
font-weight: Defines the thickness of the font (e.g., normal,
bold). css
strong {
font-weight: bold;
}
Borders
Borders can enhance the visual structure of elements:
border: A shorthand property for setting the width, style, and
color. css
Department of CSE, P a g e | 12
WEB DEVELOPMENT AND JAVA SCRIPT
Copy code
div {
border: 2px solid black;
}
Margin
Margins create space outside of an element's border:
margin: A shorthand property for setting margins on all sides.
h2 { can specify individual
margins: Background:-
Background properties can style the background of an element:
background-image: Adds an image as the
background. css
div {
background-image: url('image.jpg');
}
margin: 20px;
You
Department of CSE, P a g e | 13
WEB DEVELOPMENT AND JAVA SCRIPT
2. CSS Padding
padding controls the space inside an element, between the element’s content and its
border. You can define padding for all sides at once, or individually for each side:
padding-right: Padding on the right side.
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
Department of CSE, P a g e | 14
WEB DEVELOPMENT AND JAVA SCRIPT
Properties in CSS
CSS (Cascading Style Sheets) properties define the styles that are applied to HTML elements.
Here’s an overview of some common CSS properties, grouped by category
2. Background Properties:
background-color: Sets the background color of an
element. css
background-color: #f0f0f0;
background-image: Specifies an image to use as the
background. css
background-image: url('image.jpg');
background-size: Defines the size of the background
image. css
background-size: cover;
border. css
Department of CSE, P a g e | 15
WEB DEVELOPMENT AND JAVA SCRIPT
margin: 10px;
padding: Specifies the space between the element's content and its
border. css
padding: 20px;
border: Sets the border around the
element. css
border: 1px solid black;
width: Sets the width of the
element. css
width: 100px;
4. Positioning Properties:
position: Specifies how an element is positioned in the document (static, relative,
absolute, fixed, sticky).
css
position: absolute;
top, right, bottom, left: Specifies the offset from the respective edges of the parent
element or the browser window (used with position).
css
top: 10px;
left: 20px;
z-index: Defines the stack order of elements (higher numbers appear on
top). z-index: 10;
Department of CSE, P a g e | 16
WEB DEVELOPMENT AND JAVA SCRIPT
css
Copy code
2. HEX (Hexadecimal)
Colors can also be specified using hexadecimal values, which are a combination of six
characters (0-9, A-F). This format represents the amount of red, green, and blue in a color.
Syntax:
color: #RRGGBB;
RR: Red (00 to FF)
GG: Green (00 to FF)
BB: Blue (00 to
FF) Example:
Shorthand HEX:
If the values for each color component are repeated (e.g., #FF0000), you can shorten the HEX
color by using only 3 characters.
Example:
color: #F00; /* Shorthand for #FF0000 (Red) */
Department of CSE, P a g e | 17
WEB DEVELOPMENT AND JAVA SCRIPT
HSL stands for Hue, Saturation, and Lightness. The hsl() function defines colors based on these
three properties:
Hue: Represents the color type and is a degree on the color wheel (0-360).
o 0 = red
o 120 = green
o 240 = blue
Department of CSE, P a g e | 18
WEB DEVELOPMENT AND JAVA SCRIPT
ul.custom li::before {
content: "•"; /* Add custom bullet using content */
color: blue;
font-size: 20px;
margin-right:
10px;
}
Department of CSE, P a g e | 19
WEB DEVELOPMENT AND JAVA SCRIPT
2. CSS Layout
CSS layout techniques are crucial for structuring and organizing the layout of a web page.
a) Box Model
The CSS box model includes margins, borders, padding, and the content area.
Understanding it helps manage spacing and dimensions.
div {
width: 200px;
padding: 10px;
border: 1px solid
black; margin: 20px;
}
b) Flexbox
Flexbox (display: flex;) is a layout model that provides an efficient way to align and distribute
items in a container.
Flexbox Example:
.container {
display:
flex;
justify-content: space-between; /* Space between items
*/ align-items: center; /* Center vertically */
}
.item {
padding: 10px;
background-color: lightgray;
width: 100px;
text-align:
center;
}
c) CSS Grid
CSS Grid is a two-dimensional layout system that allows you to create complex layouts with
rows and columns.
Department of CSE, P a g e | 20
WEB DEVELOPMENT AND JAVA SCRIPT
.grid-container {
display: grid;
grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
gap: 20px; /* Space between items */
}
h1 {
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
4.3 Bootstrap
Bootstrap is a popular open-source CSS framework that helps developers build responsive,
mobile-first websites quickly and efficiently. It includes a wide range of pre-designed UI
components, layout utilities, and powerful JavaScript plugins. It’s particularly useful for
creating consistent designs across multiple devices and browsers.
Key Features of Bootstrap:
1. Responsive Grid System
2. Pre-built Components
3. CSS Helpers and Utilities
4. JavaScript Plugins
5. Customizable via Sass or LESS
Department of CSE, P a g e | 21
WEB DEVELOPMENT AND JAVA SCRIPT
<div class="row">
<div class="col">Column 1</div>
<div class="col">Column 2</div>
<div class="col">Column 3</div>
</div>
</div>
container: Provides a responsive fixed-width container or a fluid container.
row: Wraps columns and ensures proper alignment.
col: Represents a column that takes equal space in the row.
2. Bootstrap Components
Bootstrap comes with a variety of pre-designed components like buttons, navbars,
modals, cards, and more.
a) Buttons
Bootstrap provides different button styles and colors.
html
<button type="button" class="btn btn-primary">Primary Button</button>
<button type="button" class="btn btn-secondary">Secondary Button</button>
<button type="button" class="btn btn-success">Success Button</button>
b) Navbar
The navbar component helps you build responsive navigation bars.
You can use margin (m-) and padding (p-) utility classes to adjust the spacing.
Department of CSE, P a g e | 22
WEB DEVELOPMENT AND JAVA SCRIPT
html
<div class="m-3 p-3 bg-light">Margin and Padding Example</div>
Department of CSE, P a g e | 23
WEB DEVELOPMENT AND JAVA SCRIPT
5. Introduction to JavaScript
Department of CSE, P a g e | 24
WEB DEVELOPMENT AND JAVA SCRIPT
a) Conditional Statements
Conditional statements like if, else if, else, and switch allow for decision-making in your
code.
Javascript
let age = 18;
a) Objects
Objects are collections of key-value pairs. They represent real-world entities in a structured
format.
javascript
let person = {
name: "Alice",
age: 30,
greet: function() {
return "Hello, " + this.name;
}
};
Department of CSE, P a g e | 25
WEB DEVELOPMENT AND JAVA SCRIPT
1. Arithmetic Operators
Arithmetic operators are used to perform mathematical calculations on numeric values.
2. Comparison Operators:-
Comparison operators are used to compare two values. These operators return a Boolean
value (true or false) depending on the comparison result.
3. Logical Operators
Logical operators are used to combine or invert Boolean values. They are often used in
conditional statements.
` ` Logical OR
Department of CSE, P a g e | 26
WEB DEVELOPMENT AND JAVA SCRIPT
let a = 5;
let b =
10;
console.log(a > 0 && b > 0); // true: both are greater than 0
console.log(a > 0 && b < 0);
Loops in JavaScript
Loops are fundamental control structures in JavaScript that allow you to execute a block of
code repeatedly as long as a specified condition is true. This helps avoid redundant code and
allows handling repetitive tasks efficiently.
JavaScript provides several types of loops:
1. For Loop
The for loop is used when you know the number of iterations in advance. It has three parts:
Initialization: executed before the loop starts, usually used to define a counter variable.
Condition: checked before each iteration. If true, the loop continues; if false, the
loop stops.
Final Expression: executed after each iteration, usually to update the counter
variable. Syntax:
javascript
for (initialization; condition; finalExpression) {
}
2. while Loop
The while loop continues to execute a block of code as long as the specified condition
remains true. This loop is often used when you don't know the number of iterations in
advance.
Syntax:
javascript
while (condition) {
}
3. do...while Loop
The do...while loop is similar to the while loop, but with one key difference: the block of
code is executed at least once before the condition is checked. This makes it useful when
you want the loop to run at least one time regardless of the condition.
Department of CSE, P a g e | 27
WEB DEVELOPMENT AND JAVA SCRIPT
Syntax:
javascript
do {
} while (condition);
for (let value of iterable) {
}
continue: Skips the current iteration and continues with the next one.
break Example:
javascript
for (let i = 0; i < 5; i++)
{ if (i === 3) break;
console.log(i);
}
// Output: 0, 1, 2
Arrays, Functions in JS
An array in JavaScript is a data structure that allows you to store multiple values in a single
variable. Arrays can store elements of any type, including numbers, strings, objects, or even
other arrays.
1. Creating an Array
There are two ways to create arrays:
Department of CSE, P a g e | 28
WEB DEVELOPMENT AND JAVA SCRIPT
4. Array Methods
push(): Adds a new element to the end of the
array. Java script
Fruits push('grape');
Department of CSE, P a g e | 29
WEB DEVELOPMENT AND JAVA SCRIPT
Each node represents an HTML element (like <div>, <p>, <a>, etc.), an attribute (like
class, id), or text.
JavaScript can be used to manipulate these nodes to create dynamic content,
respond to user actions, or modify the structure and style of the web page.
Department of CSE, P a g e | 30
WEB DEVELOPMENT AND JAVA SCRIPT
DOM Events
JavaScript allows you to add event listeners to elements to respond to user actions such as
clicks, form submissions, or key presses.
1. Event Listener
The addEventListener() method is used to attach an event listener to an element.
javascript
Copy code
let button = document.getElementById('myButton');
button.addEventListener('click', function() {
alert('Button was clicked!');
});
2. Event Object
When an event occurs, an event object is passed to the event handler. This object contains
useful information like the type of event, the target element, and the coordinates of the
event.
To manipulate elements, you first need to select them from the DOM. JavaScript provides
several methods to select DOM elements.
Common Methods for Selecting Elements:
Department of CSE, P a g e | 31
WEB DEVELOPMENT AND JAVA SCRIPT
4. Removing Elements
You can remove elements from the DOM using the removeChild() or remove() method.
Removing an Element:
remove Child(): Removes a child element from the DOM.
Java script
Event handling in JavaScript refers to the process of capturing and responding to user
interactions or system-generated events. Common events include clicks, key presses, form
submissions, and mouse movements. JavaScript provides a variety of ways to manage these
events and trigger specific actions in response.
1. What is an Event?
An event is any interaction that happens in the browser, such as:
Mouse events: click, dblclick, mouseover, mouseout, mousedown, mouseup
Department of CSE, P a g e | 32
WEB DEVELOPMENT AND JAVA SCRIPT
When an event occurs, JavaScript can be used to execute code in response to that event.
The code that runs in response to an event is called an event handler or event listener.
element.removeEventListener(event, function);
Department of CSE, P a g e | 33
WEB DEVELOPMENT AND JAVA SCRIPT
6. Event Propagation
Event propagation refers to the order in which events are handled in the DOM.
When an event is triggered, it can go through the following phases:
1. Capturing Phase: The event travels from the root of the DOM down to the target
element.
7. Delegating Events
Event delegation is a pattern where a single event listener is attached to a parent
element to handle events triggered by its children. This is useful for handling events
on dynamically generated elements or multiple similar elements.
9. Keyboard Events
JavaScript allows you to capture and handle keyboard events using keydown, keyup,
and keypress event types. These events provide information about which key was
pressed via the event.key or event.code property.
Department of CSE, P a g e | 34
WEB DEVELOPMENT AND JAVA SCRIPT
a. length
Returns the length of a string (i.e., the number of characters).
javascript
Copy code
let text = "JavaScript";
console.log(text.length); // Output: 10
4. Template Literals
Template literals are enclosed by backticks (`) and allow for embedding expressions directly
into strings using ${}.
Example:
javascript
Copy code
let name = "Alice";
let age = 25;
let greeting = `Hello, my name is ${name} and I am ${age} years old.`;
console.log(greeting); // Output: "Hello, my name is Alice and I am 25 years old."
5. String Concatenation
You can combine strings using the + operator or the concat() method.
Department of CSE, P a g e | 35
WEB DEVELOPMENT AND JAVA SCRIPT
6. Escape Sequences
Escape sequences are used to include special characters in strings, such as quotes or newlines.
\t: Tab
8. Search Methods
Java script
console.log(str.search("JavaScript")); // Output:
9. String Iteration
You can iterate over a string using a for loop or a for...of loop.
Example:
javascript
Copy code
A function in JavaScript is a block of code designed to perform a specific task. Functions are
fundamental building blocks that allow you to organize and reuse code. Once a function is
defined, it can be executed whenever it is called or invoked.
1. Defining a Function
Department of CSE, P a g e | 36
WEB DEVELOPMENT AND JAVA SCRIPT
In JavaScript, functions can be defined in several ways. The most common method is using the
function declaration or function expression.
a. Function Declaration
A function declaration defines a function with a specific name.
javascript
Copy code
function greet()
{
console.log("Hello, World!");
}
In this example, the function greet is declared. You can call this function using its name:
javascript
Copy code
greet(); // Output: "Hello, World!"
2. Function Parameters
Functions can take input values, known as parameters, which allow the function to be more
dynamic and reusable.
4. Anonymous Functions
Functions that do not have a name are called anonymous functions. They are typically used
in places where a function is expected but doesn't need to be reused, such as in event
handlers or callbacks.
.
10. Recursion
Recursion occurs when a function calls itself. It is useful for solving problems that can be
divided into smaller, similar problems.
function factorial(n)
{ if (n === 1) {
return 1;
}
Department of CSE, P a g e | 37
WEB DEVELOPMENT AND JAVA SCRIPT
Promises in JavaScript
In JavaScript, Promises are used to handle asynchronous operations. They represent a value
that may be available now, or in the future, or never. Promises help manage asynchronous
tasks like data fetching, timers, or file handling without nesting callbacks, often referred to
as "callback hell."
1. What is a Promise?
Pending: The initial state, the operation has not completed yet.
Fulfilled: The operation completed successfully, and the promise has a result.
Rejected: The operation failed, and the promise has an error.
2. Creating a Promise
A promise is created using the Promise constructor, which takes a function (known as the
executor) that has two parameters: resolve and reject.
3. Handling Promises
Once a promise is created, you can handle its result using two primary methods:
then(): Handles the fulfilled result
Department of CSE, P a g e | 38
WEB DEVELOPMENT AND JAVA SCRIPT
Conclusion
In conclusion, web development using JavaScript is a crucial aspect of creating dynamic and
interactive web applications. JavaScript enables developers to enhance user experiences
through features like real-time updates, form validation, and responsive design.
1. **Client-Side Functionality**: JavaScript runs in the user's browser, allowing for quick
interactions without needing server communication.
2. **Frameworks and Libraries**: Tools like React, Angular, and Vue.js streamline
development and improve code efficiency.
3. **Asynchronous Programming**: JavaScript’s async features, such as Promises and
async/await, enhance the ability to handle operations like API calls smoothly.
4. **Ecosystem**: A rich ecosystem with numerous packages and tools (e.g., Node.js for
server-side JavaScript) supports full-stack development.
5. **Community and Resources**: A large community means ample resources for
learning, troubleshooting, and collaboration.
In essence, mastering JavaScript is essential for modern web developers, allowing them to
build robust applications that meet user expectations and adapt to evolving web standards.
Department of CSE, P a g e | 39
WEB DEVELOPMENT AND JAVA SCRIPT
References
[1] https://dev.to/devland/19-handy-websites-for-web-developers-1m3i
[2] https://developer.mozilla.org/en-US/
[3] https://webreference.com/
Department of CSE, P a g e | 40