Training Report Web Design
Training Report Web Design
Session: 2024-2025
Guided By:To:
Submitted Submitted By:
Mr. B.L. Pal Ayush Kumar Shukla
Post COURSE: B.Tech
HOD MUR2201537
Computer Science & Engineering
Guided By:
Ms. Smruti
IT Trainer
CTTC Bhubaneshwar
1
Acknowledgment
I would like to express my sincere gratitude to all those who contributed to the
successful completion of this training report. My deepest thanks go to Ms. Smruti for
their invaluable guidance, support, and expertise throughout the training period. Their
insightful feedback and encouragement greatly enhanced my learning experience.
I am also grateful to Mewar University for providing the opportunity and resources
necessary for this training. The practical knowledge and skills acquired have been
instrumental in my professional development. Special thanks to my colleagues and peers
for their collaborative spirit and assistance, which made the training environment both
productive and enjoyable.
Additionally, I appreciate the support from my HOD Mr. B.L. Pal , who have been a
constant source of motivation and encouragement. Their understanding and patience
during this time were greatly appreciated.
Thank you all for your unwavering support and contributions. This report would not
have been possible without each of you.
Sincerely,
2
MEWAR UNIVERSITY
CHITTORGARH, RAJASTHAN
Department of Computer Science & Engineering
ABSTRACT
This training covers the fundamentals of visual design, user experience (UX), and
front-end development. Learn to craft engaging online experiences using HTML,
CSS, Java Script, and industry-leading tools.
This report also includes a project aimed to design an efficient e-kart website that
streamlines cosmetic shopping experience for male customers. Using a user-
cantered design approach and HTML/CSS/JavaScript technologies, a responsive
and interactive website was developed by my group which has 8 members
including me. Key features include a intuitive product categorization, and
seamless user-experience. The website offers benefits such as easy product
discovery, personalized product recommendations, and seamless checkout
process.
3
In the present scenario of industrialization; particularly in the engineering field, requirements of
specialized tools, dies, jigs, fixtures, moulds, gauges and other precision components are
indispensable. Simultaneously demand for quality Tool makers, Tool & Product Designers,
Skilled manufacturers, PLC & Industrial Automation engineers and Maintenance Engineers is
also growing rapidly. Central Tool Room & Training Centre (CTTC), Bhubaneswar is one of
such training, production, design and consultancy Centre established in technical cooperation
program between Govt. of India & Govt. of Denmark to meet the above requirements. The
excellent infrastructural facilities like land, building etc. have been contributed by Govt. of
Orissa. Training activities started in 1991 and Tool production in 1995.
CTTC is unique in imparting industry oriented long- & short-term training programs on
CAD/CAM, Tool Design & Manufacturing, Tool & Die Making, CNC Programming &
Machining, Machine Maintenance, CCNA, Industrial Automation, VLSI, Hardware &
Networking Management, ITI (Machinist/Welder) etc. CTTC believes in PRACTICE MAKES
PERFECT.
Vision
Mission
Promote Growth & Development of Micro, Small & Medium Enterprises through
Technological & Skilled Manpower Support.
Guided By:
Mrs. Ritu Maity
Course Co-ordinator
MSME TOOL ROOM, Bhuvneshwar
4
5
6
TABLE OF CONTENTS
Chapter 1
Introduction...........................................................................................................................9
1.1 Web
Designing…………………………………………………………………………………………
……………………….9
HTML................................................................................................................................9-15
Chapter 2
CSS...................................................................................................................................15-20
7
2.5 CSS Borders......................................................................................................................18
Chapter 3
Java Script...........................................................................................................................20-31
Chapter 4
Project Report................................................................................................................32-38
4.1 Introduction...............................................................................................................32
Chapter 5
8
5.1 References…...................................................................................................................38
9
Chapter 1
Introduction
Web design involves creating the visual layout of a website, focusing on user
experience, graphics, and overall look. Front-end development, on the other hand,
involves implementing the design into a functional website using coding languages
like HTML, CSS, and JavaScript.
WWW- WWW stands for World Wide Web, which is an information system that
allows users to share content over the internet. It’s also known as the web or W3.
Web Page- A web page (or webpage) is a document on the Web that is accessed in a
web browser.
HTML
1.3 Introduction
HTML stands for Hyper Text Markup Language. HTML is the standard markup
language for Web pages. It describes the structure of a Web page. Consists of a series
of elements. HTML elements tell the browser how to display the content.
10
<!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
<!DOCTYPE html>
<html>
<body>
</body>
</html>
An HTML Element is a collection of start and end tags with the content inserted
between them. HTML elements are building blocks of web pages, representing
different types of content such as headings, paragraphs, links, and images.
11
1.6 HTML Attributes
HTML attributes are special words which provide additional information about the
elements or attributes are the modifier of the HTML element. Each element or tag can
have attributes, which defines the behaviour of that element. The Attribute should
always be applied with its name and value pair.
<element attribute_name=”value”>content</element>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1> This is Style attribute</h1>
<p style=”height: 50px; color: blue”>It will add style property in element</p>
<p style=”color: red”>It will change the color of content</p>
</body>
</html>
An HTML list is a record of related information used to display the data or any
information on web pages in the ordered or unordered form.
<!DOCTYPE html>
<html>
<head>
<title>List Example</title>
</head>
<body>
<h5>List of available courses</h5>
<ul>
<li>Data Structures & Algorithm</li>
<li>Web Technology</li>
<li>Aptitude & Logical Reasoning</li>
</ul>
12
<h5>Data Structures topics</h5>
<ol>
<li>Array</li>
<li>Linked List</li>
<li>Stacks</li>
<li>Queues</li>
<li>Trees</li>
<li>Graphs</li
</ol>
</body>
</html>
Ordered List Type Attribute with Value
Type Descriptions
13
Values Descriptions
HTML tables allow web developers to arrange data into rows and columns.
A simple HTML table:
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds_Futterkiste</td>
<td>Maria_Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro_comercial_Moctezuma</td>
<td>Francisco_Chang</td>
<td>Mexico</td>
</tr>
</table>
14
Tr stands for table row.
An HTML form is a section of a document which contains controls such as text fields,
password fields, checkboxes, radio buttons, submit button, menus etc.The HTML
form facilitates the user to enter data that is to be sent to the server for processing
such as name, email address, password, phone number, etc.
<body>
<form>
Enter your name <br>
<input type=”text” name=”username”>
</form>
</body>
Tag Description
15
1.10 HTML Tags
Tag Description
Chapter 2
CSS
2.1 Introduction
16
2.2 CSS Selectors
The selector points to the HTML element where the CSS style is to be applied. The
CSS property is separated by semicolons. It is a combination of the selector name
followed by the property: value pair that is defined for the specific selector. let us see
the syntax and how we can use the CSS to modernize the website.
Group Selector
Selects all elements on the page.
17
2.3 CSS Opacity
The opacity in CSS is the property of an element that describes the transparency of
the element. It is the opposite of transparency & represents the degree to which the
content will be hidden behind an element.
The opacity property is used in the image to describe the transparency of the image.
The value of opacity lies between 0.0 to 1.0 where a low value represents high
transparency and a high value represents low transparency. The percentage of opacity
is calculated as Opacity% = Opacity * 100.
<style>
.forest {
opacity: 0.5;
}
</style>
Background
Property Description
18
Background
Property Description
element {
border: 1px solid black;
}
Property Description
border-width Sets the width of the border (in pixels, points, or other units).
19
2.6 Margin and Padding
Margins, as defined by the CSS margin property, create spaces around an element,
setting it apart from neighbouring elements.
Margin Properties
margin-left: Determines the width of the margin on the left side of an element.
CSS Padding
An element's padding is the space between its content and its border.
The padding property is a shorthand property for:
padding-top
padding-right
padding-bottom
padding-left
If the padding property has four values:
padding:10px 5px 15px 20px;
o top padding is 10px
20
o right padding is 5px
o bottom padding is 15px
o left padding is 20px
If the padding property has three values:
padding:10px 5px 15px;
o top padding is 10px
o right and left padding are 5px
o bottom padding is 15px
If the padding property has two values:
padding:10px 5px;
o top and bottom padding are 10px
o right and left padding are 5px
If the padding property has one value:
padding:10px;
o all four paddings are 10px
Chapter 3
Javascript
3.1 Introduction
document.getElementById("demo").innerHTML = "Hello
JavaScript";
document.getElementById("demo").style.display = "none";
21
JavaScript Can Show HTML Elements
document.getElementById("demo").style.display = "block";
Automatically
Using var
Using let
Using const
Automatically
x = 5;
y = 6;
z = x + y;
Using var
var x = 5;
var y = 6;
var z = x + y;
Using let
let x = 5;
let y = 6;
let z = x + y;
Using const
const x = 5;
const y = 6;
const z = x + y;
JavaScript operators are symbols that are used to perform operations on operands.
22
There are following types of operators in JavaScript.
1. Arithmetic Operators
2. Comparison (Relational) Operators
3. Bitwise Operators
4. Logical Operators
5. Assignment Operators
6. Special Operators
+ Addition 10+20 = 30
- Subtraction 20-10 = 10
/ Division 20/10 = 2
% Modulus 20%10 = 0
(Remainder)
23
>= Greater than or equal to 20>=10 = true
= Assign 10+10 = 20
Operator Description
(?:) Conditional Operator returns value based on the condition. It is like if-else.
24
delete Delete Operator deletes a property from the object.
// Numbers:
let length = 16;
let weight = 7.5;
// Strings:
let color = "Yellow";
25
let lastName = "Johnson";
// Booleans
let x = true;
let y = false;
// Object:
const person = {firstName:"John", lastName:"Doe"};
// Array object:
const cars = ["Saab", "Volvo", "BMW"];
// Date object:
const date = new Date("2022-03-25");
JavaScript conditional statements allow you to execute specific blocks of code based
on conditions. If the condition is met, a particular block of code will run; otherwise,
another block of code will execute based on the condition.
Conditional
Statement Description
26
1. Using if Statement
if ( condition ) {
// If the condition is met,
//code will get executed.
}
if (condition1) {
// Executes when condition1 is true
if (condition2) {
// Executes when condition2 is true
}
}
3. else if Statement
if (1st condition) {
// Code for 1st condition
} else if (2nd condition) {
// ode for 2nd condition
} else if (3rd condition) {
// Code for 3rd condition
} else {
// ode that will execute if all
// above conditions are false
}
switch (expression) {
case value1:
statement1;
break;
case value2:
statement2;
break;
. . .
case valueN:
27
statementN;
break;
default:
statementDefault;
};
5. Nested if…else
if (condition1) {
// Code block 1
if (condition2) {
// Code block 2
} else {
// Code block 3
}
} else {
// Code block 4
}
The while loop executes a block of code as long as a specified condition is true.
28
while (condition) {
Code block to be executed
}
Javascript Do-While
A Do-While loop is another type of loop in JavaScript that is similar to the while
loop, but with one key difference: the do-while loop guarantees that the block of code
inside the loop will be executed at least once, regardless of whether the condition is
initially true or false .
do {
// code block to be executed
} while (condition);
A function in JavaScript is a reusable block of code that performs a specific task. You
define it once, and then you can run (or “call”) it whenever you need that task done in
your program.
29
// Function body
}
Why Functions?
Functions can be used multiple times, reducing redundancy.
Break down complex problems into manageable pieces.
Manage complexity by hiding implementation details.
Can call themselves to solve problems recursively.
Function Invocation
Triggered by an event (e.g., a button click by a user).
When explicitly called from JavaScript code.
Automatically executed, such as in self-invoking functions.
Function Definition
Function Expression
30
HTML allows event handler attributes, with JavaScript code, to be added to HTML
elements.
Example
<button onclick="document.getElementById('demo').innerHTML
= Date()">The time is?</button>
Common HTML Events
Event Description
onmouseout The user moves the mouse away from an HTML element
Event handlers can be used to handle and verify user input, user actions, and browser
actions:
31
Java Script helps us perform Client side validation, before input is sent to a web
server.
Example:
If a form field (firstname) is empty, this function alerts a message, and returns false,
to prevent the form from being submitted:
function validateForm() {
let x = document.forms["myForm"]["firstname"].value;
if (x == "")
{
alert("Name must be filled out");
return false;}}
Chapter 4
Project Report
4.1. INTRODUCTION
The web design project namely “Menz Mart” is an e-kart front end project
assigned to our group (a group of 8 people) during our training at CTTC
Bhuvneshwar which object to design an e-kart website particular to men’s
cosmetics, i.e. various top men’s cosmetic brand products at one place.
The Aim & Objective of this will be achieved after completion of this
project are discussed ahead in this chapters. The aims and objectives are
as follows:
32
o A about us and service page to let customer know our credibility.
o A contact us page for customer support.
o A Cart page and checkout page where one can easily submit their
orders.
HARDWARE REQUIREMENT
SOFTWARE REQUIREMENT
o CSS:- Cascading Style Sheets (CSS) is a style sheet language used for
describing the presentation of a document written in a markup
33
language like HTML.
Coding:
1. HTML Development:
o Create the structural framework of the web application using
HTML.
o Implement semantic HTML elements to ensure meaningful and
accessible content.
2. CSS Styling:
o Apply CSS to style the web application, including layout, color
schemes, typography, and responsive design.
3. JavaScript Functionality:
o Develop JavaScript code to add interactivity and dynamic behavior
to the web application.
Testing:
1. Unit Testing:
o Test individual components of the web application to ensure they
work as intended. This might include checking form inputs,
interactive elements, or JavaScript functions.
2. Cross-Browser Testing:
o Verify that the web application performs consistently across
different web browsers (e.g., Chrome, Firefox, Safari, Edge).
3. Responsive Testing:
o Test the application on various screen sizes and devices to ensure it
is responsive and displays correctly on mobile, tablet, and desktop
screens.
34
4. User Acceptance Testing (UAT):
o Gather feedback from actual users to ensure the application meets
their needs and expectations. Make adjustments based on user
feedback.
Login page
Home page
Shop/Category page
35
About Us page
Service page
Contact Us page
36
Cart page
Product Page
Checkout Page
37
CONCLUSION
The website has been computed successfully and was also tested
successfully by taking "Manual Test Cases". It is user friendly, and
has required options, which can be utilized by the user to get the
desired results. This website named “Menz Mart” is developed
using HTML, CSS, JS as front end. The goals that are achieved by
the website are:
User Friendly.
Responsive and credible
Fast & well- Designed.
Simplified and Accessible.
Chapter 5
38
References
Websites:
Geeksforgeeks: https://www.geeksforgeeks.org
Javatpoint: https://www.javatpoint.com
W3schools: https://www.w3schools.com
Others:
39