SlideShare a Scribd company logo
1 of 43
PHP Course [Before Start] Medhat Dawoud
Outlines WWW How web works? Static Vs Dynamic WebPages What is HTML? What is CSS? What is JavaScript?
WWW The World Wide Web, abbreviated as WWW and commonly known as The Web WWW is a system of interlinked hypertext documents contained on the Internet.  With a web browser, one can view web pages that may contain text, images, videos, and other multimedia and navigate between them by using hyperlinks.
WWW continue The Worldwide Web consists of many clients and servers connected over the internet
How the web works Computers communicate to each other using hyper text transfer protocol (HTTP). A client sends a request in http format for a web resource. Webpage. Image file. JavaScript or CSS file. Server return response.
The pieces of the PUZZLE Each client has a web browser: Personal Computers(IE, Firefox, Safari, Opera). Cell Phones. Other Devices. Each server runs a software called an HTTP Server: Internet information services(for windows only). Apache server(All operating systems).
Dynamic WP Vs Static WP There are two types of WebPages: Static WebPages: that is used only for giving information about some thing without any interaction with the used of the page, written in HTML or XHTML. Dynamic WebPages: which has a server side codes and has an interactional way to make sense to the user with the webpage, written usually in ASP, PHP, JSP, or python or any other server side lang.
Static WebPages
Dynamic WebPages
Dynamic server solutions Microsoft Active server Pages. PHP. Java-based server(J2EE) IBM web sphere Oracle Web Logic JBoss. Microsoft ASP.NET .
Let’s add some basics Intro to HTML. Intro to CSS. Intro to JavaScript.
What is HTML? HTML stands for Hypertext Markup Language. Not programming language but it is markup lung. HTML depends on elements like <html> element. Note that HTML tags are case insensitive.
HTML continue The HTML file is using one of the two extensions  .html or .htm HTML makes a static Webpage.  HTML documents are also called web pages.  Web browser doesn't display HTML tags. It uses HTML tags to display HTML document as a web page.
General structure of the HTML file
HTML continue <html></html>: define the web page  <head></head>: define the header of the page (info about the page)  <body></body>: here you write the content of the page
HTML continue – some rules It is preferred to write HTML tags in lowercase.  HTML ignores spaces in source code, you can make spaces using this &nbsp; ( Non breakable Space )  HTML elements can be nested ( can contain another elements )  First opened Last Closed (<b><u><i>Text</i></u></b>)
HTML Continue – special characters For more visit: http://www.degraeve.com/reference/specialcharacters.php
HTML Continue <marquee> is used to make some data in the webpage move with some characteristics with three types of behavior property: Scroll. Slide. Alternate. <br /> stands for the break line similar to pressing enter in any text editor. <hr /> stands for horizontal row which is used to draw a horizontal row inside the webpage.
HTML Continue Links: to make a hyper link in your website you can use the tag: <a href=“http://www.google.com”>Google</a> The a tag has a property named href stand for the hyper reference of the link and inside the element you put the word you want to appear as a link “Google”. Images: is used in HTML with tag: <imgsrc="www.jpg"/> This tag has a property called src stands for the source of the image on your PC or on the server.
HTML Continue Lists: you can make two types of lists: Ordered list: with the tag <ol> Unordered list: with the tag <ul> In both types each contain some items using the tag <li> and you should close it in the end. Code Result
HTML Continue Tables: the tables are used to represent data not for design as many designers do. Use the tag <table> to create table and make new table row using <tr> and fill them with data using <td> as follow. Code Result
HTML Continue - Forms Used to take input from user. It can contain many elements like (text field, textarea, radio, checkbox, dropdown menu, submit button, upload file, reset button, ..etc). We use the tag: <form></form> that contains 3 other tags: <input  />, <textarea  />, and <select  />. To design a login form you write the following code  See the next slide view the form in a browser..,
HTML Continue - Forms
HTML Last Demo Try To Make a simple HTML page
What is CSS? Stands for Cascading Style Sheets. CSS is in the presentation layer of web page  CSS define how HTML elements are displayed  CSS Solve HTML problems  CSS save time
CSS styles There is three ways to use the CSS: Inline style sheet. Internal style sheet. External style sheet. ,[object Object],[object Object]
Internal style sheet It’s more generalized than the inline. It might include the style of a whole webpage. A tag called <style> is added to the header section as in figure: In this example we change The back ground color of the  body of the page to yellow.
External style sheet This type is the preferred to be used because it help in styling the whole site at a time. We make a new file with extension .css and write all the styles we want inside that file. Then we connect this file to the pages we want to take this style in the website. To connect it  to the web page we write a simple tag: <link rel="stylesheet"type="text/css"href="styles.css" />
External CSS HTML file CSS file Result
CSS Last Demo Try To control the style of a simple HTML page
What is Scripting? Client Side Scripting  Excuted @ Client browser  He can simply view the source code  Examples: JavaScript, VbScript Server Side Scripting  Excuted @ the server  Return Back Client Side like ( HTML, CSS, JS) that browser understand  User can’t see the Source code  Use only can view the output ( HTML, CSS, JS )  Examples: PHP, ASP, JSP
What is JavaScript? ,[object Object]
Work in major browsers like Firefox, Opera, Safari, IE.
You should have basics of HTML/XHTML .
It is designed to add interactivity to HTML Page.
It is interpreted language ( there is no compilation )
It free  and client side ;) .,[object Object]
JavaScript Continue You can also write JavaScript in an external file and refer to it like the external CSS file but with the tag <script> as follow: The JavaScript file has the extension .js The scriptfile.js has the JavaScript codes.
Some JavaScript Rules Comments: is most like in C#. // for the single row comment. /* for the multiline comments ………………………………………………….. …………………………………….. */ Variables:  Case sensitive. Defined using varkeyword. Example : var name = “mohamed”;
Some JavaScript Rules Conditional operator: Syntax variablename=(condition)?value1:value2 Used to test a condition and make action. Switch case: is most likely in C#. If .. Else: is the same as in C#. For loop and while loop are also the same as in C#. There are break and continue statements like C#. Foreach in C# is here for(var variable in collection).
Some JavaScript Rules Example of the for loop usage: Code Result 
Some JavaScript Rules Functions: to make a function you should use the following syntax: function functionname(var1,var2,...,varX)  {  	//some code  }  Then we can make functions that can be used more times.
Some JavaScript Rules There are more than one way for the popup boxes: Alert: make sure that the information comes from the user . Confirm: if we want user to verify or accept something . Prompt : when we want user to input some thing before entering the page . ,[object Object],[object Object]

More Related Content

What's hot

Beginning MEAN Stack
Beginning MEAN StackBeginning MEAN Stack
Beginning MEAN StackRob Davarnia
 
A slightly advanced introduction to node.js
A slightly advanced introduction to node.jsA slightly advanced introduction to node.js
A slightly advanced introduction to node.jsSudar Muthu
 
Node js (runtime environment + js library) platform
Node js (runtime environment + js library) platformNode js (runtime environment + js library) platform
Node js (runtime environment + js library) platformSreenivas Kappala
 
Ng init | EPI Sousse
Ng init | EPI SousseNg init | EPI Sousse
Ng init | EPI SousseHamdi Hmidi
 
Blazor - An Introduction
Blazor - An IntroductionBlazor - An Introduction
Blazor - An IntroductionJamieTaylor112
 
Preparing your web services for Android and your Android app for web services...
Preparing your web services for Android and your Android app for web services...Preparing your web services for Android and your Android app for web services...
Preparing your web services for Android and your Android app for web services...Droidcon Eastern Europe
 
Node Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js TutorialNode Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js TutorialPHP Support
 
PHP Indonesia - Nodejs Web Development
PHP Indonesia - Nodejs Web DevelopmentPHP Indonesia - Nodejs Web Development
PHP Indonesia - Nodejs Web DevelopmentIrfan Maulana
 
Client vs Server Templating: Speed up initial load for SPA with Angular as an...
Client vs Server Templating: Speed up initial load for SPA with Angular as an...Client vs Server Templating: Speed up initial load for SPA with Angular as an...
Client vs Server Templating: Speed up initial load for SPA with Angular as an...David Amend
 
TDD a REST API With Node.js and MongoDB
TDD a REST API With Node.js and MongoDBTDD a REST API With Node.js and MongoDB
TDD a REST API With Node.js and MongoDBValeri Karpov
 
Searching for the framework of my dreams in node.js ecosystem by Mykyta Semen...
Searching for the framework of my dreams in node.js ecosystem by Mykyta Semen...Searching for the framework of my dreams in node.js ecosystem by Mykyta Semen...
Searching for the framework of my dreams in node.js ecosystem by Mykyta Semen...Binary Studio
 
Fscons future transports
Fscons future transportsFscons future transports
Fscons future transportsDaniel Stenberg
 

What's hot (20)

Beginning MEAN Stack
Beginning MEAN StackBeginning MEAN Stack
Beginning MEAN Stack
 
A slightly advanced introduction to node.js
A slightly advanced introduction to node.jsA slightly advanced introduction to node.js
A slightly advanced introduction to node.js
 
Node js (runtime environment + js library) platform
Node js (runtime environment + js library) platformNode js (runtime environment + js library) platform
Node js (runtime environment + js library) platform
 
Nodeconf npm 2011
Nodeconf npm 2011Nodeconf npm 2011
Nodeconf npm 2011
 
Ng init | EPI Sousse
Ng init | EPI SousseNg init | EPI Sousse
Ng init | EPI Sousse
 
Node js
Node jsNode js
Node js
 
Node js for beginners
Node js for beginnersNode js for beginners
Node js for beginners
 
Blazor - An Introduction
Blazor - An IntroductionBlazor - An Introduction
Blazor - An Introduction
 
Preparing your web services for Android and your Android app for web services...
Preparing your web services for Android and your Android app for web services...Preparing your web services for Android and your Android app for web services...
Preparing your web services for Android and your Android app for web services...
 
Node Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js TutorialNode Js, AngularJs and Express Js Tutorial
Node Js, AngularJs and Express Js Tutorial
 
Node js first look - 2016
Node js first look - 2016Node js first look - 2016
Node js first look - 2016
 
PHP Indonesia - Nodejs Web Development
PHP Indonesia - Nodejs Web DevelopmentPHP Indonesia - Nodejs Web Development
PHP Indonesia - Nodejs Web Development
 
Suggest.js
Suggest.jsSuggest.js
Suggest.js
 
Client vs Server Templating: Speed up initial load for SPA with Angular as an...
Client vs Server Templating: Speed up initial load for SPA with Angular as an...Client vs Server Templating: Speed up initial load for SPA with Angular as an...
Client vs Server Templating: Speed up initial load for SPA with Angular as an...
 
lect9
lect9lect9
lect9
 
TDD a REST API With Node.js and MongoDB
TDD a REST API With Node.js and MongoDBTDD a REST API With Node.js and MongoDB
TDD a REST API With Node.js and MongoDB
 
Searching for the framework of my dreams in node.js ecosystem by Mykyta Semen...
Searching for the framework of my dreams in node.js ecosystem by Mykyta Semen...Searching for the framework of my dreams in node.js ecosystem by Mykyta Semen...
Searching for the framework of my dreams in node.js ecosystem by Mykyta Semen...
 
Fscons future transports
Fscons future transportsFscons future transports
Fscons future transports
 
The MEAN Stack
The MEAN StackThe MEAN Stack
The MEAN Stack
 
Java script session 3
Java script session 3Java script session 3
Java script session 3
 

Similar to Before start

Download Workshop Lecture
Download Workshop LectureDownload Workshop Lecture
Download Workshop Lecturewebhostingguy
 
HTML & CSS Workshop Notes
HTML & CSS Workshop NotesHTML & CSS Workshop Notes
HTML & CSS Workshop NotesPamela Fox
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using htmljulicris021488
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3inshu1890
 
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREWeb Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREjatin batra
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusNANDINI SHARMA
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technologyvikram singh
 
introdution-to-htmlppt.ppt
introdution-to-htmlppt.pptintrodution-to-htmlppt.ppt
introdution-to-htmlppt.pptnavyar41
 

Similar to Before start (20)

Download Workshop Lecture
Download Workshop LectureDownload Workshop Lecture
Download Workshop Lecture
 
Html
HtmlHtml
Html
 
Xhtml 2010
Xhtml 2010Xhtml 2010
Xhtml 2010
 
Xhtml 2010
Xhtml 2010Xhtml 2010
Xhtml 2010
 
Web Development using HTML & CSS
Web Development using HTML & CSSWeb Development using HTML & CSS
Web Development using HTML & CSS
 
Introduction to HTML.pptx
Introduction to HTML.pptxIntroduction to HTML.pptx
Introduction to HTML.pptx
 
HTML & CSS.ppt
HTML & CSS.pptHTML & CSS.ppt
HTML & CSS.ppt
 
HTML & CSS Workshop Notes
HTML & CSS Workshop NotesHTML & CSS Workshop Notes
HTML & CSS Workshop Notes
 
HTML
HTMLHTML
HTML
 
Web designing using html
Web designing using htmlWeb designing using html
Web designing using html
 
Web engineering notes unit 3
Web engineering notes unit 3Web engineering notes unit 3
Web engineering notes unit 3
 
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTREWeb Designing Training in Ambala ! BATRA COMPUTER CENTRE
Web Designing Training in Ambala ! BATRA COMPUTER CENTRE
 
Iwt module 1
Iwt  module 1Iwt  module 1
Iwt module 1
 
Html basics
Html basicsHtml basics
Html basics
 
Html
HtmlHtml
Html
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV Syllabus
 
introduction to web technology
introduction to web technologyintroduction to web technology
introduction to web technology
 
introdution-to-htmlppt.ppt
introdution-to-htmlppt.pptintrodution-to-htmlppt.ppt
introdution-to-htmlppt.ppt
 
Html basics
Html basicsHtml basics
Html basics
 
Html-meeting1-1.pptx
Html-meeting1-1.pptxHtml-meeting1-1.pptx
Html-meeting1-1.pptx
 

More from Medhat Dawoud

Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucketMedhat Dawoud
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linuxMedhat Dawoud
 
Intro to t sql – 3rd session
Intro to t sql – 3rd sessionIntro to t sql – 3rd session
Intro to t sql – 3rd sessionMedhat Dawoud
 
Intro to T-SQL - 1st session
Intro to T-SQL - 1st sessionIntro to T-SQL - 1st session
Intro to T-SQL - 1st sessionMedhat Dawoud
 
Intro to T-SQL – 2nd session
Intro to T-SQL – 2nd sessionIntro to T-SQL – 2nd session
Intro to T-SQL – 2nd sessionMedhat Dawoud
 
Mesh cloud (road to mongoDB)
Mesh cloud (road to mongoDB)Mesh cloud (road to mongoDB)
Mesh cloud (road to mongoDB)Medhat Dawoud
 

More from Medhat Dawoud (12)

Using Git and BitBucket
Using Git and BitBucketUsing Git and BitBucket
Using Git and BitBucket
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
Select your career
Select your careerSelect your career
Select your career
 
Intro to t sql – 3rd session
Intro to t sql – 3rd sessionIntro to t sql – 3rd session
Intro to t sql – 3rd session
 
Intro to T-SQL - 1st session
Intro to T-SQL - 1st sessionIntro to T-SQL - 1st session
Intro to T-SQL - 1st session
 
Intro to T-SQL – 2nd session
Intro to T-SQL – 2nd sessionIntro to T-SQL – 2nd session
Intro to T-SQL – 2nd session
 
Mesh cloud (road to mongoDB)
Mesh cloud (road to mongoDB)Mesh cloud (road to mongoDB)
Mesh cloud (road to mongoDB)
 
DevMix Startup
DevMix StartupDevMix Startup
DevMix Startup
 
Threading in C#
Threading in C#Threading in C#
Threading in C#
 
How to python
How to pythonHow to python
How to python
 
Program threats
Program threatsProgram threats
Program threats
 
Unusual C# - OOP
Unusual C# - OOPUnusual C# - OOP
Unusual C# - OOP
 

Recently uploaded

Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 

Recently uploaded (20)

Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 

Before start

  • 1. PHP Course [Before Start] Medhat Dawoud
  • 2. Outlines WWW How web works? Static Vs Dynamic WebPages What is HTML? What is CSS? What is JavaScript?
  • 3. WWW The World Wide Web, abbreviated as WWW and commonly known as The Web WWW is a system of interlinked hypertext documents contained on the Internet. With a web browser, one can view web pages that may contain text, images, videos, and other multimedia and navigate between them by using hyperlinks.
  • 4. WWW continue The Worldwide Web consists of many clients and servers connected over the internet
  • 5. How the web works Computers communicate to each other using hyper text transfer protocol (HTTP). A client sends a request in http format for a web resource. Webpage. Image file. JavaScript or CSS file. Server return response.
  • 6. The pieces of the PUZZLE Each client has a web browser: Personal Computers(IE, Firefox, Safari, Opera). Cell Phones. Other Devices. Each server runs a software called an HTTP Server: Internet information services(for windows only). Apache server(All operating systems).
  • 7. Dynamic WP Vs Static WP There are two types of WebPages: Static WebPages: that is used only for giving information about some thing without any interaction with the used of the page, written in HTML or XHTML. Dynamic WebPages: which has a server side codes and has an interactional way to make sense to the user with the webpage, written usually in ASP, PHP, JSP, or python or any other server side lang.
  • 10. Dynamic server solutions Microsoft Active server Pages. PHP. Java-based server(J2EE) IBM web sphere Oracle Web Logic JBoss. Microsoft ASP.NET .
  • 11. Let’s add some basics Intro to HTML. Intro to CSS. Intro to JavaScript.
  • 12. What is HTML? HTML stands for Hypertext Markup Language. Not programming language but it is markup lung. HTML depends on elements like <html> element. Note that HTML tags are case insensitive.
  • 13. HTML continue The HTML file is using one of the two extensions .html or .htm HTML makes a static Webpage. HTML documents are also called web pages. Web browser doesn't display HTML tags. It uses HTML tags to display HTML document as a web page.
  • 14. General structure of the HTML file
  • 15. HTML continue <html></html>: define the web page <head></head>: define the header of the page (info about the page) <body></body>: here you write the content of the page
  • 16. HTML continue – some rules It is preferred to write HTML tags in lowercase. HTML ignores spaces in source code, you can make spaces using this &nbsp; ( Non breakable Space ) HTML elements can be nested ( can contain another elements ) First opened Last Closed (<b><u><i>Text</i></u></b>)
  • 17. HTML Continue – special characters For more visit: http://www.degraeve.com/reference/specialcharacters.php
  • 18. HTML Continue <marquee> is used to make some data in the webpage move with some characteristics with three types of behavior property: Scroll. Slide. Alternate. <br /> stands for the break line similar to pressing enter in any text editor. <hr /> stands for horizontal row which is used to draw a horizontal row inside the webpage.
  • 19. HTML Continue Links: to make a hyper link in your website you can use the tag: <a href=“http://www.google.com”>Google</a> The a tag has a property named href stand for the hyper reference of the link and inside the element you put the word you want to appear as a link “Google”. Images: is used in HTML with tag: <imgsrc="www.jpg"/> This tag has a property called src stands for the source of the image on your PC or on the server.
  • 20. HTML Continue Lists: you can make two types of lists: Ordered list: with the tag <ol> Unordered list: with the tag <ul> In both types each contain some items using the tag <li> and you should close it in the end. Code Result
  • 21. HTML Continue Tables: the tables are used to represent data not for design as many designers do. Use the tag <table> to create table and make new table row using <tr> and fill them with data using <td> as follow. Code Result
  • 22. HTML Continue - Forms Used to take input from user. It can contain many elements like (text field, textarea, radio, checkbox, dropdown menu, submit button, upload file, reset button, ..etc). We use the tag: <form></form> that contains 3 other tags: <input />, <textarea />, and <select />. To design a login form you write the following code  See the next slide view the form in a browser..,
  • 24. HTML Last Demo Try To Make a simple HTML page
  • 25. What is CSS? Stands for Cascading Style Sheets. CSS is in the presentation layer of web page CSS define how HTML elements are displayed CSS Solve HTML problems CSS save time
  • 26.
  • 27. Internal style sheet It’s more generalized than the inline. It might include the style of a whole webpage. A tag called <style> is added to the header section as in figure: In this example we change The back ground color of the body of the page to yellow.
  • 28. External style sheet This type is the preferred to be used because it help in styling the whole site at a time. We make a new file with extension .css and write all the styles we want inside that file. Then we connect this file to the pages we want to take this style in the website. To connect it to the web page we write a simple tag: <link rel="stylesheet"type="text/css"href="styles.css" />
  • 29. External CSS HTML file CSS file Result
  • 30. CSS Last Demo Try To control the style of a simple HTML page
  • 31. What is Scripting? Client Side Scripting Excuted @ Client browser He can simply view the source code Examples: JavaScript, VbScript Server Side Scripting Excuted @ the server Return Back Client Side like ( HTML, CSS, JS) that browser understand User can’t see the Source code Use only can view the output ( HTML, CSS, JS ) Examples: PHP, ASP, JSP
  • 32.
  • 33. Work in major browsers like Firefox, Opera, Safari, IE.
  • 34. You should have basics of HTML/XHTML .
  • 35. It is designed to add interactivity to HTML Page.
  • 36. It is interpreted language ( there is no compilation )
  • 37.
  • 38. JavaScript Continue You can also write JavaScript in an external file and refer to it like the external CSS file but with the tag <script> as follow: The JavaScript file has the extension .js The scriptfile.js has the JavaScript codes.
  • 39. Some JavaScript Rules Comments: is most like in C#. // for the single row comment. /* for the multiline comments ………………………………………………….. …………………………………….. */ Variables: Case sensitive. Defined using varkeyword. Example : var name = “mohamed”;
  • 40. Some JavaScript Rules Conditional operator: Syntax variablename=(condition)?value1:value2 Used to test a condition and make action. Switch case: is most likely in C#. If .. Else: is the same as in C#. For loop and while loop are also the same as in C#. There are break and continue statements like C#. Foreach in C# is here for(var variable in collection).
  • 41. Some JavaScript Rules Example of the for loop usage: Code Result 
  • 42. Some JavaScript Rules Functions: to make a function you should use the following syntax: function functionname(var1,var2,...,varX) { //some code } Then we can make functions that can be used more times.
  • 43.
  • 44. What’s now ?? Now we get the standards of web development or design in general, you can study then in more details from some resources such as: http://www.w3schools.com http://html.net/ http://www.dynamicdrive.com/style/ http://www.google.com http://www.eng-mmf.com http://www.MedhatDawoud.com