You are on page 1of 41

P age |1

ONLINE ORDERING FOOD


PROJECT REPORT [PROJ-CSE-322-G]

SUBMITTED IN PARTIAL FULFILLMENT OF THE


REQUIREMENTS FOR THE AWARD
OF
DEGREE OF BACHELOR OF TECHNOLOGY IN COMPUTER SCIENCE ENGINEERING

Submitted By

Name: YASHASVE SUBMITTED TO:

University Roll No. Dr. ASHIMA MEHTA


(HOD)

Department of Computer Science & Engineering

DRONACHARYA COLLEGE OF ENGINEERING,KHENTAWAS


,GURGAON ,HARYANA
P age |2

PROJECT REPORT [PROJ-CSE-322-G]


ONLINE ORDERING FOOD

Submitted in partial fulfillment of the


Requirements for the award of
Degree of Bachelor of Technology in Computer Science Engineering

Submitted By
Name: SUBMITTED TO
University Roll No. Dr. ASHIMA MEHTA
(HOD)

Department of Computer Science & Engineering (16 size)


MAHARISHI DAYANAND UNIVERSITY ROHTAK
(HARYANA)
P age |3

STUDENT DECLARATION

I HEREBY DECLARE THAT THE ONLINE ORDERING FOOD


WEBSITE IS AN AUTHENTIC RECORD OF MY OWN WORK
AS PROJECT WHICH HAS TO BE DONE IN 6TH SEMFOR THE
AWARD OF DEGREE OF B.TECH. (INFORMATION
TECHNOLOGY), DRONACHARYA COLLEGE OF
ENGINEERING.

(Signature of student)
YASHASVE 23174

Date:

Examined by:
Head of Department
(Signature and Seal)
P age |4

ACKNOLWLEDGEMENT
FIRST OF ALL WE THANK THE ALMIGHTY GOD FOR
BLESSING US AND SUPPORTING US THROUGHOUT THIS
ENDEAVOUR. WE TAKE THIS OPPORTUNITY TO EXPRESS OUR
PROFOUND AND SINCERE GRATITUDE TO OUR GUIDE MRS.
ASHIMA MEHTA FOR HER EXEMPLARY GUIDANCE,
MONITORING AND CONSTANT ENCOURAGEMENT
THROUGHOUT THE COURSE OF THIS TRAINING AND ALSO,
FOR THEIR CORDINAL SUPPORT, VALUABLE SUGGESTION
AND GUIDANCE. WE GRATEFULLY ACKNOWLEDGE THE
SUPPORT EXTENDED BY HEAD OF THE DIVISION, MRS.
ASHIMA MEHTA AND ALSO THANK HER FOR LETTING US USE
THE LAB FACILITIES. WE ALSO OBLIGED TO THE STAFF
MEMBERS OF THE DIVISION FOR THEIR COOPERATION

YASHASVE
23174
P age |5

CONTENT

1. INTRODUCTION

1.1 WHAT IS WEB DEVELOPMENT ........................................................................... 9

1.2 TYPES OF WEB DEVELOPMENT ........................................................................11

1.3 PROBLEM STATEMENT .......................................................................................15

1.4 BACKGROUND OF THE PROJECT......................................................................16

1.5 AIM AND OBJECTIVE OF STUDY ......................................................................17

1.6 SCOPE OF STUDY ..................................................................................................19

2. TOOLS AND TECHNOLOGIES USED

2.1 HTML (HYPER TEXT MARKUP LANGUAGE) .................................................. 21

2.2 CSS (CASCADING STYLE SHEETS) ...................................................................... 23

2.3 JAVASCRIPT ........................................................................................................... 26

2.4 VISUAL STUDIO CODE ......................................................................................... 29

3. IMPLEMENTATION AND OUTPUTS

3.1 NAVIGATION BAR ................................................................................................. 31

3.2 HOME PAGE ............................................................................................................ 33

3.3 FEATURESPAGE ..................................................................................................... 35

3.4 PRODUCTS PAGE ................................................................................................... 38

3.5 CATEGORIES PAGE ............................................................................................... 39

3.6 REVIEW US .............................................................................................................. 40

4. CONCLUSION AND FUTURE SCOPE

4.1 CONCLUSION AND SCOPE 41


P age |6

LIST OF FIGURES
CHAPTER 1

FIGURE 1.1 WEB DEVELOPMENT

FIGURE1.2 WEB DESIGNER VS WEB DESIGN

FIGURE 1.3 FRONT-END

FIGURE 1.4 BACK-END

FIGURE 1.5 FULL STACK

FIGURE 1.6

FIGURE 1.7

CHAPTER 2

FIGURE 2.1 HTML

FIGURE 2.2 CSS

FIGURE 2.3 VS CODE

