SlideShare a Scribd company logo
1 of 64
IT for Engineers
Sanjivani Rural Education Society’s
Sanjivani College of Engineering, Kopargaon-423603
(An Autonomous Institute Affiliated to Savitribai Phule Pune University, Pune)
NAAC ‘A’ Grade Accredited, ISO 9001:2015 Certified
Department of Information Technology
(NBA Accredited)
Mr. N. L. Shelake
Assistant Professor
Web Design
Course Contents: -
Web Design Mr. N. L. Shelake Department of Information Technology
JavaScript
īļJavaScript is a High Level, versatile and widely used
programming language primarily for web development.
īļIt is a client-side scripting language, executed by web
browsers, making web pages interactive.
īļJavaScript can also be used for server-side development
with technologies like Node.js.
Web Design Mr. N. L. Shelake Department of Information Technology
JavaScript
īļIts ability to add interactivity and dynamic behavior to
websites
īļIt is one of the core technologies used for web
development, alongside HTML (Hypertext Markup
Language) and CSS (Cascading Style Sheets).
Web Design Mr. N. L. Shelake Department of Information Technology
History of JavaScript
īƒ˜JavaScript was created by Brendan Eich in 1995
īƒ˜Netscape Communications Corporation
īƒ˜Initially named "Mocha" and then "LiveScript," it was eventually
renamed JavaScript as part of a partnership with Sun
Microsystems (now Oracle)
īƒ˜It is not related to JAVA
īƒ˜Mainly designed for client-side scripting in web browsers
JavaScript
Web Design Mr. N. L. Shelake Department of Information Technology
History of JavaScript
īƒ˜The first public release of JavaScript was in Netscape Navigator
2.0 in 1995
īƒ˜It allowed developers to add interactive elements and dynamic
behavior to web pages, making the web more engaging for users.
īƒ˜JavaScript's adoption was accelerated by the "Browser Wars" of
the late 1990s and early 2000s, primarily between Netscape
Navigator and Microsoft's Internet Explorer
īƒ˜Implemented their own versions of JavaScript
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
History of JavaScript
īƒ˜To address these issues and create a standardized specification for
JavaScript, the ECMA established and ECMAScript standard in
1997.
īƒ˜ECMAScript defines the core features of JavaScript.
īƒ˜The first standardized version was ECMAScript 1
īƒ˜European Computer Manufacturers Association. The organization
was founded in 1961 to standardize computer systems in Europe.
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
What is JavaScript?
īƒ˜JavaScript is a high-level, interpreted scripting language primarily
used for adding interactivity and behavior to web pages.
īƒ˜It allows developers to create dynamic content, manipulate the
Document Object Model (DOM), and interact with users.
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
Why JavaScript?
īƒ˜The primary language for web development
īƒ˜JavaScript is supported by all major web browsers (Cross-
Browser Compatibility)
īƒ˜JavaScript is a versatile language that can be used for both front-
end and back-end development
īƒ˜has led to the creation of numerous libraries, frameworks, and
tools that simplify and accelerate web development. like React,
Angular etc (Community)
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
Why JavaScript?
īƒ˜JavaScript's support for asynchronous programming, building
responsive and non-blocking applications.
īƒ˜ A large pool of JavaScript developers available in the job market,
As compare to other programming language
īƒ˜JavaScript is based on open web standards, making it accessible
and transparent. ECMA
īƒ˜JavaScript can easily integrate with other web technologies like
HTML and CSS, making it an integral part of the web
development stack
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
Sample Program
<html>
<body>
<h2>What Can JavaScript Do?</h2>
<p id=“hellodemo">JavaScript can change HTML content.</p>
<script>
document.getElementById(“hellodemo").innerHTML = "Hello";
</script>
</body>
</html>
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
How do you declare variables in JavaScript?
īƒ˜Variables can be declared using var, let, or const followed by the
variable name. For example
īƒ˜var x = 15;
īƒ˜let x = 5;
īƒ˜const x = 5;
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
What is the difference between let, const, and
var for variable declaration?
īƒ˜var has function-level scope and can be redeclared within the
same function.
īƒ˜let and const have block-level scope and cannot be redeclared
within the same block.
īƒ˜const is used for variables that should not be reassigned.
JavaScript Mr. N. L. Shelake Department of Information Technology
JavaScript
Basic Syntax
Variables: Declare variables using var, let, or const.
īļvar has function-level scope.
īļlet and const have block-level scope.
īļconst is used for constants..
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
Data types: JavaScript has dynamic types.
īļ Primitive types: Number, String, Boolean, Undefined,
Null.
īļ Reference types: Object, Array, Function.
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
Operators: Arithmetic, Comparison, Logical, Assignment,
Ternary.
Conditionals: if, else if, else, switch.
Loops: for, while, do...while, for...in, for...of.
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
Operators:
īƒ˜ Arithmetic - + / * % ++ --
īƒ˜ Assignment =, +=,-=,*=,/=
īƒ˜ Comparison ==,!=, >, <, >=, <=,
īƒ˜ Logical &&, ||, !
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
Operators: Arithmetic, Comparison, Logical, Assignment,
Ternary.
Conditionals: if, else if, else, switch.
Loops: for, while, do...while, for...in, for...of.
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
if (condition)
{
}
if (condition)
{
}
else
{
}
if (condition)
{
}
elseif
{
}
Else
{
}
If if else elseif
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
Operators: Arithmetic, Comparison, Logical, Assignment,
Ternary.
Conditionals: if, else if, else, switch.
Loops: for, while, do...while, for...in, for...of.
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
Switch switch(expression) {
case x:
// code block
break;
case y:
// code block
break;
default:
// code block
}
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
​<script> let day;
switch (new Date().getDay()) {
case 0: day = "Sunday"; break;
case 1: day = "Monday"; break;
case 2: day = "Tuesday"; break;
case 3: day = "Wednesday"; break;
case 4: day = "Thursday"; break;
case 5: day = "Friday"; break;
case 6: day = "Saturday";
}
document.getElementById(“sample").innerHTML = "Today is " + day;
</script>
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
Operators: Arithmetic, Comparison, Logical, Assignment,
Ternary.
Conditionals: if, else if, else, switch.
Loops: for, while, do...while, for...in, for...of.
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
<html><body>
<h2>JavaScript For Loop</h2>
<p id="demo"></p>
<script>
let text = "";
for (let i = 0; i < 5; i++)
{
text += "The number is " + i + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
</body> </html>
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
​<html>
<body>
<h1>Sample JavaScript Program</h1>
<p id="sample">Hi! JavaScript </p>
<button type="button"
onclick='document.getElementById("sample").innerHTML = "Hello
JavaScript!"'>Click Here</button>
</body> </html>
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
​<html>
<body>
<h1>Sample JavaScript Program</h1>
<p id=“sample"></p>
<script>
document.getElementById(“sample").innerHTML = "My First JavaScript";
</script>
</body>
</html>
Web Design Mr. N. L. Shelake Department of Information Technology
Basic Syntax
​<html>
<body>
<p id="demo"></p>
<script>
let x, y, z;
x = 5;
y = 6;
z = x + y;
document.getElementById("demo").innerHTML =
“addition is " + z + ".";
</script>
</body>
</html>
Web Design Mr. N. L. Shelake Department of Information Technology
Embedding with JavaScript
īļ Embedding JavaScript refers to the practice of including
JavaScript code within an HTML document.
īļ This can be done in several ways to add interactivity,
dynamic behavior, or functionality to a webpage.
Web Design Mr. N. L. Shelake Department of Information Technology
Embedding with JavaScript
īļ Inline Script: You can embed JavaScript directly within
an HTML file using a <script> tag.
īļ External Script: For larger JavaScript code or when you
want to reuse the same code across multiple pages, it's
common to place the code in an external JavaScript file
with a .js extension. You then reference this file in your
HTML using the <script> tag's src attribute.
Web Design Mr. N. L. Shelake Department of Information Technology
Validation
īļ Form validation used to usually take place at the server,
following client submission of all required data with a
click of the Submit button.
īļ The server would have to send all the data back to the
client and ask that the form be resubmitted with accurate
information if the data entered by the client was missing
or inaccurate.
īļ This was a very time-consuming procedure that used to
strain the server greatly.
Web Design Mr. N. L. Shelake Department of Information Technology
Validation
īļ JavaScript provides a way to validate form's data on the
client's computer before sending it to the web server.
Form validation generally performs two functions.
Web Design Mr. N. L. Shelake Department of Information Technology
Validation
īļ Basic Validation − First of all, the form must be checked
to make sure all the mandatory fields are filled in. It
would require just a loop through each field in the form
and check for data.
īļ Data Format Validation − Secondly, the data that is
entered must be checked for correct form and value. Your
code must include appropriate logic to test correctness of
data.
Web Design Mr. N. L. Shelake Department of Information Technology
PHP
īļ The term PHP is an acronym for PHP: Hypertext
Preprocessor.
īļ PHP is a server-side scripting language designed
specifically for web development.
īļ It is open-source which means it is free to download and
use. It is very simple to learn and use.
īļ The files have the extension “.php”.
Web Design Mr. N. L. Shelake Department of Information Technology
PHP
īļ Rasmus Lerdorf inspired the first version of PHP and
participated in the later versions.
īļ It is an interpreted language and it does not require a
compiler.
īļ PHP code is executed in the server.
īļ It can be integrated with many databases such as Oracle,
Microsoft SQL Server, MySQL, PostgreSQL, Sybase, and
Informix.
Web Design Mr. N. L. Shelake Department of Information Technology
PHP
īļ It is powerful to hold a content management system like
WordPress and can be used to control user access.
īļ It supports main protocols like HTTP Basic, HTTP Digest,
IMAP, FTP, and others.
īļ Websites like www.facebook.com and www.yahoo.com
are also built on PHP
Web Design Mr. N. L. Shelake Department of Information Technology
PHP
īļ One of the main reasons behind this is that PHP can be
easily embedded in HTML files and HTML codes can
also be written in a PHP file.
īļ The thing that differentiates PHP from the client-side
language like HTML is, that PHP codes are executed on
the server whereas HTML codes are directly rendered on
the browser.
īļ PHP codes are first executed on the server and then the
result is returned to the browser
Web Design Mr. N. L. Shelake Department of Information Technology
PHP
īļ Simple and fast
īļ Efficient
īļ Secured
īļ Flexible
īļ Cross-platform, it works with major operating systems
like Windows, Linux, and macOS.
īļ Open Source
īļ Powerful Library Support
īļ Database Connectivity
Web Design Mr. N. L. Shelake Department of Information Technology
Syntax
<?php
PHP code goes here
?>
Web Design Mr. N. L. Shelake Department of Information Technology
PHP Mr. N. L. Shelake Department of Information Technology
Syntax
<html>
<head>
<title>PHP Example</title>
</head>
<body>
<?php echo "Hello, World! This is PHP
code";?>
</body></html>
Output:-
Hello, World! This is PHP code
PHP Mr. N. L. Shelake Department of Information Technology
PHP Variables
īļ Variables are "containers" for storing information
īļ A variable can have a short name (like x and y) or a more
descriptive name (age, carname, total_volume).
īļ PHP variable names are case-sensitive!
PHP Mr. N. L. Shelake Department of Information Technology
PHP Variables
Rules for PHP variables:
īļ A variable starts with the $ sign, followed by the name of the
variable
īļ A variable name must start with a letter or the underscore
character
īļ A variable name cannot start with a number
īļ A variable name can only contain alpha-numeric characters
and underscores (A-z, 0-9, and _ )
īļ Variable names are case-sensitive ($age and $AGE are two
different variables)
PHP Mr. N. L. Shelake Department of Information Technology
PHP Example
<html> <body>
<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;
echo $txt;
echo "<br>";
echo $x;
echo "<br>";
echo $y;
?> </body> </html>
Hello world!
5
10.5
PHP Mr. N. L. Shelake Department of Information Technology
PHP Example
<html>
<body>
<?php
$temp = "HelloWorld";
echo "PHP First Program $temp!";
?>
</body>
</html>
PHP First Program HelloWorld!
PHP Mr. N. L. Shelake Department of Information Technology
PHP Example
<html>
<body>
<?php
$x = 5;
$y = 4;
echo "Addition is".($x + $y);
?>
</body>
</html>
Addition is 9
PHP Mr. N. L. Shelake Department of Information Technology
PHP Datatypes
PHP supports several data types that are used to represent
different kinds of values. Here are some of the commonly used
data types in PHP
īļ Integers: Example: $number = 42;
īļ Floats (Floating-point numbers): $floatNumber = 3.14;
īļ Strings: $text = "Hello, PHP!";
īļ Booleans: $isTrue = true;
īļ Arrays: $fruits = array("apple", "orange", "banana");
īļ NULL: $variable = NULL;
īļ Constants: define("PI", 3.14);
PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Same as, discussed in JavaScript
Arithmetic Operators:
īļ Addition (+): $sum = 5 + 3; // $sum is now 8
īļ Subtraction (-): $difference = 7 - 4; // $difference is now 3
īļ Multiplication (*): $product = 2 * 6; // $product is now 12
īļ Division (/): $quotient = 10 / 2; // $quotient is now 5
īļ Modulus (%): $remainder = 11 % 3; // $remainder is now 2
PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Same as, discussed in JavaScript
Assignment Operators:
īļ Assignment (=): $variable = 10; // Assigns the value 10 to
the variable
īļ Addition Assignment (+=), Subtraction Assignment (-=):
$x = 5;
$x += 3; // Equivalent to $x = $x + 3; // $x is now 8
PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Same as, discussed in JavaScript
Comparison Operators:
īļ Equal (==): $result = (5 == 5); // $result is true
īļ Identical (===): $result = (5 === "5"); // $result is false
īļ Not Equal (!=): $result = (10 != 5); // $result is true
īļ Not Identical (!==): $result = (10 !== "10"); // $result is true
īļ Less than(<)
īļ Greater than(>)
CSS Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Same as, discussed in JavaScript
Logical Operators:
īļ AND (&&): $result = (true && false); // $result is false
īļ OR (||): $result = (true || false); // $result is true
īļ NOT (!): $$result = !true; // $result is false
Increment and Decrement Operators
īļ Increment (++): $counter = 5; $counter++; // $counter is now 6
īļ Decrement (--): $counter = 5; $counter--; // $counter is now 4
PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
Concatenation Operator::
Concatenation (.):
$string1 = "Hello";
$string2 = " World!";
$greeting = $string1 . $string2;
// $greeting is now "Hello World!"
PHP Mr. N. L. Shelake Department of Information Technology
Operator and Expression
īļ In PHP, an expression is a combination of values, variables,
operators, and functions that, when evaluated, produces a
single value.
īļ Expressions can be simple or complex, depending on the
operations involved.
$sum = 5 + 3; // Addition
$difference = 7 - 4; // Subtraction
$product = 2 * 6; // Multiplication
$quotient = 10 / 2; // Division
$remainder = 11 % 3; // Modulus
PHP Mr. N. L. Shelake Department of Information Technology
Control statements
if Statement:
īļ The if statement is used for conditional execution of code.
<?php
$a = 10;
if ($a > 5) {
echo "a is greater than 5";
} else {
echo "a is not greater than 5";
}
?>
PHP Mr. N. L. Shelake Department of Information Technology
Control statements
While Loop:
īļ The while loop executes a block of code as long as the
specified condition is true.
<?php
$i = 1;
while ($i <= 5) {
echo $i;
$i++;
} ?
PHP Mr. N. L. Shelake Department of Information Technology
Control statements
for Loop:
īļ The for loop is used to iterate a statement or a block of
statements.
<?php
for ($i = 1; $i <= 5; $i++) {
echo $i;
}
?>
PHP Mr. N. L. Shelake Department of Information Technology
Control statements
foreach Loop::
īļ The foreach loop is used for iterating over arrays.
<?php
$colors = array("red", "green", "blue");
foreach ($colors as $value) {
echo $value;
}
?>
PHP Mr. N. L. Shelake Department of Information Technology
Control statements
break and continue statement:
īļ The break statement is used to exit a loop prematurely.
īļ The continue statement is used to skip the rest of the code
inside a loop for the current iteration.
<?php
for ($i = 1; $i <= 10; $i++) {
if ($i == 5) {
break; // exit the loop when $i is 5
}
echo $i; } ?>
PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
īļ XAMPP is a free, open-source cross-platform web server
solution stack package developed by Apache Friends. The
name "XAMPP" is an acronym for the components it bundles:
īļ X - Cross-platform
īļ A - Apache HTTP Server
īļ M - MariaDB (or MySQL)
īļ P - PHP
īļ P - Perl
PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
īļ XAMPP is a free, open-source cross-platform web server
solution stack package developed by Apache Friends. The
name "XAMPP" is an acronym for the components it bundles:
īļ X - Cross-platform
īļ A - Apache HTTP Server
īļ M - MariaDB (or MySQL)
īļ P - PHP
īļ P - Perl
PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
īļ Apache Web Server:
XAMPP includes the Apache HTTP Server, one of the most
widely used web servers globally. It provides a robust and flexible
platform for hosting websites and applications.
īļ Database Support (MariaDB or MySQL):
MariaDB, a fork of MySQL, is the default database system
included in XAMPP. MySQL can also be used interchangeably.
īļ PHP, Perl, and Other Programming Languages:
XAMPP supports PHP, a server-side scripting language widely
used for web development. Perl is also included, making it versatile
for various scripting needs.
PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
īļ phpMyAdmin:
XAMPP comes bundled with phpMyAdmin, a web-based
administration tool for managing MySQL and MariaDB
databases.
īļ Open Source and Cross-Platform:
XAMPP is open-source software, freely available for
Windows, Linux, and macOS. This cross-platform compatibility
makes it easy for developers to work on different operating
systems.
PHP Mr. N. L. Shelake Department of Information Technology
Hosting tool: XAMPP
īļ Easy Installation and Configuration:
XAMPP has a straightforward installation process, making it
suitable for both beginners and experienced developers.
Configuration files are easily accessible for customization.
īļ Development and Testing Environment:
XAMPP is designed for creating a local development
environment, allowing developers to test and debug their web
applications before deploying them to a live server.
īļ Wide Adoption:
Due to its ease of use and comprehensive features, It is widely
adopted by developers and used in educational.
PHP Mr. N. L. Shelake Department of Information Technology
MySQL
īļ MySQL is an open-source relational database management system
(RDBMS) that is widely used for managing and organizing data.
īļ It is a key component of the LAMP (Linux, Apache, MySQL,
PHP/Python/Perl) and MEAN (MongoDB, Express.js, AngularJS,
Node.js) stacks, making it a popular choice for web applications.
īļ Components of MySQL:
īļ MySQL Server - manages databases, processes queries, and controls
access
īļ MySQL Workbench: allows developers to design, model
īļ MySQL Shell: enables administrators and developers
īļ MySQL Connector: Provides connectors for various programming
languages
PHP Mr. N. L. Shelake Department of Information Technology
MySQL
īļ MySQL is a powerful, reliable, and widely used relational
database management system.
īļ Its open-source nature, scalability, and strong community support
make it a preferred choice for developers and businesses looking
for a robust and efficient database solution.
IT For Engineers
Thank You
PHP Mr. N. L. Shelake Department of Information Technology

More Related Content

What's hot

Web-Development-ppt.pptx
Web-Development-ppt.pptxWeb-Development-ppt.pptx
Web-Development-ppt.pptxAADITYADEVA
 
ppt of web designing and development
ppt of web designing and developmentppt of web designing and development
ppt of web designing and development47ishu
 
Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1Oleksii Prohonnyi
 
Rockwell collins be aerospace presentation
Rockwell collins be aerospace presentationRockwell collins be aerospace presentation
Rockwell collins be aerospace presentationrockwell_collins
 
Semantic web
Semantic webSemantic web
Semantic webRehithaP
 
web development.pptx
web development.pptxweb development.pptx
web development.pptxMohdArbazraza
 
PHP Summer Training Presentation
PHP Summer Training PresentationPHP Summer Training Presentation
PHP Summer Training PresentationNitesh Sharma
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page DesigningAmit Mali
 
Design, Analysis and Manufacturing of Braking system for an Universal Terrain...
Design, Analysis and Manufacturing of Braking system for an Universal Terrain...Design, Analysis and Manufacturing of Braking system for an Universal Terrain...
Design, Analysis and Manufacturing of Braking system for an Universal Terrain...EditorIJAERD
 
HTML Block and Inline Elements
HTML Block and Inline ElementsHTML Block and Inline Elements
HTML Block and Inline ElementsWebtech Learning
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notesDurgadevi palani
 
WEB DEVELOPMENT
WEB DEVELOPMENTWEB DEVELOPMENT
WEB DEVELOPMENTkhushi74
 
Web Development In 2018
Web Development In 2018Web Development In 2018
Web Development In 2018Traversy Media
 
Pasos para crear un sitio web
Pasos para crear un sitio webPasos para crear un sitio web
Pasos para crear un sitio webtomyycerr
 
Html and css presentation
Html and css presentationHtml and css presentation
Html and css presentationumesh patil
 
Web development
Web developmentWeb development
Web developmentKanan Rahimov
 
Lecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block BuildingLecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block BuildingMubashir Ali
 

What's hot (20)

Web-Development-ppt.pptx
Web-Development-ppt.pptxWeb-Development-ppt.pptx
Web-Development-ppt.pptx
 
Web Development
Web DevelopmentWeb Development
Web Development
 
ppt of web designing and development
ppt of web designing and developmentppt of web designing and development
ppt of web designing and development
 
Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1Front-end development introduction (HTML, CSS). Part 1
Front-end development introduction (HTML, CSS). Part 1
 
Rockwell collins be aerospace presentation
Rockwell collins be aerospace presentationRockwell collins be aerospace presentation
Rockwell collins be aerospace presentation
 
Semantic web
Semantic webSemantic web
Semantic web
 
Web design basics
Web design basicsWeb design basics
Web design basics
 
web development.pptx
web development.pptxweb development.pptx
web development.pptx
 
PHP Summer Training Presentation
PHP Summer Training PresentationPHP Summer Training Presentation
PHP Summer Training Presentation
 
Web Page Designing
Web Page DesigningWeb Page Designing
Web Page Designing
 
Design, Analysis and Manufacturing of Braking system for an Universal Terrain...
Design, Analysis and Manufacturing of Braking system for an Universal Terrain...Design, Analysis and Manufacturing of Braking system for an Universal Terrain...
Design, Analysis and Manufacturing of Braking system for an Universal Terrain...
 
HTML Block and Inline Elements
HTML Block and Inline ElementsHTML Block and Inline Elements
HTML Block and Inline Elements
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notes
 
WEB DEVELOPMENT
WEB DEVELOPMENTWEB DEVELOPMENT
WEB DEVELOPMENT
 
Web Development In 2018
Web Development In 2018Web Development In 2018
Web Development In 2018
 
Pasos para crear un sitio web
Pasos para crear un sitio webPasos para crear un sitio web
Pasos para crear un sitio web
 
Html and css presentation
Html and css presentationHtml and css presentation
Html and css presentation
 
Web development
Web developmentWeb development
Web development
 
Lecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block BuildingLecture-3: Introduction to html - Basic Structure & Block Building
Lecture-3: Introduction to html - Basic Structure & Block Building
 
Report html5
Report html5Report html5
Report html5
 

Similar to JAVASRIPT and PHP Basics# Unit 2 Webdesign

Java, BA,UI resumes
Java, BA,UI resumesJava, BA,UI resumes
Java, BA,UI resumesNeel A
 
LaranEvansResume
LaranEvansResumeLaranEvansResume
LaranEvansResumebutest
 
Amar_Modalavalasa_Resume
Amar_Modalavalasa_ResumeAmar_Modalavalasa_Resume
Amar_Modalavalasa_ResumeAmar Modalavalasa
 
CV_Kazim_Gohar
CV_Kazim_GoharCV_Kazim_Gohar
CV_Kazim_Goharkazim gohar
 
Vitaliy Kryvonos_CV_up
Vitaliy Kryvonos_CV_upVitaliy Kryvonos_CV_up
Vitaliy Kryvonos_CV_upVitaliy Kryvonos
 
Darshita_Shah_Resume
Darshita_Shah_ResumeDarshita_Shah_Resume
Darshita_Shah_Resumedarshita shah
 
Resume - Dhanshri Kalgaonkar
Resume - Dhanshri KalgaonkarResume - Dhanshri Kalgaonkar
Resume - Dhanshri KalgaonkarDhanshri_Kalgaonkar
 
Chaitanya r b resume
Chaitanya r b resumeChaitanya r b resume
Chaitanya r b resumeChaitanya Rb
 
Irshad Resume
Irshad ResumeIrshad Resume
Irshad Resumewahirshad
 
Resume - Shashesh Silwal
Resume - Shashesh SilwalResume - Shashesh Silwal
Resume - Shashesh SilwalShashesh Silwal
 
William-Timpany-2016-03-09-v4-Resume
William-Timpany-2016-03-09-v4-ResumeWilliam-Timpany-2016-03-09-v4-Resume
William-Timpany-2016-03-09-v4-ResumeWilliam Timpany
 
bakkesh_php_mysql_javascript_jquery_5.5yrs_Exp
bakkesh_php_mysql_javascript_jquery_5.5yrs_Expbakkesh_php_mysql_javascript_jquery_5.5yrs_Exp
bakkesh_php_mysql_javascript_jquery_5.5yrs_ExpBakkesh K S
 
Chandra Sekhar Cheekuru NET UI
Chandra Sekhar Cheekuru  NET UIChandra Sekhar Cheekuru  NET UI
Chandra Sekhar Cheekuru NET UIChandra Sekhar
 
8 years of experience in .Net web technologies
8 years of experience in .Net web technologies8 years of experience in .Net web technologies
8 years of experience in .Net web technologiesPartha Roy
 

Similar to JAVASRIPT and PHP Basics# Unit 2 Webdesign (20)

Java, BA,UI resumes
Java, BA,UI resumesJava, BA,UI resumes
Java, BA,UI resumes
 
Ranjith_Reddy Yallampalli Resume
Ranjith_Reddy Yallampalli ResumeRanjith_Reddy Yallampalli Resume
Ranjith_Reddy Yallampalli Resume
 
LaranEvansResume
LaranEvansResumeLaranEvansResume
LaranEvansResume
 
Amar_Modalavalasa_Resume
Amar_Modalavalasa_ResumeAmar_Modalavalasa_Resume
Amar_Modalavalasa_Resume
 
CV_Kazim_Gohar
CV_Kazim_GoharCV_Kazim_Gohar
CV_Kazim_Gohar
 
Resume
ResumeResume
Resume
 
SAIGANESH CHINTALA_JAVA
SAIGANESH CHINTALA_JAVASAIGANESH CHINTALA_JAVA
SAIGANESH CHINTALA_JAVA
 
Vitaliy Kryvonos_CV_up
Vitaliy Kryvonos_CV_upVitaliy Kryvonos_CV_up
Vitaliy Kryvonos_CV_up
 
Darshita_Shah_Resume
Darshita_Shah_ResumeDarshita_Shah_Resume
Darshita_Shah_Resume
 
Resume - Dhanshri Kalgaonkar
Resume - Dhanshri KalgaonkarResume - Dhanshri Kalgaonkar
Resume - Dhanshri Kalgaonkar
 
Lloyd Mcallen
Lloyd McallenLloyd Mcallen
Lloyd Mcallen
 
Chaitanya r b resume
Chaitanya r b resumeChaitanya r b resume
Chaitanya r b resume
 
Irshad Resume
Irshad ResumeIrshad Resume
Irshad Resume
 
Resume - Shashesh Silwal
Resume - Shashesh SilwalResume - Shashesh Silwal
Resume - Shashesh Silwal
 
William-Timpany-2016-03-09-v4-Resume
William-Timpany-2016-03-09-v4-ResumeWilliam-Timpany-2016-03-09-v4-Resume
William-Timpany-2016-03-09-v4-Resume
 
bakkesh_php_mysql_javascript_jquery_5.5yrs_Exp
bakkesh_php_mysql_javascript_jquery_5.5yrs_Expbakkesh_php_mysql_javascript_jquery_5.5yrs_Exp
bakkesh_php_mysql_javascript_jquery_5.5yrs_Exp
 
Chandra Sekhar Cheekuru NET UI
Chandra Sekhar Cheekuru  NET UIChandra Sekhar Cheekuru  NET UI
Chandra Sekhar Cheekuru NET UI
 
8 years of experience in .Net web technologies
8 years of experience in .Net web technologies8 years of experience in .Net web technologies
8 years of experience in .Net web technologies
 
peeyush_resume
peeyush_resumepeeyush_resume
peeyush_resume
 
Krishnagopal Thogiti_Java
Krishnagopal Thogiti_JavaKrishnagopal Thogiti_Java
Krishnagopal Thogiti_Java
 

More from NitinShelake4

OCL3_10_05.pptx
OCL3_10_05.pptxOCL3_10_05.pptx
OCL3_10_05.pptxNitinShelake4
 
UseCase Model.pptx
UseCase Model.pptxUseCase Model.pptx
UseCase Model.pptxNitinShelake4
 
Unit 4 Object Oriented Analysis.pptx
Unit 4 Object Oriented Analysis.pptxUnit 4 Object Oriented Analysis.pptx
Unit 4 Object Oriented Analysis.pptxNitinShelake4
 
Unit 2 Requirement Analysis.pptx
Unit 2 Requirement Analysis.pptxUnit 2 Requirement Analysis.pptx
Unit 2 Requirement Analysis.pptxNitinShelake4
 
SEMD U_I Introduction to SE.pptx
SEMD U_I Introduction to SE.pptxSEMD U_I Introduction to SE.pptx
SEMD U_I Introduction to SE.pptxNitinShelake4
 

More from NitinShelake4 (7)

OCL3_10_05.pptx
OCL3_10_05.pptxOCL3_10_05.pptx
OCL3_10_05.pptx
 
Unit 5.pptx
Unit 5.pptxUnit 5.pptx
Unit 5.pptx
 
UseCase Model.pptx
UseCase Model.pptxUseCase Model.pptx
UseCase Model.pptx
 
Unit 4 Object Oriented Analysis.pptx
Unit 4 Object Oriented Analysis.pptxUnit 4 Object Oriented Analysis.pptx
Unit 4 Object Oriented Analysis.pptx
 
Unit3.pptx
Unit3.pptxUnit3.pptx
Unit3.pptx
 
Unit 2 Requirement Analysis.pptx
Unit 2 Requirement Analysis.pptxUnit 2 Requirement Analysis.pptx
Unit 2 Requirement Analysis.pptx
 
SEMD U_I Introduction to SE.pptx
SEMD U_I Introduction to SE.pptxSEMD U_I Introduction to SE.pptx
SEMD U_I Introduction to SE.pptx
 

Recently uploaded

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 

Recently uploaded (20)

Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 

JAVASRIPT and PHP Basics# Unit 2 Webdesign

  • 1. IT for Engineers Sanjivani Rural Education Society’s Sanjivani College of Engineering, Kopargaon-423603 (An Autonomous Institute Affiliated to Savitribai Phule Pune University, Pune) NAAC ‘A’ Grade Accredited, ISO 9001:2015 Certified Department of Information Technology (NBA Accredited) Mr. N. L. Shelake Assistant Professor
  • 2. Web Design Course Contents: - Web Design Mr. N. L. Shelake Department of Information Technology
  • 3. JavaScript īļJavaScript is a High Level, versatile and widely used programming language primarily for web development. īļIt is a client-side scripting language, executed by web browsers, making web pages interactive. īļJavaScript can also be used for server-side development with technologies like Node.js. Web Design Mr. N. L. Shelake Department of Information Technology
  • 4. JavaScript īļIts ability to add interactivity and dynamic behavior to websites īļIt is one of the core technologies used for web development, alongside HTML (Hypertext Markup Language) and CSS (Cascading Style Sheets). Web Design Mr. N. L. Shelake Department of Information Technology
  • 5. History of JavaScript īƒ˜JavaScript was created by Brendan Eich in 1995 īƒ˜Netscape Communications Corporation īƒ˜Initially named "Mocha" and then "LiveScript," it was eventually renamed JavaScript as part of a partnership with Sun Microsystems (now Oracle) īƒ˜It is not related to JAVA īƒ˜Mainly designed for client-side scripting in web browsers JavaScript Web Design Mr. N. L. Shelake Department of Information Technology
  • 6. History of JavaScript īƒ˜The first public release of JavaScript was in Netscape Navigator 2.0 in 1995 īƒ˜It allowed developers to add interactive elements and dynamic behavior to web pages, making the web more engaging for users. īƒ˜JavaScript's adoption was accelerated by the "Browser Wars" of the late 1990s and early 2000s, primarily between Netscape Navigator and Microsoft's Internet Explorer īƒ˜Implemented their own versions of JavaScript JavaScript Mr. N. L. Shelake Department of Information Technology JavaScript
  • 7. History of JavaScript īƒ˜To address these issues and create a standardized specification for JavaScript, the ECMA established and ECMAScript standard in 1997. īƒ˜ECMAScript defines the core features of JavaScript. īƒ˜The first standardized version was ECMAScript 1 īƒ˜European Computer Manufacturers Association. The organization was founded in 1961 to standardize computer systems in Europe. JavaScript Mr. N. L. Shelake Department of Information Technology JavaScript
  • 8. What is JavaScript? īƒ˜JavaScript is a high-level, interpreted scripting language primarily used for adding interactivity and behavior to web pages. īƒ˜It allows developers to create dynamic content, manipulate the Document Object Model (DOM), and interact with users. JavaScript Mr. N. L. Shelake Department of Information Technology JavaScript
  • 9. Why JavaScript? īƒ˜The primary language for web development īƒ˜JavaScript is supported by all major web browsers (Cross- Browser Compatibility) īƒ˜JavaScript is a versatile language that can be used for both front- end and back-end development īƒ˜has led to the creation of numerous libraries, frameworks, and tools that simplify and accelerate web development. like React, Angular etc (Community) JavaScript Mr. N. L. Shelake Department of Information Technology JavaScript
  • 10. Why JavaScript? īƒ˜JavaScript's support for asynchronous programming, building responsive and non-blocking applications. īƒ˜ A large pool of JavaScript developers available in the job market, As compare to other programming language īƒ˜JavaScript is based on open web standards, making it accessible and transparent. ECMA īƒ˜JavaScript can easily integrate with other web technologies like HTML and CSS, making it an integral part of the web development stack JavaScript Mr. N. L. Shelake Department of Information Technology JavaScript
  • 11. Sample Program <html> <body> <h2>What Can JavaScript Do?</h2> <p id=“hellodemo">JavaScript can change HTML content.</p> <script> document.getElementById(“hellodemo").innerHTML = "Hello"; </script> </body> </html> JavaScript Mr. N. L. Shelake Department of Information Technology JavaScript
  • 12. How do you declare variables in JavaScript? īƒ˜Variables can be declared using var, let, or const followed by the variable name. For example īƒ˜var x = 15; īƒ˜let x = 5; īƒ˜const x = 5; JavaScript Mr. N. L. Shelake Department of Information Technology JavaScript
  • 13. What is the difference between let, const, and var for variable declaration? īƒ˜var has function-level scope and can be redeclared within the same function. īƒ˜let and const have block-level scope and cannot be redeclared within the same block. īƒ˜const is used for variables that should not be reassigned. JavaScript Mr. N. L. Shelake Department of Information Technology JavaScript
  • 14. Basic Syntax Variables: Declare variables using var, let, or const. īļvar has function-level scope. īļlet and const have block-level scope. īļconst is used for constants.. Web Design Mr. N. L. Shelake Department of Information Technology
  • 15. Basic Syntax Data types: JavaScript has dynamic types. īļ Primitive types: Number, String, Boolean, Undefined, Null. īļ Reference types: Object, Array, Function. Web Design Mr. N. L. Shelake Department of Information Technology
  • 16. Basic Syntax Operators: Arithmetic, Comparison, Logical, Assignment, Ternary. Conditionals: if, else if, else, switch. Loops: for, while, do...while, for...in, for...of. Web Design Mr. N. L. Shelake Department of Information Technology
  • 17. Basic Syntax Operators: īƒ˜ Arithmetic - + / * % ++ -- īƒ˜ Assignment =, +=,-=,*=,/= īƒ˜ Comparison ==,!=, >, <, >=, <=, īƒ˜ Logical &&, ||, ! Web Design Mr. N. L. Shelake Department of Information Technology
  • 18. Basic Syntax Operators: Arithmetic, Comparison, Logical, Assignment, Ternary. Conditionals: if, else if, else, switch. Loops: for, while, do...while, for...in, for...of. Web Design Mr. N. L. Shelake Department of Information Technology
  • 19. Basic Syntax if (condition) { } if (condition) { } else { } if (condition) { } elseif { } Else { } If if else elseif Web Design Mr. N. L. Shelake Department of Information Technology
  • 20. Basic Syntax Operators: Arithmetic, Comparison, Logical, Assignment, Ternary. Conditionals: if, else if, else, switch. Loops: for, while, do...while, for...in, for...of. Web Design Mr. N. L. Shelake Department of Information Technology
  • 21. Basic Syntax Switch switch(expression) { case x: // code block break; case y: // code block break; default: // code block } Web Design Mr. N. L. Shelake Department of Information Technology
  • 22. Basic Syntax ​<script> let day; switch (new Date().getDay()) { case 0: day = "Sunday"; break; case 1: day = "Monday"; break; case 2: day = "Tuesday"; break; case 3: day = "Wednesday"; break; case 4: day = "Thursday"; break; case 5: day = "Friday"; break; case 6: day = "Saturday"; } document.getElementById(“sample").innerHTML = "Today is " + day; </script> Web Design Mr. N. L. Shelake Department of Information Technology
  • 23. Basic Syntax Operators: Arithmetic, Comparison, Logical, Assignment, Ternary. Conditionals: if, else if, else, switch. Loops: for, while, do...while, for...in, for...of. Web Design Mr. N. L. Shelake Department of Information Technology
  • 24. Basic Syntax <html><body> <h2>JavaScript For Loop</h2> <p id="demo"></p> <script> let text = ""; for (let i = 0; i < 5; i++) { text += "The number is " + i + "<br>"; } document.getElementById("demo").innerHTML = text; </script> </body> </html> Web Design Mr. N. L. Shelake Department of Information Technology
  • 25. Basic Syntax ​<html> <body> <h1>Sample JavaScript Program</h1> <p id="sample">Hi! JavaScript </p> <button type="button" onclick='document.getElementById("sample").innerHTML = "Hello JavaScript!"'>Click Here</button> </body> </html> Web Design Mr. N. L. Shelake Department of Information Technology
  • 26. Basic Syntax ​<html> <body> <h1>Sample JavaScript Program</h1> <p id=“sample"></p> <script> document.getElementById(“sample").innerHTML = "My First JavaScript"; </script> </body> </html> Web Design Mr. N. L. Shelake Department of Information Technology
  • 27. Basic Syntax ​<html> <body> <p id="demo"></p> <script> let x, y, z; x = 5; y = 6; z = x + y; document.getElementById("demo").innerHTML = “addition is " + z + "."; </script> </body> </html> Web Design Mr. N. L. Shelake Department of Information Technology
  • 28. Embedding with JavaScript īļ Embedding JavaScript refers to the practice of including JavaScript code within an HTML document. īļ This can be done in several ways to add interactivity, dynamic behavior, or functionality to a webpage. Web Design Mr. N. L. Shelake Department of Information Technology
  • 29. Embedding with JavaScript īļ Inline Script: You can embed JavaScript directly within an HTML file using a <script> tag. īļ External Script: For larger JavaScript code or when you want to reuse the same code across multiple pages, it's common to place the code in an external JavaScript file with a .js extension. You then reference this file in your HTML using the <script> tag's src attribute. Web Design Mr. N. L. Shelake Department of Information Technology
  • 30. Validation īļ Form validation used to usually take place at the server, following client submission of all required data with a click of the Submit button. īļ The server would have to send all the data back to the client and ask that the form be resubmitted with accurate information if the data entered by the client was missing or inaccurate. īļ This was a very time-consuming procedure that used to strain the server greatly. Web Design Mr. N. L. Shelake Department of Information Technology
  • 31. Validation īļ JavaScript provides a way to validate form's data on the client's computer before sending it to the web server. Form validation generally performs two functions. Web Design Mr. N. L. Shelake Department of Information Technology
  • 32. Validation īļ Basic Validation − First of all, the form must be checked to make sure all the mandatory fields are filled in. It would require just a loop through each field in the form and check for data. īļ Data Format Validation − Secondly, the data that is entered must be checked for correct form and value. Your code must include appropriate logic to test correctness of data. Web Design Mr. N. L. Shelake Department of Information Technology
  • 33. PHP īļ The term PHP is an acronym for PHP: Hypertext Preprocessor. īļ PHP is a server-side scripting language designed specifically for web development. īļ It is open-source which means it is free to download and use. It is very simple to learn and use. īļ The files have the extension “.php”. Web Design Mr. N. L. Shelake Department of Information Technology
  • 34. PHP īļ Rasmus Lerdorf inspired the first version of PHP and participated in the later versions. īļ It is an interpreted language and it does not require a compiler. īļ PHP code is executed in the server. īļ It can be integrated with many databases such as Oracle, Microsoft SQL Server, MySQL, PostgreSQL, Sybase, and Informix. Web Design Mr. N. L. Shelake Department of Information Technology
  • 35. PHP īļ It is powerful to hold a content management system like WordPress and can be used to control user access. īļ It supports main protocols like HTTP Basic, HTTP Digest, IMAP, FTP, and others. īļ Websites like www.facebook.com and www.yahoo.com are also built on PHP Web Design Mr. N. L. Shelake Department of Information Technology
  • 36. PHP īļ One of the main reasons behind this is that PHP can be easily embedded in HTML files and HTML codes can also be written in a PHP file. īļ The thing that differentiates PHP from the client-side language like HTML is, that PHP codes are executed on the server whereas HTML codes are directly rendered on the browser. īļ PHP codes are first executed on the server and then the result is returned to the browser Web Design Mr. N. L. Shelake Department of Information Technology
  • 37. PHP īļ Simple and fast īļ Efficient īļ Secured īļ Flexible īļ Cross-platform, it works with major operating systems like Windows, Linux, and macOS. īļ Open Source īļ Powerful Library Support īļ Database Connectivity Web Design Mr. N. L. Shelake Department of Information Technology
  • 38. Syntax <?php PHP code goes here ?> Web Design Mr. N. L. Shelake Department of Information Technology
  • 39. PHP Mr. N. L. Shelake Department of Information Technology Syntax <html> <head> <title>PHP Example</title> </head> <body> <?php echo "Hello, World! This is PHP code";?> </body></html> Output:- Hello, World! This is PHP code
  • 40. PHP Mr. N. L. Shelake Department of Information Technology PHP Variables īļ Variables are "containers" for storing information īļ A variable can have a short name (like x and y) or a more descriptive name (age, carname, total_volume). īļ PHP variable names are case-sensitive!
  • 41. PHP Mr. N. L. Shelake Department of Information Technology PHP Variables Rules for PHP variables: īļ A variable starts with the $ sign, followed by the name of the variable īļ A variable name must start with a letter or the underscore character īļ A variable name cannot start with a number īļ A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ) īļ Variable names are case-sensitive ($age and $AGE are two different variables)
  • 42. PHP Mr. N. L. Shelake Department of Information Technology PHP Example <html> <body> <?php $txt = "Hello world!"; $x = 5; $y = 10.5; echo $txt; echo "<br>"; echo $x; echo "<br>"; echo $y; ?> </body> </html> Hello world! 5 10.5
  • 43. PHP Mr. N. L. Shelake Department of Information Technology PHP Example <html> <body> <?php $temp = "HelloWorld"; echo "PHP First Program $temp!"; ?> </body> </html> PHP First Program HelloWorld!
  • 44. PHP Mr. N. L. Shelake Department of Information Technology PHP Example <html> <body> <?php $x = 5; $y = 4; echo "Addition is".($x + $y); ?> </body> </html> Addition is 9
  • 45. PHP Mr. N. L. Shelake Department of Information Technology PHP Datatypes PHP supports several data types that are used to represent different kinds of values. Here are some of the commonly used data types in PHP īļ Integers: Example: $number = 42; īļ Floats (Floating-point numbers): $floatNumber = 3.14; īļ Strings: $text = "Hello, PHP!"; īļ Booleans: $isTrue = true; īļ Arrays: $fruits = array("apple", "orange", "banana"); īļ NULL: $variable = NULL; īļ Constants: define("PI", 3.14);
  • 46. PHP Mr. N. L. Shelake Department of Information Technology Operator and Expression Same as, discussed in JavaScript Arithmetic Operators: īļ Addition (+): $sum = 5 + 3; // $sum is now 8 īļ Subtraction (-): $difference = 7 - 4; // $difference is now 3 īļ Multiplication (*): $product = 2 * 6; // $product is now 12 īļ Division (/): $quotient = 10 / 2; // $quotient is now 5 īļ Modulus (%): $remainder = 11 % 3; // $remainder is now 2
  • 47. PHP Mr. N. L. Shelake Department of Information Technology Operator and Expression Same as, discussed in JavaScript Assignment Operators: īļ Assignment (=): $variable = 10; // Assigns the value 10 to the variable īļ Addition Assignment (+=), Subtraction Assignment (-=): $x = 5; $x += 3; // Equivalent to $x = $x + 3; // $x is now 8
  • 48. PHP Mr. N. L. Shelake Department of Information Technology Operator and Expression Same as, discussed in JavaScript Comparison Operators: īļ Equal (==): $result = (5 == 5); // $result is true īļ Identical (===): $result = (5 === "5"); // $result is false īļ Not Equal (!=): $result = (10 != 5); // $result is true īļ Not Identical (!==): $result = (10 !== "10"); // $result is true īļ Less than(<) īļ Greater than(>)
  • 49. CSS Mr. N. L. Shelake Department of Information Technology Operator and Expression Same as, discussed in JavaScript Logical Operators: īļ AND (&&): $result = (true && false); // $result is false īļ OR (||): $result = (true || false); // $result is true īļ NOT (!): $$result = !true; // $result is false Increment and Decrement Operators īļ Increment (++): $counter = 5; $counter++; // $counter is now 6 īļ Decrement (--): $counter = 5; $counter--; // $counter is now 4
  • 50. PHP Mr. N. L. Shelake Department of Information Technology Operator and Expression Concatenation Operator:: Concatenation (.): $string1 = "Hello"; $string2 = " World!"; $greeting = $string1 . $string2; // $greeting is now "Hello World!"
  • 51. PHP Mr. N. L. Shelake Department of Information Technology Operator and Expression īļ In PHP, an expression is a combination of values, variables, operators, and functions that, when evaluated, produces a single value. īļ Expressions can be simple or complex, depending on the operations involved. $sum = 5 + 3; // Addition $difference = 7 - 4; // Subtraction $product = 2 * 6; // Multiplication $quotient = 10 / 2; // Division $remainder = 11 % 3; // Modulus
  • 52. PHP Mr. N. L. Shelake Department of Information Technology Control statements if Statement: īļ The if statement is used for conditional execution of code. <?php $a = 10; if ($a > 5) { echo "a is greater than 5"; } else { echo "a is not greater than 5"; } ?>
  • 53. PHP Mr. N. L. Shelake Department of Information Technology Control statements While Loop: īļ The while loop executes a block of code as long as the specified condition is true. <?php $i = 1; while ($i <= 5) { echo $i; $i++; } ?
  • 54. PHP Mr. N. L. Shelake Department of Information Technology Control statements for Loop: īļ The for loop is used to iterate a statement or a block of statements. <?php for ($i = 1; $i <= 5; $i++) { echo $i; } ?>
  • 55. PHP Mr. N. L. Shelake Department of Information Technology Control statements foreach Loop:: īļ The foreach loop is used for iterating over arrays. <?php $colors = array("red", "green", "blue"); foreach ($colors as $value) { echo $value; } ?>
  • 56. PHP Mr. N. L. Shelake Department of Information Technology Control statements break and continue statement: īļ The break statement is used to exit a loop prematurely. īļ The continue statement is used to skip the rest of the code inside a loop for the current iteration. <?php for ($i = 1; $i <= 10; $i++) { if ($i == 5) { break; // exit the loop when $i is 5 } echo $i; } ?>
  • 57. PHP Mr. N. L. Shelake Department of Information Technology Hosting tool: XAMPP īļ XAMPP is a free, open-source cross-platform web server solution stack package developed by Apache Friends. The name "XAMPP" is an acronym for the components it bundles: īļ X - Cross-platform īļ A - Apache HTTP Server īļ M - MariaDB (or MySQL) īļ P - PHP īļ P - Perl
  • 58. PHP Mr. N. L. Shelake Department of Information Technology Hosting tool: XAMPP īļ XAMPP is a free, open-source cross-platform web server solution stack package developed by Apache Friends. The name "XAMPP" is an acronym for the components it bundles: īļ X - Cross-platform īļ A - Apache HTTP Server īļ M - MariaDB (or MySQL) īļ P - PHP īļ P - Perl
  • 59. PHP Mr. N. L. Shelake Department of Information Technology Hosting tool: XAMPP īļ Apache Web Server: XAMPP includes the Apache HTTP Server, one of the most widely used web servers globally. It provides a robust and flexible platform for hosting websites and applications. īļ Database Support (MariaDB or MySQL): MariaDB, a fork of MySQL, is the default database system included in XAMPP. MySQL can also be used interchangeably. īļ PHP, Perl, and Other Programming Languages: XAMPP supports PHP, a server-side scripting language widely used for web development. Perl is also included, making it versatile for various scripting needs.
  • 60. PHP Mr. N. L. Shelake Department of Information Technology Hosting tool: XAMPP īļ phpMyAdmin: XAMPP comes bundled with phpMyAdmin, a web-based administration tool for managing MySQL and MariaDB databases. īļ Open Source and Cross-Platform: XAMPP is open-source software, freely available for Windows, Linux, and macOS. This cross-platform compatibility makes it easy for developers to work on different operating systems.
  • 61. PHP Mr. N. L. Shelake Department of Information Technology Hosting tool: XAMPP īļ Easy Installation and Configuration: XAMPP has a straightforward installation process, making it suitable for both beginners and experienced developers. Configuration files are easily accessible for customization. īļ Development and Testing Environment: XAMPP is designed for creating a local development environment, allowing developers to test and debug their web applications before deploying them to a live server. īļ Wide Adoption: Due to its ease of use and comprehensive features, It is widely adopted by developers and used in educational.
  • 62. PHP Mr. N. L. Shelake Department of Information Technology MySQL īļ MySQL is an open-source relational database management system (RDBMS) that is widely used for managing and organizing data. īļ It is a key component of the LAMP (Linux, Apache, MySQL, PHP/Python/Perl) and MEAN (MongoDB, Express.js, AngularJS, Node.js) stacks, making it a popular choice for web applications. īļ Components of MySQL: īļ MySQL Server - manages databases, processes queries, and controls access īļ MySQL Workbench: allows developers to design, model īļ MySQL Shell: enables administrators and developers īļ MySQL Connector: Provides connectors for various programming languages
  • 63. PHP Mr. N. L. Shelake Department of Information Technology MySQL īļ MySQL is a powerful, reliable, and widely used relational database management system. īļ Its open-source nature, scalability, and strong community support make it a preferred choice for developers and businesses looking for a robust and efficient database solution.
  • 64. IT For Engineers Thank You PHP Mr. N. L. Shelake Department of Information Technology