SlideShare una empresa de Scribd logo
1 de 72
Descargar para leer sin conexión
<Hmidi Hamdi>
Hmidi Hamdi
Web & Mobile Developer
Software Engineering @ ISSATSo
Founder & Member @ IGC
JSA @ JCertif Tunisia
Agenda
- Basic Notations(URL , WWW , HTTP , Web ...)
- Static and dynamic Web sites
- HTML & CSS & JS Basics
- Client/Server Architecture and PHP & MYSQL Basics
- Git basics and TeamWork agil methods (Scrum)
IGC Projects
2015-2016
Basic Notations
What is Internet ?
The Internet is essentially a global
network of computing resources.
You can think of the Internet as a
physical collection of routers and
circuits as a set of shared
resources.
Internet Based-Services
● Email − A fast, easy, and inexpensive way to communicate with other Internet
users around the world.
● Telnet − Allows a user to log into a remote computer as though it were a local
system.
● FTP − Allows a user to transfer virtually every kind of file that can be stored on a
computer from one Internet-connected computer to another.
● UseNet news − A distributed bulletin board that offers a combination news and
discussion service on thousands of topics.
● World Wide Web (WWW) − A hypertext interface to Internet information
resources.
WWW (World Wide Web)
A technical definition of the World Wide
Web is − All the resources and users on
the Internet that are using the Hypertext
Transfer Protocol (HTTP).
HTTP
HTTP stands for Hypertext Transfer Protocol. This is the protocol
being used to transfer hypertext documents that makes the World
Wide Web possible.
A standard web address such as Yahoo.com is called a URL and here
the prefix http indicates its protocol.
URL
URL stands for Uniform Resource Locator, and is
used to specify addresses on the World Wide Web.
A URL is the fundamental network identification for
any resource connected to the web (e.g., hypertext
pages, images, and sound files).
What is Website ?
It is a collection of various pages written in HTML
markup language. Similarly, there are millions of
websites available on the web.
What is Web Server ?
Every Website sits on a computer known as a Web server. This
server is always connected to the internet. Every Web server that is
connected to the Internet is given a unique address made up of a
series of four numbers between 0 and 256 separated by periods. For
example, 68.178.157.132 or 68.122.35.127.
What is Web Browser ?
Web Browsers are software installed on
your PC. To access the Web you need a
web browsers, such as Netscape
Navigator, Microsoft Internet Explorer or
Mozilla Firefox.
What is SMTP Server ?
SMTP stands for Simple Mail Transfer Protocol
Server. This server takes care of delivering emails
from one server to another server. When you send
an email to an email address, it is delivered to its
recipient by a SMTP Server.
What is ISP ?
ISP stands for Internet Service Provider.
They are the companies who provide you
service in terms of internet connection to
connect to the internet.
What is HTML ?
HTML stands for Hyper Text Markup Language. This is the language
in which we write web pages for any Website. Even the page you are
reading right now is written in HTML.
This is a subset of Standard Generalized Mark-Up Language (SGML)
for electronic publishing, the specific standard used for the World
Wide Web.
What is DNS ?
DNS stands for Domain Name System. When someone types in your
domain name, www.example.com, your browser will ask the Domain
Name System to find the IP that hosts your site. When you register
your domain name, your IP address should be put in a DNS along
with your domain name. Without doing it your domain name will not
be functioning properly.
What is W3C ?
W3C stands for World Wide Web Consortium which is an
international consortium of companies involved with the Internet and
the Web.
The W3C was founded in 1994 by Tim Berners-Lee, the original
architect of the World Wide Web. The organization's purpose is to
develop open standards so that the Web evolves in a single direction
rather than being splintered among competing factions. The W3C is
the chief standards body for HTTP and HTML.
Web Devloper and Web Designer
A Web Designer
• Designs the look and feel of a website (creative side of
website)
• Decides the layout, fonts, color, images and overall
branding
• Creates the visual mock-up of the website
• Rarely does the development of a website!
• A Right-brained (Creative) Person
A Web Developer
• Brings the website mock-up to life on the Internet
(development side of website)
• Develops the website and hosts on a web server
• Has Web Development Skills: HTML, CSS, JavaScript,
PHP, Perl, Python, Java, Ruby
• A Left-brained (Logical) Person
FrontEnd and BackEnd
Front End Web Development
• Defined components on the page with HTML
• Make them look pleasing with CSS
• Enable interactivity with JavaScript
• Enhance productivity with use of frameworks
Back End Web Development
• Create the page components and content dynamically on
the web server
• Send the HTML + CSS + JavaScript to web browser
(used by a human user)
• Generate pages by programming in Java, JavaScript,
PHP, Perl, Python, Ruby
• Aim to achieve fast response times to end users
Static Web HTML5, CSS3
and JavaScript
Static Web
Overview
HTML
• Hypertext Markup Language
• Structure of Page
JavaScript
• Interactivity with User
• Dynamic Updates in a Web Page
CSS
• Cascading Style Sheets
• Presentation/Styling
Hello World !
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
HTML Elements
HTML elements are written with a start tag, with an end tag, with the content in between:
<tagname>content</tagname>
HTML Attributes
HTML elements can have attributes
Attributes provide additional information about an element
Attributes are always specified in the start tag
Attributes come in name/value pairs like: name="value"
<tagname attName=”AttValue”>content</tagname>
HTML Headings
HTML headings are defined with the <h1> to <h6> tags:
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
HTML Paragraphs
HTML paragraphs are defined with the <p> tag:
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
HTML Links
HTML links are defined with the <a> tag:
<a href="http://www.w3schools.com">
This is a link
</a>
HTML Images
HTML images are defined with the <img> tag.
The source file (src), alternative text (alt), and size (width and height) are provided as attributes:
<img src="w3schools.jpg" alt="W3Schools.com"
width="104" height="142">
The HTML Style Attribute
The HTML style attribute has the following syntax:
style="property:value"
The property is a CSS property. The value is a CSS value.
Use
background-color for background
color
Use
color for text colors
Use
font-fam
ily
for text fonts
Use
font-size
for text sizes
Use
text-align
for text alignm
ent
HTML Formatting Elements
<p><strong>This text is strong</strong>.</p>
<p><i>This text is italic</i>.</p>
<p><em>This text is emphasized</em>.</p>
<h2>HTML <mark>Marked</mark> Formatting</h2>
<p>My favorite color is <del>blue</del> red.</p>
<p>My favorite <ins>color</ins> is red.</p>
<p>This is <sub>subscripted</sub> text.</p>
<p>This is <sup>superscripted</sup> text.</p>
CSS3
CSS stands for Cascading Style Sheets
Styling can be added to HTML elements in 3 ways:
● Inline - using a style attribute in HTML elements
● Internal - using a <style> element in the HTML <head> section
● External - using one or more external CSS files
Why Using CSS?
CSS is used to define styles for your web pages,
including the design, layout and variations in
display for different devices and screen sizes.
Css Syntax
Css Comments
p {
color: red;
/* This is a single-line comment */
text-align: center;
}
/* This is
a multi-line
comment */
Css Selectors
CSS selectors allow you to select and manipulate HTML elements.
CSS selectors are used to "find" (or select) HTML elements based on their id, class, type, attribute, and
more.
Element Selector
p {
text-align: center;
color: red;
}
ID Selector
#ElementID {
text-align: center;
color: red;
}
Class Selector
.ElementClass {
text-align: center;
color: red;
}
CSS3 Features !
- New CSS Selectors
- 2D Transform
- Animations
Not a Web Designer
Use Bootstrap
JavaScript
- Script Language
- Interpreted by Browser
- Orientée Objet
- DOM manipulation
- Dynamic UI
- Used in Servers (NodeJS)
What JavaScript can do with DOM?
- Change an HTML Element
- Change an attribute of an HTML Element
- Change the CSS style of an HTML Element
- Remove an existing HTML element or its attributes
- Add new a HTML Element or a new attribute to an Element
- React to an event associated with an HTML Element
- Create a new event listener and associate with an HTML Element
Why JavaScript
- It's pretty easy to learn. Trust me!
- Libraries! Javascript has libraries for everything. Literally. You can build
a complete mobile website in a day using jQuery mobile.
- Speed: Javascript is fast. And client side. Reduces load on server.
- Javascript can also be used to provide offline functionality.
- JSON started with Javascript! So did XML!
- Ajax: Every web developer knows and loves Ajax. No point to be made
on this.
Let’s Dive in
Dynamic Web
WAMP/LAMP Stack
PHP Language
PHP is a server scripting language, and a powerful
tool for making dynamic and interactive Web
pages.
PHP is a widely-used, free, and efficient alternative
to competitors such as Microsoft's ASP, NodeJS
and JEE.
Hello world
<!DOCTYPE html>
<html>
<body>
<?php
echo "My first PHP script!";
?>
</body>
</html>
Variables
In PHP, a variable starts with the $ sign, followed by the name of the variable:
<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;
?>
Let’s Hack
Let’s Hack
Database Story
Database Notations
MySql
PHP and Mysql !!
mysql, mysqli and PDO
Connectors
Connect Example
<?php
$servername = "localhost";
$username = "username";
$password = "password";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
Fetch Data
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// Create connection
$conn = new mysqli($servername, $username, $password,
$dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn-
>connect_error);
}
$sql = "SELECT id, firstname, lastname FROM MyGuests";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {
echo "id: " . $row["id"]. " - Name: " . $row
["firstname"]. " " . $row["lastname"]. "<br>";
}
} else {
echo "0 results";
}
$conn->close();
?>
Insert Data
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// Create connection
$conn = new mysqli($servername, $username,
$password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn-
>connect_error);
}
$sql = "INSERT INTO MyGuests (firstname,
lastname, email)
VALUES ('John', 'Doe', 'john@example.com')";
if ($conn->query($sql) === TRUE) {
echo "New record created successfully";
} else {
echo "Error: " . $sql . "<br>" . $conn-
>error;
}
$conn->close();
?>
Update Data
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// Create connection
$conn = mysqli_connect($servername,
$username, $password, $dbname);
// Check connection
if (!$conn) {
die("Connection failed: " .
mysqli_connect_error());
}
$sql = "UPDATE MyGuests SET lastname='Doe'
WHERE id=2";
if (mysqli_query($conn, $sql)) {
echo "Record updated successfully";
} else {
echo "Error updating record: " .
mysqli_error($conn);
}
mysqli_close($conn);
?>
Delete Data
<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// Create connection
$conn = new mysqli($servername, $username,
$password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn-
>connect_error);
}
// sql to delete a record
$sql = "DELETE FROM MyGuests WHERE id=3";
if ($conn->query($sql) === TRUE) {
echo "Record deleted successfully";
} else {
echo "Error deleting record: " . $conn-
>error;
}
$conn->close();
?>
Q/A
Thank You !!!