CHAPTER 3

FIGURE 3.1 CODE FOR

NAVIGATION BAR

FIGURE 3.2 OUTPUT

FIGURE 3.3CODE FOR

HOME PAGE
P age |7

FIGURE 3.4 OUTPUT

FIGURE 3.5 CODE FOR

FEATURES PAGE

FIGURE 3.6 OUTPUT

FIGURE 3.7 CODE OF PRODUCTS

PAGE

FIGURE 3.8 OUTPUT

FIGURE 3.9 CODE FOR

CATEGORIES PAGE

FIGURE 3.10 OUTPUT

FIGURE3.11 CODE FOR

REVIEW PAGE

FIGURE 3.12 OUTPUT

CHAPTER 4

FIGURE 4.1
P age |8

CHAPTER – 1

INTRODUCTION
P age |9

CHAPTER-1
INTROUCTION
1.1 WHAT IS WEB DEVELOPMENT?
Web development, also known as website development, refers to the tasks associated with
creating, building, and maintaining websites and web applications that run online on a browser.
It may, however, also include web design, web programming, and database management. Web
development is closely related to the job of designing the features and functionality of apps
(web design). The term development is usually reserved for the actual construction of these
things (that is to say, the programming of sites). The basic tools involved in web development
are programming languages called HTML (Hypertext Markup Language), CSS (Cascading Style
Sheets), and JavaScript. There are, however, a number of other programs used to “manage” or
facilitate the construction of sites that would otherwise have to be done “from scratch” by
writing code. A number of content management systems (CMS) fall into this category, including
WordPress, Joomla!, Drupal, TYPO3, and Adobe Experience Manager, among others.

FIGURE 1.1

Web development is closely related to the job of designing the features and functionality of
websites and apps (often called “web design”), but the “web development” term is usually
reserved for the actual construction and programming of websites and apps. Think of all the web
pages we have used over the years – Web Developers built those sites, making sure they
functioned properly and performed in ways that allowed for a great user experience. Web
Developers do this by writing lines of code, using a variety of programming languages, which
vary depending on the tasks they are performing and the platforms they are working on.
Web Development vs. Web Design
P a g e | 10

Though there is overlap, there are also key differences between web development and web
design. Let’s take a closer look:
Web Designers:
• Create everything a user sees on a website or software product, including all visual, color,
typography, and usability elements
• Work directly with a client to create designs or work as part of a team to develop client
vision
• May need knowledge of a programming language or some coding skills, or at least some
level of familiarity with widely used languages such as HTML, CSS, PHP, and
JavaScript
• Create wireframes and prototypes to test design ideas, offer input on design logos,
branding, company style guides
Web Developer:
• Write the code that makes a website function, whether they work on the front end or back
end (server-side)

FIGURE 1.2

What Are the Most Common Programming Languages?


The most common programming languages involved in web development are:
• HTML (Hypertext Markup Language)
• CSS (Cascading Style Sheets)
• JavaScript
• React js
• Node js
P a g e | 11

1.2 TYPES OF WEB DEVELOPMENT?

Web development refers to the process of building and maintaining websites, web applications,
and other digital products that are accessed through the internet. Web development involves a
wide range of tasks, including web design, programming, database management, content
creation, and testing.
Web development can be broadly categorized into two areas:
1. Front-end development: This area of web development is concerned with designing and
building the visual elements of a website or web application that users interact with.
Front-end developers typically work with HTML, CSS, and JavaScript to create user
interfaces that are responsive, accessible, and visually appealing.
2. Back-end development: This area of web development is concerned with building the
server-side components of a website or web application, including the database, APIs,
and other server-side scripting languages. Back-end developers typically work with
languages such as PHP, Ruby on Rails, Python, or Node.js.
Web development requires a variety of skills, including coding, web design, project
management, and communication. It also involves keeping up-to-date with the latest
technologies and best practices in the industry. Successful web development projects require a
team of professionals who can work together to create a high-quality website or web application
that meets the needs of its users.
WHAT IS FRONT-END DEVELOPMENT?
Front-end development involves the “client-facing” side of web development. That is to say
usually, front-end web development refers to the portion of the site, app, or digital product that
users will see and interact with. A Front-End Developer, therefore, is responsible for the way a
digital product looks and “feels,” which is why they are often also referred to as Web Designers.
Front-End Web Developers focus on translating website design and visual ideas into code. A
front-end Software Developer takes the design ideas created by others on web development
teams and programs them into reality, acting as a bridge between design and technology.
P a g e | 12

FIGURE 1.3

Front-End Developers will usually need to possess a solid understanding of programming


