Presentation is loading. Please wait.

Presentation is loading. Please wait.

HTML & PHP What’s the difference?. HTML Hypertext Markup Language Key Word is “Markup” HTML is the code that makes the “screen” All web pages are made.

Similar presentations


Presentation on theme: "HTML & PHP What’s the difference?. HTML Hypertext Markup Language Key Word is “Markup” HTML is the code that makes the “screen” All web pages are made."— Presentation transcript:

1 HTML & PHP What’s the difference?

2 HTML Hypertext Markup Language Key Word is “Markup” HTML is the code that makes the “screen” All web pages are made of HTML HTML is not a programming language Files end in.html

3 HTML required keywords

4 HTML example – Hello World Here is the Title Hello World! Blank lines and spaces are ignored

5 HTML common keywords

6 Subfiles to Tables …subfile data … _keyboard$12.95 _Mouse$19.95 _ keyboard $12.95 _ Mouse $19.95

7 HTML advanced example Advanced Example This text is in a paragraph This text is not inside a paragraph. Neither is this. But this text is And this text is in a Div tag

8 PHP Pre-Hypertext Processor The programming language (logic) Non-Compiled Stand Alone or imbedded in HTML All PHP files must end in.php

9 PHP and RPG Both are easy to use for business logic Both are procedural languages Both can access iseries objects Both run on the iseries Both benefit from short acronyms

10 PHP not RPG Free Format (RPG 2 / 3) Non-Compiled Dynamically Typed Variables $var Tags C Style end lines “;”

11 PHP example <?php echo “Hello World”; ?> <?php $variable = “Hello World”; echo $variable; ?>

12 PHP + HTML example PHP + HTML example

13 PHP conditionals If($x == 2){ echo “x is equal to 2”; } while($x < 3){ echo $x; $x++; } foreach($array as $x){ echo $x; } do{ echo $x; $x++; } while($x <= 10); for… switch…

14 Try it out! Go to your page and try creating and changing variables. Change a variable from a string to an integer:  $var = “Hello World”;  echo $var;  $var = 501;  echo $var; Test Paragraphs and line breaks


Download ppt "HTML & PHP What’s the difference?. HTML Hypertext Markup Language Key Word is “Markup” HTML is the code that makes the “screen” All web pages are made."

Similar presentations


Ads by Google