Más contenido relacionado

La actualidad más candente

Journey To The Front End World - Part3 - The Machine
Journey To The Front End World - Part3 - The MachineJourney To The Front End World - Part3 - The Machine
Journey To The Front End World - Part3 - The MachineIrfan Maulana
 
2011 05 word-press-not-just-for-blogging-anymore
2011 05 word-press-not-just-for-blogging-anymore2011 05 word-press-not-just-for-blogging-anymore
2011 05 word-press-not-just-for-blogging-anymoreRudy Duke
 
Web Components
Web ComponentsWeb Components
Web ComponentsFITC
 
Html5 shubelal
Html5 shubelalHtml5 shubelal
Html5 shubelalShub
 
Week 1 - How the Web Woks + Wordpress 101
Week 1 - How the Web Woks + Wordpress 101Week 1 - How the Web Woks + Wordpress 101
Week 1 - How the Web Woks + Wordpress 101Drake Martinet
 
BP101: A Modernized Workflow w/ Domino/XPages
BP101: A Modernized Workflow w/ Domino/XPagesBP101: A Modernized Workflow w/ Domino/XPages
BP101: A Modernized Workflow w/ Domino/XPagesedm00se
 
Introduction to web (techie side)
Introduction to web (techie side)Introduction to web (techie side)
Introduction to web (techie side)Dominique Hind
 
Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3Karambir Singh Nain
 