languages, including HTML, CSS, and JavaScript, as well as frameworks like React, Bootstrap,
Backbone, AngularJS, and EmberJS. Responsibilities of a Front-End Developer would include
creating responsive websites (that look and function well on any device), conducting website
testing and fixing any bugs detected along the web development process, and ensuring site
structure follows SEO best practices.
WHAT IS BACK-END DEVELOPMENT?
If Front-End Developers are responsible for how a digital product looks, BackEnd Developers
are focused on how it works. A Back-End Developer creates the basic framework of a website
before maintaining it and ensuring it performs the way it should, including database interactions,
user authentication, server, network and hosting configuration, and business logic.
Working behind the scenes – or serverside – Back End Developers are concerned with the
systems and structures that allow computer applications to perform as desired. The primary
responsibility of Back-End Developers is to ensure the functionality of the site, including its
responsiveness and speed. To do that, Back-End Developers have to know how to build servers
with modern frameworks (while developing custom APIs and serving static websites and files),
and how to manage databases and data on a web server. Typically, Back-End Developers use
server-side programming languages, including PHP, Ruby, and Python, as well as tools including
MySQL, Oracle, and Git.
P a g e | 13

FIGURE 1.4

WHAT IS FULL-STACK DEVELOPMENT?


A Full-Stack Developer is someone familiar with both front- and back-end development. Full
Stack Developers usually understand a wide variety of programming languages and because of
their versatility, they might be given more of a leadership role on projects than developers who
specialize. They are generalists, adept at wearing both hats, and familiar with every layer of
development. Obviously, employers want to hire Full-Stack Developers – according to an Indeed
study, they are the fourth-most in-demand job in tech. If the title is contentious, it’s in the
generalist nature of the position.
Developers who specialize in the front-end or back-end often bristle at the notion that someone
could be equally adept at both – the expression “jack-of-all-trades, master of none” comes to
mind. “My defensive tendencies are normally put on high alert when I hear that magic phrase
(‘full- stack’),” wrote Front-End Developer Andy Shora. “Stacks are a lot bigger than what they
used to be, and being able to claim one has acquired refined skills at every layer of web
development is certainly not a small claim. Does this mean we have a broad range of skills or we
specialize in everything?” While that perception persists, there still is an increasing number of
tech professionals who consider themselves Full-Stack Developers. According to a recent Stack
Overflow survey of Developers, 48.2 percent consider themselves FullStack Developers. What’s
unclear is whether Developers are now expected to possess a broader skillset, or if Developers
are taking it upon themselves to understand functions at both the front-end and back-end. Either
way, it’s becoming increasingly important for aspiring Developers to have a foundation in both
P a g e | 14

FIGURE 1.5
P a g e | 15

1.3 PROBLEM STATEMENT

The problem statement for online ordering food is how to provide a seamless and efficient way
for customers to order food online. This involves addressing issues such as accessibility,
convenience, and customer satisfaction. The aim is to create a user-friendly and reliable platform
that allows customers to browse menus, place orders, make payments, and track their orders in
real-time. Additionally, the system should provide options for customizing orders, handling
special requests, and managing delivery or pickup options. Other challenges to be considered
include security, scalability, and integration with existing systems and technologies. Ultimately,
the goal is to create a seamless and enjoyable experience for customers while increasing the
efficiency and profitability of the food ordering and delivery process.

Many customers today prefer to order food online, either for convenience or safety reasons.
However, the process of ordering food online can sometimes be frustrating, time-consuming, and
confusing, leading to customer dissatisfaction and lost business for restaurants. Some common
problems that customers face when ordering food online include:

Difficulty navigating websites or mobile apps: Customers may have trouble finding the menu,
selecting the items they want, or placing their order.

Limited payment options: Some online food ordering platforms may not accept certain payment
methods, which can be inconvenient for customers.

Inaccurate or incomplete information: Customers may receive incorrect information about menu
items, prices, availability, or delivery times, leading to frustration and disappointment.

Poor customer service: Customers may have difficulty contacting customer support or resolving
issues with their orders.

Technical difficulties: Customers may experience glitches, errors, or crashes when using online
food ordering platforms, which can disrupt the ordering process and cause delays.

To address these issues, online food ordering platforms and restaurants need to provide a
seamless, user-friendly, and reliable ordering experience for customers, from start to finish.
P a g e | 16

1.4 BACKGROUND OF THE PROJECT

Online ordering for food has become a popular trend in recent years due to its
convenience, speed, and safety. The COVID-19 pandemic has further accelerated
the shift towards online food ordering, as more people are staying at home and
avoiding crowded places. According to a survey conducted by the National
Restaurant Association in 2020, 54% of consumers said they were more likely to
order takeout or delivery than dine in at a restaurant, and 37% said they were using
restaurant apps or websites to order food more often than before.

