php workshop l0 introduction

21
Web Basics Programming With PHP

Upload: mohammad-tahsin-al-shalabi

Post on 18-Jul-2015

136 views

Category:

Software


0 download

TRANSCRIPT

Web Basics Programming With PHP

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

The Internet

What is the Internet ?

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

Web evolution

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

Web evolution

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

Web evolution

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

Web Apps

• Internet wide spreading.

• Access from every where.

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

Browser and Server

Web Programming Languages

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

HTML

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

Introduction

• With HTML you can create your own Web site.

• HTML composed of set of tags.

• HTML is a standard in “W3C”.

• HTML is compatible with: internet explorer, Safari,

Firefox and Google Chrome.

Before we start

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

• General form:

• Example:

HTML Structure

<tag_name/>

Single Tags

line 1 of the web page <br /> line2 of the web page

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

• General form:

• Example:

HTML Structure

<tag_name> content </tag_name>

this text is normal and <b> this text is bold </b>

Double Tags

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

HTML StructurePage structure

<html><head>

<title>some title</title></head><body>

</body></html>

General Form:

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

HTML StructurePage structure

General Form:

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

HTML StructureTags attribute

General Form:

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

<tag_name attribute 1 = "value1"attribute 2 = "value 2"attribute n = "value n“>

<h1 align = "center"> this is heading 1 </h1>

Example:

HTML StructureTags attribute

Tags Examples:

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

<div>this is div</div>

<table><tr>

<td>cell 1.1</td><td>cell 1.2</td>

</tr></table>

HTML StructureTags attribute

Tags Examples:

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

<p align=“center”>this is paragraph</p>

<i>italic</i>

<a href="www.w3schools.com">>w3schools</a>

<!--This is comment in html -->

HTML StructureTags attribute

Tags Examples:

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

<h3>Headline3</h3>

<h2>Headline2</h2>

<h1>Headline1</h1>

<h4>Headline4</h4>

HTML StructureTags attribute

Tags Examples:

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh

<form><input type=“text” name=“user” /><input type=“password” name=“pass” /><input type=“submit” value=“Send” />

</form>

<img src=“img1.jpg”/>

Notes

1 Don’t forget saving file in .htm or .html format.

2 We will see the output in the browser.

Let’s Test it live !

By: Mohammad Al-Shalabi & Mohammad Opada Al-Bosh