Using MAMP for Web Development
Using MAMP for Web DevelopmentUsing MAMP for Web Development
Using MAMP for Web DevelopmentEric Greene
 
Week 1 Slides - Cosmology of the Modern WordPress Web
Week 1 Slides - Cosmology of the Modern WordPress WebWeek 1 Slides - Cosmology of the Modern WordPress Web
Week 1 Slides - Cosmology of the Modern WordPress WebDrake Martinet
 
Website design & developemet
Website design & developemetWebsite design & developemet
Website design & developemetApurva Tripathi
 
Friendly iframes
Friendly iframesFriendly iframes
Friendly iframesmiclumbroso
 
Web Performance: 3 Stages to Success
Web Performance: 3 Stages to SuccessWeb Performance: 3 Stages to Success
Web Performance: 3 Stages to SuccessAustin Gil
 
Tasks suitable for programming on the web
Tasks suitable for programming on the webTasks suitable for programming on the web
Tasks suitable for programming on the webMohammad Kamrul Hasan
 
Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSTimo Herttua
 
Web components, so close!
Web components, so close!Web components, so close!
Web components, so close!Aleks Zinevych
 

La actualidad más candente (20)

Html5
Html5Html5
Html5
 
Journey To The Front End World - Part3 - The Machine
Journey To The Front End World - Part3 - The MachineJourney To The Front End World - Part3 - The Machine
Journey To The Front End World - Part3 - The Machine
 
2011 05 word-press-not-just-for-blogging-anymore
2011 05 word-press-not-just-for-blogging-anymore2011 05 word-press-not-just-for-blogging-anymore
2011 05 word-press-not-just-for-blogging-anymore
 
Web Standards
Web StandardsWeb Standards
Web Standards
 
Web Components
Web ComponentsWeb Components
Web Components
 
Html5 shubelal
Html5 shubelalHtml5 shubelal
Html5 shubelal
 
Week 1 - How the Web Woks + Wordpress 101
Week 1 - How the Web Woks + Wordpress 101Week 1 - How the Web Woks + Wordpress 101
Week 1 - How the Web Woks + Wordpress 101
 