The online food ordering industry has grown rapidly, with many companies
offering various platforms and services for restaurants and customers. Some of the
popular online food ordering platforms include Grubhub, Uber Eats, DoorDash,
and Postmates, among others. These platforms allow customers to browse menus,
place orders, track deliveries, and make payments online or through mobile apps.
They also offer features such as ratings, reviews, and promotions to enhance the
customer experience and increase engagement.

To compete in this market, many restaurants have started to offer their own online
ordering systems, either through their websites or third-party platforms. By doing
so, they can increase their visibility, reach new customers, and streamline their
operations. However, developing and maintaining an online ordering system can
be a complex and challenging process, requiring technical expertise, marketing
skills, and customer support capabilities. Therefore, it is important for restaurants
to carefully evaluate their options and choose a solution that meets their needs and
objectives.

The online ordering food project is an initiative to provide customers with a


convenient and efficient way to order food from restaurants. This project is an
extension of the growing trend of e-commerce and the increasing demand for
online services, particularly in the food industry. With the advancement of
technology, customers have the option to order food online, either through
websites or mobile apps, at their convenience.

The COVID-19 pandemic has further accelerated the need for online ordering of
food as it reduces physical contact and the risk of spreading the virus. The
pandemic has also led to a significant shift in customer behavior, with more people
opting for online food delivery services rather than dining out.

Online food ordering platforms, such as GrubHub, DoorDash, Uber Eats, and
Postmates, have gained immense popularity in recent years, providing customers
with a vast selection of restaurants, menu items, and payment options.
P a g e | 17

1.5 AIM AND OBJECTIVE OF STUDY

FIGURE 1.6

Web development requires a variety of skills, including coding, web design, project
management, and communication. It also involves keeping up-to-date with the latest
technologies and best practices in the industry. Successful web development projects require a
team of professionals who can work together to create a high-quality website or web application
that meets the needs of its users.
The aim of the online ordering food project is to provide a convenient and efficient way for
customers to order food online, while also benefiting restaurants by increasing their revenue and
improving customer satisfaction. The project seeks to address the common problems that
customers face when ordering food online and provide a seamless and user-friendly ordering
experience.

The specific objectives of the online ordering food project are:

To develop a user-friendly website or mobile app that allows customers to browse menus, select
items, and place orders easily and securely.

To provide customers with a wide selection of restaurants and menu items to choose from,
including dietary preferences and restrictions.

To ensure accurate and up-to-date information on menu items, prices, availability, and delivery
times.
P a g e | 18

To offer multiple payment options, including credit/debit cards, online wallets, and cash on
delivery, to cater to the diverse needs of customers.

To provide efficient and reliable delivery services, with real-time tracking and updates for
customers.

To offer excellent customer support and feedback mechanisms to address customer concerns
and feedback.

To enable restaurants to manage orders efficiently, reduce errors, and improve customer
satisfaction.

To increase revenue for restaurants by expanding their customer base and reducing costs
associated with manual order-taking processes.

Overall, the online ordering food project aims to provide a win-win solution for both customers
and restaurants, by leveraging technology to improve the food ordering experience and increase
efficiency and profitability.
P a g e | 19

1.6 SCOPE OF STUDY

The scope of the online ordering food project includes the development and implementation of a user-friendly and
efficient online ordering system for food. The project will involve the following aspects:

Design and development of a website or mobile app: The project will involve designing and developing a user-
friendly and attractive website or mobile app that allows customers to browse menus, select items, and place
orders easily and securely.

Menu and restaurant selection: The project will include selecting a wide range of restaurants and menu items to
provide customers with a diverse selection of options, including vegetarian, vegan, and gluten-free options.

Information management: The project will involve ensuring that all information on the website or mobile app is
accurate and up-to-date, including menu items, prices, availability, and delivery times.

Payment options: The project will include providing customers with multiple payment options, including
credit/debit cards, online wallets, and cash on delivery, to cater to their diverse needs.

Delivery services: The project will involve ensuring that efficient and reliable delivery services are provided to
customers, with real-time tracking and updates.

Customer support and feedback: The project will involve offering excellent customer support and feedback
mechanisms to address customer concerns and feedback.

Order management: The project will include providing restaurants with an efficient order management system that
reduces errors and improves customer satisfaction.

The online ordering food project will focus on improving the ordering experience for customers and increasing
revenue for restaurants by expanding their customer base and reducing costs associated with manual order-taking
processes. The project will also contribute to the broader goal of digital transformation in the food industry by
leveraging technology to improve efficiency and profitability.

FIGURE 1.7
P a g e | 20

CHAPTER – 2

TOOLS AND
TECHNOLOGIES
USED
P a g e | 21

CHAPTER-2
TOOLS AND TECHNOLOGIES USED
In this chapter, we get to know about the technologies used for fulfilment of the project.

