Ilovepdf Merged
Ilovepdf Merged
on
“FRONT-END DEVELOPMENT”
Submitted in the fulfilment of the requirement for the award of the degree of
Bachelor of Technology
in
by
ANKIT PRAJAPATI
(Roll No. 2226226)
I hereby certify that the work which is being presented in this training report with the project
entitled FRONT-END DEVELOPMENT by ANKIT PRAJAPATI, University Roll
No.2226226 in partial fulfillment of requirements for the award of degree of B.Tech.
(Computer Science & Engineering) submitted in the Department of Computer Science &
Engineering at I.K. GUJRAL PUNJAB TECHNICAL UNIVERSITY is an authentic record
of my own work under the EDUNET FOUNDATION
The matter presented has not been submitted by me in any other University / Institute for the
award of B.Tech. Degree.
This is to certify that the above statement made by the candidate is correct to the best of my
knowledge.
(Signature of Internal Examiner)
This work is just not an individual contribution till its completion. I take this
opportunity to express a deep gratitude towards my teacher for providing excellent
guidance encouragement and inspiration throughout the Training work. Without his
invaluable guidance, this work would never have been a successful one.
At last we must express our sincere heartfelt gratitude to all the staff members
of Computer Science & Engineering Department who helped me directly or
indirectly during this course of work.
ANKIT PRAJAPATI
ABSTRACT
This report outlines the six-week front-end development training undertaken at Edunet
Foundation, a social enterprise established in 2015 dedicated to bridging the academia-
industry divide, enhancing student employability, promoting innovation, and fostering an
entrepreneurial ecosystem in India.
The training program provided hands-on experience in designing and developing user
interfaces for websites and web applications, focusing on technologies such as HTML, CSS,
JavaScript.
Throughout the training, emphasis was placed on creating responsive, accessible, and visually
appealing user interfaces, understanding client requirements, designing prototypes, coding,
testing, and deploying projects.
The organization has a national footprint, with programs benefiting tens of thousands of
learners annually, and has held Special Consultative Status with the Economic and Social
Council (ECOSOC) of the United Nations since 2020.
The report concludes with reflections on the challenges faced, solutions implemented, and
skills developed during the training, underscoring the critical role of front-end development in
enhancing user experiences in digital products.
Contents
1 Introduction 1
1.1 What is Web Hosting? . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 What is Website? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2.1 How to access Websites? . . . . . . . . . . . . . . . . . . . . . . 6
1.2.2 Types of Website: . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Domain Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 HTML 10
3.1 What is HTML used for ?......................................................................................10
3.2 HTML Basic Format Page Structure....................................................................10
3.3 Designing Web Page................................................................................................11
4 CSS 16
4.1 What is CSS ?.........................................................................................................16
4.2 Why we learn CSS?..................................................................................................16
4.3 How CSS is different from HTML?..........................................................................19
4.4 Why is CSS used in HTML?...................................................................................20
5 JavaScript 22
5.1 What is JavaScript...................................................................................................22
5.2 Why JavaScript is used?........................................................................................24
5.3 How JavaScript is different from HTML?...............................................................25
v
5.4 Why to learn JavaScript ?......................................................................................26
6 Conclusion 27
Bibliography 28
vi
List of Figures
4.1 CSS.............................................................................................................................17
5.1 Javascript..................................................................................................................24
vii
Chapter 1
Introduction
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 function-
ality 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 num-
ber of content management systems (CMS) fall into this category, including WordPress,
Joomla!, Drupal, TYPO3, and Adobe Experience Manager, among others.
Web: It refers to websites, web pages or anything that works over the internet.
Development: It refers to building the application from scratch.
1
1.1 What is Web Hosting?
A web hosting service is a type of Internet hosting service that hosts websites for clients,
i.e. it offers the facilities required for them to create and maintain a site and makes
it accessible on the World Wide Web. Companies providing web hosting services are
sometimes called web hosts.
Web Server or Web Host is a computer system that provide web hosting. When In-
ternet user’s want to view your website, all they need to do is type your website address
or domain into their browser. The user’s computer will then connect to your server and
your web pages will be delivered to them through the browser. Basically, the web hosts
allow the customers to place documents, such as HTML pages, graphics, and other mul-
timedia files, etc. onto a special type of computer called a web server. It provides a
constant and high-speed connection to the backbone of the Internet.
• one or more servers to act as the host(s) for the sites; servers may be physical or
virtual
• colocation for the server(s), providing physical space, electricity, and Internet con-
nectivity;
• Domain Name System configuration to define name(s) for the sites and point them
to the hosting server(s);
2
• a web server running on the host;
• site-specific configuration
• often, a database;
• software and credentials allowing the client to access these, enabling them to create,
configure, and modify the site;
• email connectivity allowing the host and site to send email to the client.
• Free Hosting
• Dedicated Hosting
• Co-location Hosting
Free Hosting:
This is a free non-paid web hosting service. This type of hosting is available with
many prominent sites that offer to host some web pages for no cost, like Hostinger.
Advantages:
• Free of cost
• Use websites to place advertisements. banners and other forms of advertising media
Disadvantages:
3
• Customer support is missing
Shared/Virtual Hosting:
It’s a web hosting service where many websites reside on one web server connected
to the internet. This type of hosting is provided under one’s own domain name,
www.yourname.com. With a hosting plan with the wed b hosting company, one
can present oneself as a fully independent identity to his/her web audience, like
Lindo.
Advantages:
Disadvantages:
Dedicated Hosting:
Hosted on a dedicated server, this type of hosting is best suited for large websites
with high traffic. In this, the company wishing to go online rents an entire web
server from a hosting company. This is suitable for companies hosting larger web-
sites, maintaining others’ sites or managing a big online mall, etc like Google
Cloud.
Advantages:
4
• Ideal for large business
Disadvantages:
Co-located Hosting:
This hosting lets you place your own web server on the premises of a service
provider. It is similar to that of dedicated hosting except for the fact that the
server is now provided by the user-company itself and its physical needs are met
by the hosting company like AWS.
Advantages:
• High Security
Disadvantages:
• Its expensive
5
• Require high skills
It’s simple to find a reliable web hosting platform on which to host your website or
launch a company.
• Dynamic Website
Static Website: In Static Websites, Web pages are returned by the server which are
prebuilt source code files built using simple languages such as HTML, CSS, or JavaScript.
There is no processing of content on the server (according to the user) in Static
Websites. Web pages are returned by the server with no change therefore, static
Websites are fast. There is no interaction with databases. Also, they are less costly as
the host does not
6
need to support server-side processing with different languages.
Static does not mean that it will not respond to user actions, These Websites are called
static because these cannot be manipulated on the server or interact with databases
(which is the case in Dynamic Websites).
Dynamic Website: In Dynamic Websites, Web pages are returned by the server which
are processed during runtime means they are not prebuilt web pages but they are built
during runtime according to the user’s demand with the help of server-side scripting
languages such as PHP, Node.js, ASP.NET and many more supported by the server.
So, they are slower than static websites but updates and interaction with databases are
possible.
Dynamic Websites are used over Static Websites as updates can be done very easily as
compared to static websites (Where altering in every page is required) but in Dynamic
Websites, it is possible to do a common change once and it will reflect in all the web
pages.
That’s why remembering all these numbers is a little bit challenging and hence
exploring the website, to solve all these challenges the system called DNS (Domain
Name System) came into existence which converts the IP address into Domain name
and vice versa. which makes it easy to remember the name that is pointing to the
particular IP address of any website these names are called the Domain name.
7
For example “www.geeksforgeeks.org” is the domain name which it pointing to the par-
ticular IP address. When we type the domain name to our browser URL bar then the
DNS converts this domain name to the IP address and we become able to explore that
particular website.
.com: It is the short form of the “commercial” word and this was the first TLD and
most popular for the business and commercial websites.
.net: It is the short form of the “network” word and this TLD is for the technology-
related website but now it is commonly used for many websites.
.edu: It is the short form of the “education” word and this TLD is used for Educational
websites.
.org: It is the short form of the “organization” word and this TLD is for the organiza-
tional websites.
.gov: It is the short form of the “government” word and this TLD is used for the gov-
ernment websites.
.mil: It is the short form of the “military” word and this TLD is strictly used for the
U.S military and government agencies.
8
Chapter 2
A Front-End Web Development Tool is actually the software that allows the front-end
developers to build the website layout and UI more efficiently and without any hassle.
With the help of such tools – the work of front-end web developers, especially the repet-
itive or monotonous tasks, gets reduced that subsequently fastens the web development
process.
There are numerous front-end web development tools out there for various specific
requirements such as HTML, CSS, and JavaScript tools, Code-Editing tools, Deployment
Tools, Prototyping Wireframing tools, Security tools, and many more. Though you’re
required to consider various factors before opting out for a particular tool such as your
requirements (quite obvious it is!!), offered functionalities, ease of use, platform
compat- ibility, prices, etc. The 3 basic and most important tools for web development
are
9
Chapter
3 HTML
10
which all web pages are created.
11
DOCTYPE! html – A doctype or document type declaration is an instruction that
tells the web browser about the markup language in which the current page is written.
It is not an element or tag. The doctype declaration is not case-sensitive.
html tag – This tag is used to define the root element of HTML document. This
tag tells the browser that it is an HTML document. It is the second outer container
element that contains all other elements within it.
head tag – This tag is used to define the head portion of the HTML document that
contains information related to the document. Elements within the head tag are not
visible on the front-end of a webpage.
body tag – The body tag is used to enclose all the visible content of a webpage. In
other words, the body content is what the browser will show on the front end.
Bold Tag (¡strong¿. . . ¡/strong¿ or¡b¿. . . ¡/b¿): These tags are used to make text
look bold.
12
is that ¡em¿semantically emphasis on important text or word whereas ¡i¿ tag is used to
make is just used to make text italics.
Comment tag: It is used to set the comment in an HTML document. It is not visible
on the browser.
Syntax: ¡!– Statements... –¿
Image Tag: If we need to add an image to our website we need to use the follow-
ing
Syntax: ¡img src=”gfg.PNG” alt=”GeeksforGeeks Image”¿
img: Tells browser that we want to add an image. src: Tells source of image for eg
image from desktop or a website. alt: This attribute is used to describe an image. If the
image is not able to download in a web browser due to some reason then alt is shown.
Anchor Tag: This tag is mainly used to connect one web page to another.
Syntax: ¡a href=”https://www.geeksforgeeks.org/c-plus-plus/?ref=shm”¿ Click Here to
Learn C++¡/a¿
Radio button tag: It is used to select only one option from the given options.
Syntax: ¡input type=”radio” name=”option”¿ optionvalue
13
Example1 : Thisisthebasicexampleof HTMLthatdisplaytheheadingandparagraphcontent.
HTML
14
Output:
15
Chapter
4 CSS
16
Basic Format: It is the basic structure of CSS style of an webpage.
Inline: Inline CSS contains the CSS property in the body section attached with the
element known as inline CSS.
Internal or Embedded: The CSS ruleset should be within the HTML file in the
head section i.e the CSS is embedded within the HTML file.
External: External CSS contains a separate CSS file that contains only style property
with the help of tag attributes.
17
Let’s see a small example of HTML webpage with CSS styles. Here, we use styles to
set the alignment and text color of a webpage.
18
Output :
• HTML consists of tags inside which text is enclosed and CSS consists of selectors
and declaration blocks.
• We cannot use HTML inside a CSS sheet but we can use CSS inside an HTML
document.
19
4.4 Why is CSS used in HTML?
Solves a big problem: Font, color, background style, element alignments, border, and size
tags had to be duplicated on each web page before CSS. This was a lengthy procedure.
Saves a lot of time: Because CSS style definitions are stored in external CSS files, updating
only one file can modify the entire website.
Provide more attributes: CSS gives more specific features for defining the look and
feel of a website than simple HTML.
Pages load faster: CSS doesn’t require you to write HTML tag attributes all of the
time. A tag’s rule can be written once and applied to all instances of the tag. As a
result, CSS uses less code, resulting in speedier download times.
Easier Website maintenance: CSS makes website maintenance much easier. If we need
to make a global change to the file, we can simply alter the style, which will update all of
the elements on the web page.
Multiple device compatibility: We can use CSS with older language versions be-
cause it is compatible with them. CSS makes it possible to optimize material for several
devices. Base for web development: HTML and CSS is the basic skill that every web
developer should know. It is the basic skill that is required for building a website.
Makes your website look attractive: A website that’s dull and plain will not at-
tract the user, so adding some style would surely make your website presentable to the
user.
Makes the design come live: A web developer is responsible for making the design given
to him as a live product. It is used for styling to develop the design of the website.
Increases user experience of the website: A website with a simple yet beautiful UI
would
20
help the users to go through the website easily. It is used to make the user interface better.
More career opportunities: Since CSS is a basic requirement while learning Web
Development, therefor there are abundant career opportunities for it. As a freelancer,
you can land up to many projects.
21
Chapter 5
JavaScript
Internal JavaScript: We can add JS code 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.
• Browser does not have to make an extra HTTP request for JavaScript code.
22
• The readability of code becomes poor.
External JavaScript File: We can create a file with .js extension and paste the
JS code inside it. After creating the file, add this file in ¡script src=”filename.js”
> taginside < head > tagoftheHTMLfile.
• Coders can easily download your code using the url of the script(.js) file.
• An extra HTTP request is made by the browser to get this JavaScript code.
23
This example describes a simple function and prints the values.
Creating Interactive Websites: JavaScript is used to make the web pages dynamic
24
and interactive. It means using JavaScript, we can change the web page content and
styles dynamically.
Web Servers: We can make robust server applications using JavaScript. To be precise
we use JavaScript frameworks like Node.js and Express.js to build these servers.
25
5.4 Why to learn JavaScript ?
JavaScript is the most popular and hence the most loved language around the globe.
Apart from this, there are abundant reasons to learn it. Below are a listing of few im-
portant points:
Used both Client and Server-side: Earlier JavaScript was used to build client-side
applications only, but with the evolution of its frameworks namely Node.js and
Express.js, it is now widely used for building server-side applications too.
Huge community support: JavaScript has a huge community of users and mentors
who love this language and take it’s legacy forward.
26
Chapter 6
Conclusion
In today’s Web development, a good page design is essential. A bad design will lead to
the loss of visitors and that can lead to a loss of business. In general, a good page layout
has to satisfy the basic elements of a good page design. This includes color contrast,
text organization, font selection, style of a page, page size, graphics used, and
consistency. In order to create a well-designed page for a specific audience. The
developer needs to organized and analyze the users’ statistics and the background of
the users. Although it can be hard to come up with a design that is well suited to
all of the users, there will be a design that is appropriate for most of the audience.
The better the page design, the more hits a page will get. That implies an increase in
accessibility and a possible increase in business. A general purposed Web site should
use non-frame pages and graphics navigation bar with rollover effects. In addition to
the graphic navigation bar with rollover effects, each page should also have a text-only
navigation bar for easy control. The developer should also create a Cascading Style
Sheet to control the font and font-size and use the style sheet throughout the site to
obtain a consistent look and feel.
27
Bibliography
[1] https://www.geeksforgeeks.org/
[2] https://www.w3schools.com/
28