BP101: A Modernized Workflow w/ Domino/XPages
BP101: A Modernized Workflow w/ Domino/XPagesBP101: A Modernized Workflow w/ Domino/XPages
BP101: A Modernized Workflow w/ Domino/XPages
 
Introduction to web (techie side)
Introduction to web (techie side)Introduction to web (techie side)
Introduction to web (techie side)
 
Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3Building a Better Web with HTML5 and CSS3
Building a Better Web with HTML5 and CSS3
 
Using MAMP for Web Development
Using MAMP for Web DevelopmentUsing MAMP for Web Development
Using MAMP for Web Development
 
Week 1 Slides - Cosmology of the Modern WordPress Web
Week 1 Slides - Cosmology of the Modern WordPress WebWeek 1 Slides - Cosmology of the Modern WordPress Web
Week 1 Slides - Cosmology of the Modern WordPress Web
 
Website design & developemet
Website design & developemetWebsite design & developemet
Website design & developemet
 
Friendly iframes
Friendly iframesFriendly iframes
Friendly iframes
 
Web Performance: 3 Stages to Success
Web Performance: 3 Stages to SuccessWeb Performance: 3 Stages to Success
Web Performance: 3 Stages to Success
 
Tasks suitable for programming on the web
Tasks suitable for programming on the webTasks suitable for programming on the web
Tasks suitable for programming on the web
 
Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSS
 
HTML 5
HTML 5HTML 5
HTML 5
 
SPDY
SPDYSPDY
SPDY
 
Web components, so close!
Web components, so close!Web components, so close!
Web components, so close!
 

Destacado

school objects 2015
 school objects 2015 school objects 2015
school objects 2015denegri77
 
An adventure on the red planet
An adventure on the red planetAn adventure on the red planet
An adventure on the red planetchreact
 
Resume and cover letter of Muhammad Mollah
Resume and cover letter of Muhammad MollahResume and cover letter of Muhammad Mollah
Resume and cover letter of Muhammad MollahDigital Systems
 
Colors and M
Colors and MColors and M
Colors and Mdenegri77
 
Юлия Федорова, Хорошая программа продает сама себя
Юлия Федорова, Хорошая программа продает сама себяЮлия Федорова, Хорошая программа продает сама себя
Юлия Федорова, Хорошая программа продает сама себяlashkova
 
Борис Петров, для I_Love_Events.conf
Борис Петров, для I_Love_Events.confБорис Петров, для I_Love_Events.conf
Борис Петров, для I_Love_Events.conflashkova
 
人生四大件事之二
人生四大件事之二人生四大件事之二
人生四大件事之二onlinejeff2002
 
Cretaceo 2.0?
Cretaceo 2.0?Cretaceo 2.0?
Cretaceo 2.0?chreact
 
The powerofgreenlight
The powerofgreenlightThe powerofgreenlight
The powerofgreenlightchreact
 
опыт проведения многодневных мероприятий
опыт проведения многодневных мероприятийопыт проведения многодневных мероприятий
опыт проведения многодневных мероприятийlashkova
 
wordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemswordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemsDigital Systems
 
Событийный маркетинг: заблуждение века. Денис Снетков для I_Love_Events.conf
Событийный маркетинг: заблуждение века. Денис Снетков для I_Love_Events.confСобытийный маркетинг: заблуждение века. Денис Снетков для I_Love_Events.conf
Событийный маркетинг: заблуждение века. Денис Снетков для I_Love_Events.conflashkova
 
Mars-Rover
Mars-RoverMars-Rover
Mars-Roverchreact
 
LE ORCHIDEE: DAL DNA AL FIORE
LE ORCHIDEE: DAL DNA AL FIORELE ORCHIDEE: DAL DNA AL FIORE
LE ORCHIDEE: DAL DNA AL FIOREchreact
 
Joomla! based website redesign project by Digital Systems
Joomla! based website redesign project by Digital SystemsJoomla! based website redesign project by Digital Systems
Joomla! based website redesign project by Digital SystemsDigital Systems
 
To mars and beyond
To mars and beyond To mars and beyond
To mars and beyond chreact
 

Destacado (20)

school objects 2015
 school objects 2015 school objects 2015
school objects 2015
 
An adventure on the red planet
An adventure on the red planetAn adventure on the red planet
An adventure on the red planet
 
Cubiertas & Fachadas
Cubiertas & FachadasCubiertas & Fachadas
Cubiertas & Fachadas
 
Resume and cover letter of Muhammad Mollah
Resume and cover letter of Muhammad MollahResume and cover letter of Muhammad Mollah
Resume and cover letter of Muhammad Mollah
 
Colors and M
Colors and MColors and M
Colors and M
 
Юлия Федорова, Хорошая программа продает сама себя
Юлия Федорова, Хорошая программа продает сама себяЮлия Федорова, Хорошая программа продает сама себя
Юлия Федорова, Хорошая программа продает сама себя
 