2.1 HTML:
HTML (Hyper Text Markup Language) is the code that is used to
structure a web page and its content. For example, content could be
structured within a set of paragraphs, a list of bulleted points, or using
images and data tables. As the title suggests, this article will give we a
basic understanding of HTML and its functions. HTML is a markup
language that defines the structure of our content. HTML consists of a
series of elements, which we use to enclose, or wrap, different parts of
the content to make it appear a certain way, or act a certain way. The
enclosing tags can make a word or image hyperlink to somewhere else,can italicize words, can
make the font bigger or smaller, and so on. HTML can embed programs written in a scripting
language such as JavaScript, which affects the behavior and content of web pages. Inclusion of
CSS defines the look and layout of content. The World Wide Web Consortium (W3C), former
maintainer of the HTML and current maintainer of the CSS standards, has encouraged the use of
CSS over explicit presentational HTML since 1997. A form of HTML, known as HTML5, is
used to display video and audio, primarily using the element, in collaboration with JavaScript.
HTML Markup:
HTML markup consists of several key components, including those called tags (and their
attributes), character-based data types, character references and entity references. HTML tags
most commonly come in pairs like <h1> and </h1>, although some represent empty elements
and so are unpaired, for example <img>The first tag in such a pair is the start tag, and the second
is the end tag (they are also called opening tags and closing tags). Another important component
is the HTML document type declaration, which triggers standards mode rendering. The text
between and <html> and </html> describes the web page,
and the text between <body> and </body> is the visible page content.
The markup text <title>This is a title</title> defines the browser page title shown on browser
tabs and window titles, and the tag <div> defines a division of the page used for easy styling.
Additionally, a <meta> element is used in between <head> and </head>, which can be used to
define the webpage’s metadata.
P a g e | 22

The Document Type Declaration <!DOCTYPE html> is for HTML5. If a declaration is not
included, various browsers will revert to "quirks mode" for rendering.

HTML Elements:
The general form of an HTML element is therefore: <tag attribute1="value1"
attribute2="value2">''content''</tag>.
Some HTML elements are defined as empty elements and take the form <tag
attribute1="value1" attribute2="value2">. Empty elements may enclose no content, for
instance, the <br> tag or the inline <img> tag. The name of an HTML element is the name used
in the tags.

FIGURE 2.1
P a g e | 23

2.2 CSS (cascading style sheet)


Cascading Style Sheets, fondly referred to as CSS, is a simple design language
intended to simplify the process of making web pages presentable.
CSS handles the look and feel part of a web page. Using CSS, we can control
the color of the text, the style of fonts, the spacing between paragraphs, how
columns are sized and laid out, what background images or colors are used, la
wet designs, variations in display for different devices and screen sizes as well as a variety of
other effects.
CSS is easy to learn and understand but it provides powerful control over the presentation of
an HTML document. Most commonly, CSS is combined with the markup languages HTML or
XHTML. Advantages of CSS
CSS saves time
we can write CSS once and then reuse same sheet in multiple HTML pages. we can define a
style for each HTML element and apply it to as many Web pages as we want.
Pages load faster
If we are using CSS, we do not need to write HTML
tag attributes every time. Just write one CSS rule of a tag and apply it to all the occurrences of
that tag. So less code means faster download times.
Easy maintenance
To make a global change, simply change the style, and all elements in all the web pages will be
updated automatically.
Superior styles to HTML
CSS has a much wider array of attributes than HTML, so we can give a far better look to our
HTML page in comparison to HTML attributes.
Multiple Device Compatibility
Style sheets allow content to be optimized for more than one type of device. By using the same
HTML document, different versions of a website can be presented for handheld devices such as
PDAs and cell phones or for printing. Global web standards Now HTML attributes are being
deprecated and it is being recommended to use CSS. So its a good idea to start using CSS inall the
HTML pages to make them compatible to future browsers.
Who Creates and Maintains CSS?
CSS is created and maintained through a group of people within the W3C called the CSS
Working Group. The CSS Working Group creates documents called specifications. When a
P a g e | 24

specification has been discussed and officially ratified by the W3C members, it becomes a
recommendation.
These ratified specifications are called recommendations because the W3C has no control
over the actual implementation of the language. Independent companies and
organizations create that software.
NOTE : The World Wide Web Consortium, or W3C is a group that makes recommendations
about how the Internet works and how it should evolve. CSS Versions
Cascading Style Sheets level 1 (CSS1) came out of W3C as a recommendation in December
1996. This version describes the CSS language as well as a simple visual formatting model for
all the HTML tags.
CSS2 became a W3C recommendation in May 1998 and builds on CSS1. This version adds
support for media-specific style sheets e.g. printers and aural devices, downloadable fonts,
element positioning and tables.
CSS Selectors
A CSS comprises of style rules that are interpreted by the browser and then applied to the
corresponding elements in our document. A style rule is made of three parts
Selector
A selector is an HTML tag at which a style will be applied. This could be any tag like <h1> or
<table> etc.