Борис Петров, для I_Love_Events.conf
Борис Петров, для I_Love_Events.confБорис Петров, для I_Love_Events.conf
Борис Петров, для I_Love_Events.conf
 
Ng-init
Ng-init Ng-init
Ng-init
 
人生四大件事之二
人生四大件事之二人生四大件事之二
人生四大件事之二
 
Cretaceo 2.0?
Cretaceo 2.0?Cretaceo 2.0?
Cretaceo 2.0?
 
The powerofgreenlight
The powerofgreenlightThe powerofgreenlight
The powerofgreenlight
 
опыт проведения многодневных мероприятий
опыт проведения многодневных мероприятийопыт проведения многодневных мероприятий
опыт проведения многодневных мероприятий
 
wordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systemswordpress-based-non-profit-website-redesign-project-by-digital-systems
wordpress-based-non-profit-website-redesign-project-by-digital-systems
 
SKANS IT TRAINING COURSES
SKANS IT TRAINING COURSESSKANS IT TRAINING COURSES
SKANS IT TRAINING COURSES
 
Событийный маркетинг: заблуждение века. Денис Снетков для I_Love_Events.conf
Событийный маркетинг: заблуждение века. Денис Снетков для I_Love_Events.confСобытийный маркетинг: заблуждение века. Денис Снетков для I_Love_Events.conf
Событийный маркетинг: заблуждение века. Денис Снетков для I_Love_Events.conf
 
Mars-Rover
Mars-RoverMars-Rover
Mars-Rover
 
LE ORCHIDEE: DAL DNA AL FIORE
LE ORCHIDEE: DAL DNA AL FIORELE ORCHIDEE: DAL DNA AL FIORE
LE ORCHIDEE: DAL DNA AL FIORE
 
Dreamweaver MX
Dreamweaver MXDreamweaver MX
Dreamweaver MX
 
Joomla! based website redesign project by Digital Systems
Joomla! based website redesign project by Digital SystemsJoomla! based website redesign project by Digital Systems
Joomla! based website redesign project by Digital Systems
 
To mars and beyond
To mars and beyond To mars and beyond
To mars and beyond
 

Similar a Les Basiques - Web Développement HTML5, CSS3, JS et PHP

WEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTMLWEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTMLsmitawagh14
 
Introduction to web designing
Introduction to web designingIntroduction to web designing
Introduction to web designingRajat Shah
 
Ncp computer appls web tech asish
Ncp computer appls  web tech asishNcp computer appls  web tech asish
Ncp computer appls web tech asishNCP
 
Websites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly WebsitesWebsites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly Websiteswebsiteunlimited
 
Web development intership Presentation.pptx
Web development intership Presentation.pptxWeb development intership Presentation.pptx
Web development intership Presentation.pptxbodepallivamsi1122
 
Learn web development: Front-end vs Back-end development
Learn web development: Front-end vs Back-end developmentLearn web development: Front-end vs Back-end development
Learn web development: Front-end vs Back-end developmentpuneetbatra24
 
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptxINDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx12KritiGaneriwal
 
Website/Web Applications / Static vs Dynamic Website / Web Browser /
Website/Web Applications  / Static vs Dynamic Website / Web Browser / Website/Web Applications  / Static vs Dynamic Website / Web Browser /
Website/Web Applications / Static vs Dynamic Website / Web Browser / Sachin Yadav
 
Choice of programming language for web developing.
Choice of programming language for web developing.Choice of programming language for web developing.
Choice of programming language for web developing.Mohammad Kamrul Hasan
 
web services8 (1).pdf for computer science
web services8 (1).pdf for computer scienceweb services8 (1).pdf for computer science
web services8 (1).pdf for computer scienceoptimusnotch44
 

Similar a Les Basiques - Web Développement HTML5, CSS3, JS et PHP (20)

Unit 01 (1).pdf
Unit 01 (1).pdfUnit 01 (1).pdf
Unit 01 (1).pdf
 
web development process WT
web development process WTweb development process WT
web development process WT
 
Wt unit 1 ppts web development process
Wt unit 1 ppts web development processWt unit 1 ppts web development process
Wt unit 1 ppts web development process
 
WEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTMLWEB TECHNOLOGY:Web Essentials and Markup Language HTML
WEB TECHNOLOGY:Web Essentials and Markup Language HTML
 
Web technology today
Web technology todayWeb technology today
Web technology today
 
Introduction to web designing
Introduction to web designingIntroduction to web designing
Introduction to web designing
 
Introduction to web_design_cs_final_ason
Introduction to web_design_cs_final_asonIntroduction to web_design_cs_final_ason
Introduction to web_design_cs_final_ason
 
Ncp computer appls web tech asish
Ncp computer appls  web tech asishNcp computer appls  web tech asish
Ncp computer appls web tech asish
 
Web Pages
Web PagesWeb Pages
Web Pages
 
Websites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly WebsitesWebsites Unlimited - Pay Monthly Websites
Websites Unlimited - Pay Monthly Websites
 
Web development intership Presentation.pptx
Web development intership Presentation.pptxWeb development intership Presentation.pptx
Web development intership Presentation.pptx
 
Learn web development: Front-end vs Back-end development
Learn web development: Front-end vs Back-end developmentLearn web development: Front-end vs Back-end development
Learn web development: Front-end vs Back-end development
 
WP Chap 1 & 2.pptx
WP Chap 1 & 2.pptxWP Chap 1 & 2.pptx
WP Chap 1 & 2.pptx
 
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptxINDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
INDUSTRIAL TRAINING Presentation on Web Development. (2).pptx
 
Website/Web Applications / Static vs Dynamic Website / Web Browser /
Website/Web Applications  / Static vs Dynamic Website / Web Browser / Website/Web Applications  / Static vs Dynamic Website / Web Browser /
Website/Web Applications / Static vs Dynamic Website / Web Browser /
 
ashish ppt webd.pptx
ashish ppt webd.pptxashish ppt webd.pptx
ashish ppt webd.pptx
 
Choice of programming language for web developing.
Choice of programming language for web developing.Choice of programming language for web developing.
Choice of programming language for web developing.
 
Career guideline
Career guidelineCareer guideline
Career guideline
 
Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
 
web services8 (1).pdf for computer science
web services8 (1).pdf for computer scienceweb services8 (1).pdf for computer science
web services8 (1).pdf for computer science
 

Más de Hamdi Hmidi

Getting started with node JS
Getting started with node JSGetting started with node JS
Getting started with node JSHamdi Hmidi
 
Ng init | EPI Sousse
Ng init | EPI SousseNg init | EPI Sousse
Ng init | EPI SousseHamdi Hmidi
 
Pentaho | Data Integration & Report designer
Pentaho | Data Integration & Report designerPentaho | Data Integration & Report designer
Pentaho | Data Integration & Report designerHamdi Hmidi
 
Twitter bootstrap | JCertif Tunisie
Twitter bootstrap | JCertif Tunisie Twitter bootstrap | JCertif Tunisie
Twitter bootstrap | JCertif Tunisie Hamdi Hmidi
 
API Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015
API  Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015 API  Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015
API Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015 Hamdi Hmidi
 
Android initiation
Android initiationAndroid initiation
Android initiationHamdi Hmidi
 
Les Fondamentaux D'Angular JS | Hmidi Hamdi
Les Fondamentaux D'Angular JS | Hmidi HamdiLes Fondamentaux D'Angular JS | Hmidi Hamdi
Les Fondamentaux D'Angular JS | Hmidi HamdiHamdi Hmidi
 

Más de Hamdi Hmidi (9)

Getting started with node JS
Getting started with node JSGetting started with node JS
Getting started with node JS
 
Ng init | EPI Sousse
Ng init | EPI SousseNg init | EPI Sousse
Ng init | EPI Sousse
 
Pentaho | Data Integration & Report designer
Pentaho | Data Integration & Report designerPentaho | Data Integration & Report designer
Pentaho | Data Integration & Report designer
 
Ng init
Ng initNg init
Ng init
 
Ng-init
Ng-init Ng-init
Ng-init
 
Twitter bootstrap | JCertif Tunisie
Twitter bootstrap | JCertif Tunisie Twitter bootstrap | JCertif Tunisie
Twitter bootstrap | JCertif Tunisie
 
API Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015
API  Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015 API  Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015
API Driven Application - AngulatJS, NodeJS and MongoDB | JCertif Tunisia 2015
 
Android initiation
Android initiationAndroid initiation
Android initiation
 
Les Fondamentaux D'Angular JS | Hmidi Hamdi
Les Fondamentaux D'Angular JS | Hmidi HamdiLes Fondamentaux D'Angular JS | Hmidi Hamdi
Les Fondamentaux D'Angular JS | Hmidi Hamdi
 

Último

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 

Último (20)

Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 