FIGURE 2.2

Property

A property is a type of attribute of HTML tag. Put simply, all the HTML attributes are converted
into CSS properties. They could be color,
P a g e | 25

border etc.
Value
Values are assigned to properties. For example, color property can have value either red or
#F1F1F1 etc.
we can put CSS Style Rule Syntax as follows
selector { property: value }
CSS declaration
In CSS, selectors declare which part of the markup a style applies to by matching tags and
attributes in the markup itself. Selectors may apply to the following:
all elements of a specific type, e.g. the second-level headers h2 elements specified by attribute, in
particular:
id: an identifier unique within the document, identified with a hash prefix e.g. #id
class: an identifier that can annotate multiple elements in a document, identified
with a period prefix e.g. .classname
elements depending on how they are placed relative to others in the document tree.
Classes and IDs are case-sensitive, start with letters, and can include alphanumeric characters,
hyphens, and underscores. A class may apply to any number of instances of any elements. An ID
may only be applied to a single element.
A declaration block consists of a list of declarations in braces. Each declaration itself consists of
a property, a colon (:), and a value. If there are multiple declarations in a block, a semi-colon
(;) must be inserted to separate each declaration. An optional semi-colon after the last (or
single) declaration may be used. Properties are specified in the CSS standard. Each property has
a set of possible values. Some properties can affect any type of element, and others apply only to
particular groups of elements. Values may be keywords, such as "center" or "inherit", or
numerical values, such as 200px (200 pixels), 50vw (50 percent of the viewport width) or 80%
(80 percent of the parent element's width).
P a g e | 26

2.3 JAVASCRIPT
JavaScript is a dynamic computer programming language. It is lightweight
and most commonly used as a part of web pages, whose implementations
allow client-side script to interact with the user and make dynamic pages. It
is an interpreted programming language with object-oriented capabilities.
JavaScript was first known as Live Script, but Netscape changed its name to
JavaScript, possibly because of the excitement being generated by Java.
JavaScript made its first appearance in Netscape 2.0 in 1995 with the name Live Script. The
general-purpose core of the language has been embedded in
Netscape, Internet Explorer, and other web browsers.
The ECMA-262 HYPERLINK "http://www.ecma- international.org/publications/index.html"
HYPERLINK "http://www.ecmainternational.org/publications/index.html"Specification
Defined a standard version of the core JavaScript language.
• JavaScript is a lightweight, interpreted programming language.
• Designed for creating network-centric applications.
• Complementary to and integrated with Java.
• Complementary to and integrated with HTML.
• Open and cross platform Client Side JavaScript
Client-side JavaScript is the most common form of the language. The script should be included
in or referenced by an HTML document for the code to be interpreted by the browser.
It means that a web page need not be a static HTML, but can include programs that
interact with the user, control the browser, and dynamically create HTML content.
The JavaScript client-side mechanism provides many advantages over traditional CGI server-
side scripts. For example, we might use JavaScript to check if the user has entered a valid e-mail
address in a form field. The JavaScript code is executed when the user submits the form, and
only if all the entries are valid, they would be submitted to the Web Server.
JavaScript can be used to trap user-initiated events such as button clicks, link navigation, and
other actions that the user initiates explicitly or implicitly.
Advantages of JavaScript
The merits of using JavaScript are
• Less server interaction We can validate user input before sending the page off to the
server. This saves server traffic, which means less load on our server.
P a g e | 27

• Immediate feedback to the visitors They don't have to wait for a page reload to see if
they have forgotten to enter something.
• Increased interactivity We can create interfaces that react when the user hovers over them
with a mouse or activates them via the keyboard.
• Richer interfaces We can use JavaScript to include such items as drag- and-drop
components and sliders to give a Rich Interface to our site visitors.
Limitations of JavaScript
We cannot treat JavaScript as a full-fledged programming language. It lacks the following
important features
• Client-side JavaScript does not allow the reading or writing of files. This has been kept
for security reason.
JavaScript cannot be used for networking applications because there is no such support available.
• JavaScript doesn't have any multi-threading or multiprocessor capabilities. Once again,
JavaScript is a lightweight, interpreted programming language that allows we to build
interactivity into otherwise static HTML pages.
JavaScript Development Tools
One of major strengths of JavaScript is that it does not require expensive development
tools. We can start with a simple text editor such as Notepad. Since it is an interpreted language
inside the context of a web browser, we don't even need to buy a compiler.
To make our life simpler, various vendors have come up with very nice JavaScript editing tools.
Some of them are listed here
• Microsoft FrontPage Microsoft has developed a popular HTML editor called FrontPage.
FrontPage also provides web developers with a number of JavaScript tools to assist in the
creation of interactive websites.
• Macromedia Dreamweaver MX Macromedia Dreamweaver MX is a very popular
HTML and JavaScript editor in the professional web development crowd. It provides
several handy prebuilt JavaScript components, integrates well with databases, and
conforms to new standards such as XHTML and XML.
• Macromedia HomeSite 5 HomeSite 5 is a well-liked HTML and JavaScript editor
from Macromedia that can be used to manage personal websites effectively.
JavaScript can be implemented using JavaScript statements that are placed within the <script>...
</script> HTML tags in a web page. We can place the <script> tags, containing our JavaScript,
anywhere within our web page, but it is normally recommended that we should keep it within the
P a g e | 28

<head> tags.
The <script> tag alerts the browser program to start interpreting all the text between these tags as
a script. A simple syntax of our JavaScript will appear as follows.
<script ...>
JavaScript
code
</script>
P a g e | 29

2.4 VISUAL STUDIO


Visual Studio Code combines the simplicity of a source code editor
with powerful developer tooling, like IntelliSense code completion and
debugging.
First and foremost, it is an editor that gets out of your way. The
delightfully frictionless edit-build-debug cycle means less time fiddling
with your environment, and more time executing on your ideas.
Visual Studio Code features a lightning fast source code editor, perfect for day-to-day use. With
support for hundreds of languages, VS Code helps you be instantly productive with syntax
highlighting, bracket-matching, auto-indentation, box-selection, snippets, and more. Intuitive
keyboard shortcuts, easy customization and community-contributed keyboard shortcut mappings
let you navigate your code with ease.
For serious coding, you'll often benefit from tools with more code understanding than just blocks
of text. Visual Studio Code includes built-in support for IntelliSense code completion, rich
semantic code understanding and navigation, and code refactoring.
And when the coding gets tough, the tough get debugging. Debugging is often the one feature
that developers miss most in a leaner coding experience, so we made it happen. Visual Studio
Code includes an interactive debugger, so you can step through source code, inspect variables,
view call stacks, and execute commands in the console.
VS Code also integrates with build and scripting tools to perform common tasks making
everyday workflows faster. VS Code has support for Git so you can work with source control
without leaving the editor including viewing pending changes diffs.

FIGURE 2.3
P a g e | 30

CHAPTER – 3

IMPLEMENTATION
ANDOUTPUTS
P a g e | 31

CHAPTER-3
IMPLEMENTATION AND OUTPUTS

3.1 NAVIGATION BAR


A navigation bar, also known as a navbar, is a graphical user interface element used in web
design to provide site visitors with a way to access the different pages and sections of a website.
It typically appears at the top of a webpage and contains links to the main sections of the site.
The design and layout of the navigation bar can greatly affect the user experience and ease of
navigation on a website. It's important to ensure that the navigation is clear, concise, and easy to
use, to help users find the information they're looking for quickly and easily.
Our first step is make the navigation bar of our website
1. Determine the content of your navigation bar: Decide which pages or sections you want
to include in your navigation bar. Consider the hierarchy of your pages and how they
relate to each other.

2. Choose a navigation style: Select a navigation style that works best for your website,
such as horizontal, vertical, dropdown, or hamburger menu.

3. Create HTML structure: Use HTML to create the structure of your navigation bar. Start
with a nav element and then add unordered list (ul) and list item (li) elements to create
the links.

4. Add CSS styling: Use CSS to style your navigation bar. Add styling rules to change the
color, font, size, and layout of your navigation bar. You can also add hover effects or
animations to make your navigation bar more interactive.

5. Add interactivity with JavaScript: If you want to add interactivity to your navigation bar,
you can use JavaScript. For example, you can create a dropdown menu that appears when
the user hovers over a link or clicks on a button.

6. Test and refine: Test your navigation bar on different devices and browsers to ensure it
works properly and looks good. Refine the design as needed to improve the user
experience.
P a g e | 32

FIGURE 3.1

FIGURE 3.2
P a g e | 33

3.2 HOME PAGE


The home page of a website is the main page that users see when they first visit the site. It's often
the most important page of the website because it sets the tone for the entire user experience and
provides users with an overview of what the website is about. Here are some key elements that a
home page should typically include:

1. Header: The header should be prominently displayed at the top of the page and should
contain the website logo, navigation menu, and any other important information or links.

2. Hero image or video: A hero image or video is a large, eye-catching visual element that
showcases the main message or purpose of the website. It should be visually appealing
and relevant to the website's content.

3. Main content: The main content of the home page should provide users with a clear idea
of what the website is about and what it has to offer. This can include a brief
introduction, key features or services, and calls-to-action (CTAs) that encourage users to
take action.

4. Testimonials or social proof: Including testimonials, reviews, or social proof can help
build trust with users and show them that others have had positive experiences with the
website.

5. Footer: The footer should be located at the bottom of the page and should contain
important links such as contact information, social media links, and copyright
information.

6. Responsive design: It's important to ensure that the home page (and the entire website) is
optimized for different screen sizes and devices. This means using responsive design
techniques to ensure that the website looks good and functions properly on desktops,
laptops, tablets, and smartphones.

7. Overall, the home page of a website should be designed with the user in mind and should
provide a clear and engaging introduction to the website's content and purpose.

The second steps to create a home page of our website:

1. Define the purpose of your home page: Determine what you want your home page to
achieve, such as promoting a product, showcasing services, or encouraging visitors to
explore the website further.

2. Identify your target audience: Consider the demographics, interests, and needs of your
target audience when designing your home page. This will help you create content and
visuals that are relevant and engaging.
P a g e | 34

3. Plan the layout: Sketch out a rough layout of your home page that includes the placement
of key elements such as the header, hero image or video, main content, and footer.
Consider using a grid system to help you organize your content and maintain consistency.

4. Choose visual elements: Select visual elements such as images, videos, and graphics that
support your messaging and branding. Use high-quality visuals that are relevant to your
content and create a consistent visual style throughout the page.

5. Write compelling copy: Craft copy that is clear, concise, and compelling. Use headlines,
subheadings, and bullet points to break up the text and make it easier to read. Focus on
benefits and solutions to the visitor's problems rather than just listing features.

6. Design the page: Use a combination of HTML, CSS, and potentially JavaScript to create
the design of your home page. Use a responsive design approach to ensure that your page
works well on different devices and screen sizes.

7. Test and refine: Test your home page on different devices and browsers to ensure that it
looks and functions properly. Refine the design and content as needed to improve the
user experience.

8. Overall, the process of creating a home page involves combining design, messaging, and
functionality to create a visually appealing and effective introduction to your website.

FIGURE 3.3
P a g e | 35

FIGURE 3.4

3.3 FEATURES PAGE

A feature page on an online ordering food website is a page dedicated to highlighting the key
features and benefits of using the website or mobile app for ordering food. The feature page
serves as a promotional tool to attract new customers and improve user engagement.

The feature page should be designed in an attractive and engaging manner, with clear and concise
messaging that highlights the key features and benefits of using the website or app for ordering
food. By highlighting these features, the feature page can help improve user engagement, attract
new customers, and increase revenue for the restaurants on the platform
P a g e | 36

FIGURE 3.5

FIGURE 3.6
P a g e | 37

3.4 PRODUCTS PAGE


Our third step is to create a page for our website which contains the range of products of
different type of food categories .
This page is design to make sure that customer get full knowledge of the products that we are
having.

FIGURE 3.7

FIGURE 3.8
P a g e | 38

3.5 CATEGORIES PAGE


Our fourth step is to add a page having the knowledge of the products. The knowledge of our
designers will help our user to get know more about our products. And also help us to build the
trust of our users.

FIGURE 3.9

FIGURE 3.10
P a g e | 39

3.6 REVIEW US PAGE


Last and the final steps of our website is to make a query page ,where the users can send their
suggestion their query

FIGURE 3.11

FIGURE 3.12
P a g e | 40

CHAPTER – 4

CONCLUSION
AND FUTURE
SCOPE
P a g e | 41

CHAPTER-4
CONCLUSION AND FUTURE SCOPE

In conclusion, the online food ordering project aims to provide a convenient and efficient
way for customers to order food online, while also benefiting restaurants by increasing
their revenue and improving customer satisfaction. The project has a significant impact on
the food industry, especially in the current pandemic situation, where the demand for
online food services has increased.

The project has significant potential for future scope, some of which are:

Integration of artificial intelligence (AI) and machine learning (ML) algorithms to provide
personalized recommendations to customers based on their past orders and preferences.

Integration of voice-activated assistants and chatbots for easier and faster ordering
processes.

Integration of blockchain technology to ensure secure and transparent transactions.

Expansion of the project to include additional features such as table reservation, loyalty
programs, and feedback mechanisms.

Collaboration with food delivery companies and logistics providers to optimize delivery
routes and reduce delivery times.

Expansion of the project to include more restaurants and food vendors to provide
customers with a wider range of options.

Overall, the online food ordering project has enormous potential for future scope, and
with the continuous development of technology, it can provide a more seamless and
personalized ordering experience for customers while also increasing revenue and
efficiency for restaurants.

FIGURE 4.1

You might also like