Les Basiques - Web Développement HTML5, CSS3, JS et PHP

  • 2. Hmidi Hamdi Web & Mobile Developer Software Engineering @ ISSATSo Founder & Member @ IGC JSA @ JCertif Tunisia
  • 3. Agenda - Basic Notations(URL , WWW , HTTP , Web ...) - Static and dynamic Web sites - HTML & CSS & JS Basics - Client/Server Architecture and PHP & MYSQL Basics - Git basics and TeamWork agil methods (Scrum)
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 11. What is Internet ? The Internet is essentially a global network of computing resources. You can think of the Internet as a physical collection of routers and circuits as a set of shared resources.
  • 12. Internet Based-Services ● Email − A fast, easy, and inexpensive way to communicate with other Internet users around the world. ● Telnet − Allows a user to log into a remote computer as though it were a local system. ● FTP − Allows a user to transfer virtually every kind of file that can be stored on a computer from one Internet-connected computer to another. ● UseNet news − A distributed bulletin board that offers a combination news and discussion service on thousands of topics. ● World Wide Web (WWW) − A hypertext interface to Internet information resources.
  • 13. WWW (World Wide Web) A technical definition of the World Wide Web is − All the resources and users on the Internet that are using the Hypertext Transfer Protocol (HTTP).
  • 14. HTTP HTTP stands for Hypertext Transfer Protocol. This is the protocol being used to transfer hypertext documents that makes the World Wide Web possible. A standard web address such as Yahoo.com is called a URL and here the prefix http indicates its protocol.
  • 15. URL URL stands for Uniform Resource Locator, and is used to specify addresses on the World Wide Web. A URL is the fundamental network identification for any resource connected to the web (e.g., hypertext pages, images, and sound files).
  • 16. What is Website ? It is a collection of various pages written in HTML markup language. Similarly, there are millions of websites available on the web.
  • 17. What is Web Server ? Every Website sits on a computer known as a Web server. This server is always connected to the internet. Every Web server that is connected to the Internet is given a unique address made up of a series of four numbers between 0 and 256 separated by periods. For example, 68.178.157.132 or 68.122.35.127.
  • 18. What is Web Browser ? Web Browsers are software installed on your PC. To access the Web you need a web browsers, such as Netscape Navigator, Microsoft Internet Explorer or Mozilla Firefox.
  • 19. What is SMTP Server ? SMTP stands for Simple Mail Transfer Protocol Server. This server takes care of delivering emails from one server to another server. When you send an email to an email address, it is delivered to its recipient by a SMTP Server.
  • 20. What is ISP ? ISP stands for Internet Service Provider. They are the companies who provide you service in terms of internet connection to connect to the internet.
  • 21. What is HTML ? HTML stands for Hyper Text Markup Language. This is the language in which we write web pages for any Website. Even the page you are reading right now is written in HTML. This is a subset of Standard Generalized Mark-Up Language (SGML) for electronic publishing, the specific standard used for the World Wide Web.
  • 22. What is DNS ? DNS stands for Domain Name System. When someone types in your domain name, www.example.com, your browser will ask the Domain Name System to find the IP that hosts your site. When you register your domain name, your IP address should be put in a DNS along with your domain name. Without doing it your domain name will not be functioning properly.
  • 23. What is W3C ? W3C stands for World Wide Web Consortium which is an international consortium of companies involved with the Internet and the Web. The W3C was founded in 1994 by Tim Berners-Lee, the original architect of the World Wide Web. The organization's purpose is to develop open standards so that the Web evolves in a single direction rather than being splintered among competing factions. The W3C is the chief standards body for HTTP and HTML.
  • 24. Web Devloper and Web Designer A Web Designer • Designs the look and feel of a website (creative side of website) • Decides the layout, fonts, color, images and overall branding • Creates the visual mock-up of the website • Rarely does the development of a website! • A Right-brained (Creative) Person A Web Developer • Brings the website mock-up to life on the Internet (development side of website) • Develops the website and hosts on a web server • Has Web Development Skills: HTML, CSS, JavaScript, PHP, Perl, Python, Java, Ruby • A Left-brained (Logical) Person
  • 25. FrontEnd and BackEnd Front End Web Development • Defined components on the page with HTML • Make them look pleasing with CSS • Enable interactivity with JavaScript • Enhance productivity with use of frameworks Back End Web Development • Create the page components and content dynamically on the web server • Send the HTML + CSS + JavaScript to web browser (used by a human user) • Generate pages by programming in Java, JavaScript, PHP, Perl, Python, Ruby • Aim to achieve fast response times to end users
  • 26. Static Web HTML5, CSS3 and JavaScript
  • 28. Overview HTML • Hypertext Markup Language • Structure of Page JavaScript • Interactivity with User • Dynamic Updates in a Web Page CSS • Cascading Style Sheets • Presentation/Styling
  • 29. Hello World ! <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <h1>My First Heading</h1> <p>My first paragraph.</p> </body> </html>
  • 30. HTML Elements HTML elements are written with a start tag, with an end tag, with the content in between: <tagname>content</tagname>
  • 31. HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value" <tagname attName=”AttValue”>content</tagname>
  • 32. HTML Headings HTML headings are defined with the <h1> to <h6> tags: <h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3>
  • 33. HTML Paragraphs HTML paragraphs are defined with the <p> tag: <p>This is a paragraph.</p> <p>This is another paragraph.</p>
  • 34. HTML Links HTML links are defined with the <a> tag: <a href="http://www.w3schools.com"> This is a link </a>
  • 35. HTML Images HTML images are defined with the <img> tag. The source file (src), alternative text (alt), and size (width and height) are provided as attributes: <img src="w3schools.jpg" alt="W3Schools.com" width="104" height="142">
  • 36. The HTML Style Attribute The HTML style attribute has the following syntax: style="property:value" The property is a CSS property. The value is a CSS value. Use background-color for background color Use color for text colors Use font-fam ily for text fonts Use font-size for text sizes Use text-align for text alignm ent
  • 37. HTML Formatting Elements <p><strong>This text is strong</strong>.</p> <p><i>This text is italic</i>.</p> <p><em>This text is emphasized</em>.</p> <h2>HTML <mark>Marked</mark> Formatting</h2> <p>My favorite color is <del>blue</del> red.</p> <p>My favorite <ins>color</ins> is red.</p> <p>This is <sub>subscripted</sub> text.</p> <p>This is <sup>superscripted</sup> text.</p>
  • 38. CSS3 CSS stands for Cascading Style Sheets Styling can be added to HTML elements in 3 ways: ● Inline - using a style attribute in HTML elements ● Internal - using a <style> element in the HTML <head> section ● External - using one or more external CSS files
  • 39. Why Using CSS? CSS is used to define styles for your web pages, including the design, layout and variations in display for different devices and screen sizes.
  • 41. Css Comments p { color: red; /* This is a single-line comment */ text-align: center; } /* This is a multi-line comment */
  • 42. Css Selectors CSS selectors allow you to select and manipulate HTML elements. CSS selectors are used to "find" (or select) HTML elements based on their id, class, type, attribute, and more.
  • 43. Element Selector p { text-align: center; color: red; }
  • 44. ID Selector #ElementID { text-align: center; color: red; }
  • 46. CSS3 Features ! - New CSS Selectors - 2D Transform - Animations
  • 47. Not a Web Designer
  • 49. JavaScript - Script Language - Interpreted by Browser - Orientée Objet - DOM manipulation - Dynamic UI - Used in Servers (NodeJS)
  • 50. What JavaScript can do with DOM? - Change an HTML Element - Change an attribute of an HTML Element - Change the CSS style of an HTML Element - Remove an existing HTML element or its attributes - Add new a HTML Element or a new attribute to an Element - React to an event associated with an HTML Element - Create a new event listener and associate with an HTML Element
  • 51. Why JavaScript - It's pretty easy to learn. Trust me! - Libraries! Javascript has libraries for everything. Literally. You can build a complete mobile website in a day using jQuery mobile. - Speed: Javascript is fast. And client side. Reduces load on server. - Javascript can also be used to provide offline functionality. - JSON started with Javascript! So did XML! - Ajax: Every web developer knows and loves Ajax. No point to be made on this.
  • 55.
  • 56. PHP Language PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP, NodeJS and JEE.
  • 57. Hello world <!DOCTYPE html> <html> <body> <?php echo "My first PHP script!"; ?> </body> </html>
  • 58. Variables In PHP, a variable starts with the $ sign, followed by the name of the variable: <?php $txt = "Hello world!"; $x = 5; $y = 10.5; ?>
  • 63. MySql
  • 65. mysql, mysqli and PDO Connectors
  • 66. Connect Example <?php $servername = "localhost"; $username = "username"; $password = "password"; // Create connection $conn = new mysqli($servername, $username, $password); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully"; ?>
  • 67. Fetch Data <?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn- >connect_error); } $sql = "SELECT id, firstname, lastname FROM MyGuests"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { echo "id: " . $row["id"]. " - Name: " . $row ["firstname"]. " " . $row["lastname"]. "<br>"; } } else { echo "0 results"; } $conn->close(); ?>
  • 68. Insert Data <?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn- >connect_error); } $sql = "INSERT INTO MyGuests (firstname, lastname, email) VALUES ('John', 'Doe', 'john@example.com')"; if ($conn->query($sql) === TRUE) { echo "New record created successfully"; } else { echo "Error: " . $sql . "<br>" . $conn- >error; } $conn->close(); ?>
  • 69. Update Data <?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; // Create connection $conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } $sql = "UPDATE MyGuests SET lastname='Doe' WHERE id=2"; if (mysqli_query($conn, $sql)) { echo "Record updated successfully"; } else { echo "Error updating record: " . mysqli_error($conn); } mysqli_close($conn); ?>
  • 70. Delete Data <?php $servername = "localhost"; $username = "username"; $password = "password"; $dbname = "myDB"; // Create connection $conn = new mysqli($servername, $username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn- >connect_error); } // sql to delete a record $sql = "DELETE FROM MyGuests WHERE id=3"; if ($conn->query($sql) === TRUE) { echo "Record deleted successfully"; } else { echo "Error deleting record: " . $conn- >error; } $conn->close(); ?>
  • 71. Q/A